In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ . "$ScriptDir/../apps/builder/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu
╭─[ 649.84ms - stdout ]────────────────────────────────────────────────────────╮
│ │
│ Directory: C:\Users\i574n\.nuget\packages\argu │
│ │
│ Mode LastWriteTime Length[ │
│ 32;1m Name │
│ ---- ------------- ------ [ │
│ 32;1m---- │
│ d---- 2023-05-17 3:38 PM 6.1.1 │
│ d---- 2024-03-12 8:22 PM 6.1.4 │
│ d---- 2024-01-29 5:12 PM 6.1.5 │
│ d---- 2024-03-12 8:20 PM 6.2.0 │
│ d---- 2024-02-23 6:50 PM 6.2.1 │
│ d---- 2024-03-12 8:15 PM 6.2.2 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline escapeCell input =
input
|> String.split [[| '\n' |]]
|> Array.map (function
| line when line |> String.startsWith "\\#!" || line |>
String.startsWith "\\#r" ->
System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
| line -> line
)
|> String.concat "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
$"a{nl}#!magic{nl}b{nl}"
)
╭─[ 53.38ms - stdout ]─────────────────────────────────────────────────────────╮
│ a │
│ #!magic │
│ b │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic"
|> run magicMarker
|> _assertEqual (
Success ("#!", (), Position ("", 2, 1, 3))
)
╭─[ 47.98ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #! │
│ Item2: <null> │
│ Item3: Position │
│ Index: 2 │
│ Line: 1 │
│ Column: 3 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"##!magic"
|> run magicMarker
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 54.08ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ ##!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
magicMarker
>>. manyTill anyChar newline
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a"
|> run magicCommand
|> _assertEqual (
Success ("magic", (), Position ("", 8, 2, 1))
)
╭─[ 37.81ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: magic │
│ Item2: <null> │
│ Item3: Position │
│ Index: 8 │
│ Line: 2 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
" #!magic
a"
|> run magicCommand
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 40.11ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ #!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let content =
(newline >>. magicMarker) <|> (eof >>. preturn "")
|> attempt
|> lookAhead
|> manyTill anyChar
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run content
|> _assertEqual (
Success ("#!magic
a", (), Position ("", 14, 7, 1))
)
╭─[ 34.73ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #!magic │
│ │
│ │
│ a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
{
magic : string
content : string
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let block =
pipe2
magicCommand
content
(fun magic content ->
{
magic = magic
content = content
})
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run block
|> _assertEqual (
Success (
{ magic = "magic"; content = "a" },
(),
Position ("", 14, 7, 1)
)
)
╭─[ 41.79ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: Block │
│ magic: magic │
│ content: a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
skipMany newline
>>. sepEndBy block (skipMany1 newline)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic1
a
\#!magic2
b
"
|> escapeCell
|> run blocks
|> _assertEqual (
Success (
[[
{ magic = "magic1"; content = "a" }
{ magic = "magic2"; content = "b" }
]],
(),
Position ("", 26, 9, 1)
)
)
╭─[ 47.31ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: FSharpList<Block> │
│ - magic: magic1 │
│ content: a │
│ - magic: magic2 │
│ content: b │
│ Item2: <null> │
│ Item3: Position │
│ Index: 26 │
│ Line: 9 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
| Fs
| Md
| Spi
| Spir
let inline kernelOutputs magic =
match magic with
| "fsharp" -> [[ Fs ]]
| "markdown" -> [[ Md ]]
| "spiral" -> [[ Spi; Spir ]]
| _ -> [[]]
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
match output, block with
| output, { magic = "markdown"; content = content } ->
let markdownComment =
match output with
| Spi | Spir -> "// // "
| Fs -> "/// "
| _ -> ""
content
|> String.split [[| '\n' |]]
|> Array.map (String.trimEnd [[||]])
|> Array.filter (String.endsWith " (test)" >> not)
|> Array.map (function
| "" -> markdownComment |> String.trim
| line -> System.Text.RegularExpressions.Regex.Replace (line,
"^\\s*", $"$&{markdownComment}")
)
|> String.concat "\n"
| Fs, { magic = "fsharp"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "//// test" || trimmedContent |>
String.startsWith "//// ignore"
then ""
else
content
|> String.split [[| '\n' |]]
|> Array.filter (String.trimStart [[||]] >> String.startsWith "#r"
>> not)
|> String.concat "\n"
| (Spi | Spir), { magic = "spiral"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "// // test" || trimmedContent |>
String.startsWith "// // ignore"
then ""
else content
| _ -> ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
c
\#!markdown
c
\#!fsharp
let a = 1"
|> escapeCell
|> run block
|> function
| Success (block, _, _) -> formatBlock Fs block
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
///
/// c"
╭─[ 68.37ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ /// │
│ /// c │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
blocks
|> List.map (formatBlock output)
|> List.filter ((<>) "")
|> String.concat "\n\n"
|> fun s -> s + "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
\#!markdown
c
\#!fsharp
let a = 1
\#!markdown
d (test)
\#!fsharp
//// test
let a = 2
\#!markdown
e
\#!fsharp
let a = 3"
|> escapeCell
|> run blocks
|> function
| Success (blocks, _, _) -> formatBlocks Fs blocks
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
/// c
let a = 1
/// e
let a = 3
"
╭─[ 67.92ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ │
│ /// c │
│ │
│ let a = 1 │
│ │
│ /// e │
│ │
│ let a = 3 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
match run blocks input with
| Success (blocks, _, _) ->
let blocks =
blocks
|> List.filter (fun block ->
block.magic |> kernelOutputs |> List.contains output ||
block.magic = "markdown"
)
match blocks with
| { magic = "markdown"; content = content } :: _
when output = Fs
&& content |> String.startsWith "# "
&& content |> String.endsWith ")"
->
let inline indentBlock (block : Block) =
{ block with
content =
block.content
|> String.split [[| '\n' |]]
|> Array.fold
(fun (lines, isMultiline) line ->
let trimmedLine = line |> String.trim
if trimmedLine = ""
then "" :: lines, isMultiline
else
let inline singleQuoteLine () =
trimmedLine |> Seq.sumBy ((=) '"' >>
System.Convert.ToInt32) = 1
&& trimmedLine |> String.contains
@"'""'" |> not
&& trimmedLine |> String.endsWith "{" |>
not
&& trimmedLine |> String.endsWith "{|"
|> not
&& trimmedLine |> String.startsWith "}"
|> not
&& trimmedLine |> String.startsWith "|}"
|> not
match isMultiline, trimmedLine |>
String.splitString [[| $"{q}{q}{q}" |]] with
| false, [[| _; _ |]] ->
$" {line}" :: lines, true
| true, [[| _; _ |]] ->
line :: lines, false
| false, _ when singleQuoteLine () ->
$" {line}" :: lines, true
| false, _ when line |> String.startsWith
"#" && block.magic = "fsharp" ->
line :: lines, false
| false, _ ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () && line |>
String.startsWith " " ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () ->
line :: lines, false
| true, _ ->
line :: lines, true
)
([[]], false)
|> fst
|> List.rev
|> String.concat "\n"
}
let moduleName, namespaceName =
System.Text.RegularExpressions.Regex.Match (content, @"# (.*)
\((.*)\)$")
|> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
let moduleBlock =
{
magic = "fsharp"
content =
$"#if !INTERACTIVE
namespace {namespaceName}
#endif
module {moduleName} ="
}
blocks
|> List.indexed
|> List.fold
(fun blocks (index, block) ->
match index with
| 0 -> blocks
| 1 -> indentBlock block :: moduleBlock :: blocks
| _ -> indentBlock block :: blocks
)
[[]]
|> List.rev
| _ -> blocks
|> Result.Ok
| Failure (errorMsg, _, _) -> Result.Error errorMsg
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example1 =
$"""#!meta
{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
\#!markdown
# TestModule (TestNamespace)
\#!fsharp
\#!import file.dib
\#!fsharp
\#r "nuget:Expecto"
\#!markdown
## ParserLibrary
\#!fsharp
open System
\#!markdown
## x (test)
\#!fsharp
//// ignore
let x = 1
\#!spiral
// // test
inl x = 0i32
\#!spiral
inl x = 0i32
\#!markdown
### TextInput
\#!fsharp
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
\#!fsharp
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}"""
|> escapeCell
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif
module TestModule =
/// ## ParserLibrary
open System
/// ### TextInput
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}
"""
╭─[ 179.07ms - stdout ]────────────────────────────────────────────────────────╮
│ #if !INTERACTIVE │
│ namespace TestNamespace │
│ #endif │
│ │
│ module TestModule = │
│ │
│ /// ## ParserLibrary │
│ │
│ open System │
│ │
│ /// ### TextInput │
│ │
│ let str1 = "abc │
│ def" │
│ │
│ let str2 = │
│ "abc\ │
│ def" │
│ │
│ let str3 = │
│ $"1{ │
│ 1 │
│ }1" │
│ │
│ let str4 = │
│ $"1{({| │
│ a = 1 │
│ |}).a}1" │
│ │
│ let str5 = │
│ "abc \ │
│ def" │
│ │
│ let x = │
│ match '"' with │
│ | '"' -> true │
│ | _ -> false │
│ │
│ let long1 = """a""" │
│ │
│ let long2 = │
│ """ │
│ a │
│ """ │
│ │
│ type Position = │
│ { │
│ #if INTERACTIVE │
│ line : string │
│ #else │
│ line : int │
│ #endif │
│ column : int │
│ } │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)
## ParserLibrary
### TextInput
"
╭─[ 156.05ms - stdout ]────────────────────────────────────────────────────────╮
│ # TestModule (TestNamespace) │
│ │
│ ## ParserLibrary │
│ │
│ ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "// // # TestModule (TestNamespace)
// // ## ParserLibrary
inl x = 0i32
// // ### TextInput
"
╭─[ 168.00ms - stdout ]────────────────────────────────────────────────────────╮
│ // // # TestModule (TestNamespace) │
│ │
│ // // ## ParserLibrary │
│ │
│ inl x = 0i32 │
│ │
│ // // ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"
trace Debug (fun () -> "parseDibCode") getLocals
let! input = file |> FileSystem.readAllTextAsync
match parse output input with
| Result.Ok blocks -> return blocks |> formatBlocks output
| Result.Error msg -> return failwith msg
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"
trace Debug (fun () -> "writeDibCode") getLocals
let! result = parseDibCode output path
let outputPath = path |> String.replace ".dib" $".{output |> string |>
String.toLower}"
do! result |> FileSystem.writeAllTextAsync outputPath
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
File of file : string * Output
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| File _ -> nameof File
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 116.08ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir> │
│ │
│ FILE: │
│ │
│ <file> <fs|md|spi|spir> │
│ File │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let files =
argsMap.[[nameof Arguments.File]]
|> List.map (function
| Arguments.File (path, output) -> path, output
)
files
|> List.map (fun (path, output) -> path |> writeDibCode output)
|> Async.Parallel
|> Async.Ignore
|> Async.runWithTimeout 30000
|> function
| Some () -> 0
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 152.53ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 163.54ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Builder.dib │
│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Builder.dib │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Builder (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
formatException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FileSystem.Operators
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildProject │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildProject runtime outputDir path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let fileDir = fullPath |> System.IO.Path.GetDirectoryName
let extension = fullPath |> System.IO.Path.GetExtension
let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"
trace Debug (fun () -> "buildProject") getLocals
match extension with
| ".fsproj" -> ()
| _ -> failwith "Invalid project file"
let runtimes =
runtime
|> Option.map List.singleton
|> Option.defaultValue [[ "linux-x64"; "win-x64" ]]
let outputDir = outputDir |> Option.defaultValue "dist"
return!
runtimes
|> List.map (fun runtime -> async {
let! exitCode, _result =
Runtime.executeWithOptionsAsync
{
Command = $@"dotnet publish ""{path}"" --configuration
Release --output ""{outputDir}"" --runtime {runtime}"
CancellationToken = None
OnLine = None
WorkingDirectory = Some fileDir
}
return exitCode
})
|> Async.Sequential
|> Async.map Array.sum
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## persistCodeProject │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline persistCodeProject packages modules name code = async {
let getLocals () = $"packages: {packages} / modules: {modules} / name:
{name} / code.Length: {code |> String.length} / {getLocals ()}"
trace Debug (fun () -> "persistCodeProject") getLocals
let repositoryRoot = FileSystem.getSourceDirectory () |>
FileSystem.findParent ".paket" false
let targetDir = repositoryRoot </> "target/polyglot/builder" </> name
System.IO.Directory.CreateDirectory targetDir |> ignore
let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath
do! code |> FileSystem.writeAllTextExists filePath
let modulesCode =
modules
|> List.map (fun path -> $"""<Compile Include="{repositoryRoot </>
path}" />""")
|> String.concat "\n "
let fsprojPath = targetDir </> $"{name}.fsproj"
let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
<RollForward>Major</RollForward>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<PublishAot>false</PublishAot>
<PublishTrimmed>false</PublishTrimmed>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<Version>0.0.1-alpha.1</Version>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
{modulesCode}
<Compile Include="{filePath}" />
</ItemGroup>
<Import Project="{repositoryRoot}/.paket/Paket.Restore.targets" />
</Project>
"""
do! fsprojCode |> FileSystem.writeAllTextExists fsprojPath
let paketReferencesPath = targetDir </> "paket.references"
let paketReferencesCode =
"FSharp.Core" :: packages
|> String.concat "\n"
do! paketReferencesCode |> FileSystem.writeAllTextExists paketReferencesPath
return fsprojPath
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildCode runtime packages modules outputDir name code = async {
let! fsprojPath = code |> persistCodeProject packages modules name
return! fsprojPath |> buildProject runtime outputDir
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"1 + 1 |> ignore"
|> buildCode None [[]] [[]] None "test1"
|> Async.runWithTimeout 180000
|> _assertEqual (Some 0)
╭─[ 27.33s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] persistCodeProject / packages: [] / modules: [] / name: │
│ test1 / code.Length: 15 │
│ 00:00:00 #2 [Debug] buildProject / fullPath: │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj │
│ 00:00:00 #3 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test1\test1.fsproj" │
│ --configuration Release --output "dist" --runtime linux-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test1" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:01 #5 [Verbose] > Determining projects to restore... │
│ 00:00:03 #6 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj (in 1.31 │
│ sec). │
│ 00:00:03 #7 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:07 #8 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fs(1,16): warning │
│ FS0988: Main module of program is empty: nothing will happen when it is run │
│ [C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:08 #9 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\bin\Release\net9.0\linux- │
│ x64\test1.dll │
│ 00:00:10 #10 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\dist\ │
│ 00:00:10 #11 [Debug] executeAsync / exitCode: 0 / output.Length: 912 │
│ 00:00:10 #12 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test1\test1.fsproj" │
│ --configuration Release --output "dist" --runtime win-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test1" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:10 #13 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:11 #14 [Verbose] > Determining projects to restore... │
│ 00:00:12 #15 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj (in 575 ms). │
│ 00:00:12 #16 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:15 #17 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fs(1,16): warning │
│ FS0988: Main module of program is empty: nothing will happen when it is run │
│ [C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:16 #18 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\bin\Release\net9.0\win-x6 │
│ 4\test1.dll │
│ 00:00:26 #19 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\dist\ │
│ 00:00:26 #20 [Debug] executeAsync / exitCode: 0 / output.Length: 908 │
│ FSharpOption<Int32> │
│ Value: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"1 + a |> ignore"
|> buildCode None [[]] [[]] None "test2"
|> Async.runWithTimeout 180000
|> _assertEqual (Some 2)
╭─[ 12.15s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:27 #21 [Debug] persistCodeProject / packages: [] / modules: [] / name: │
│ test2 / code.Length: 15 │
│ 00:00:27 #22 [Debug] buildProject / fullPath: │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj │
│ 00:00:27 #23 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test2\test2.fsproj" │
│ --configuration Release --output "dist" --runtime linux-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test2" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:27 #24 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:29 #25 [Verbose] > Determining projects to restore... │
│ 00:00:30 #26 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj (in 687 ms). │
│ 00:00:30 #27 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:33 #28 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fs(1,5): error │
│ FS0039: The value or constructor 'a' is not defined. [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:33 #29 [Debug] executeAsync / exitCode: 1 / output.Length: 715 │
│ 00:00:33 #30 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test2\test2.fsproj" │
│ --configuration Release --output "dist" --runtime win-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test2" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:34 #31 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:35 #32 [Verbose] > Determining projects to restore... │
│ 00:00:36 #33 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj (in 488 ms). │
│ 00:00:36 #34 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:38 #35 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fs(1,5): error │
│ FS0039: The value or constructor 'a' is not defined. [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:38 #36 [Debug] executeAsync / exitCode: 1 / output.Length: 715 │
│ FSharpOption<Int32> │
│ Value: 2 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## readFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline readFile path = async {
let! code = path |> FileSystem.readAllTextAsync
let code = System.Text.RegularExpressions.Regex.Replace (
code,
@"( *)(let\s+main\s+.*?\s*=)",
fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" +
m.Groups.[[1]].Value + m.Groups.[[2]].Value
)
let codeTrim = code |> String.trimEnd [[||]]
return
if codeTrim |> String.endsWith "\n()"
then codeTrim |> String.substring 0 ((codeTrim |> String.length) - 2)
else code
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildFile runtime packages modules path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let dir = fullPath |> System.IO.Path.GetDirectoryName
let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
let! code = fullPath |> readFile
return! code |> buildCode runtime packages modules (dir </> "dist" |> Some)
name
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## persistFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline persistFile packages modules path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
let! code = fullPath |> readFile
return! code |> persistCodeProject packages modules name
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]]
Path of path : string
| [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list
| [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list
| [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string
| [[<Argu.ArguAttributes.Unique>]] Persist_Only
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Path _ -> nameof Path
| Packages _ -> nameof Packages
| Modules _ -> nameof Modules
| Runtime _ -> nameof Runtime
| Persist_Only -> nameof Persist_Only
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 200.35ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] [--packages [<packages>...]] │
│ [--modules [<modules>...]] [--runtime <runtime>] │
│ [--persist-only] <path> │
│ │
│ PATH: │
│ │
│ <path> Path │
│ │
│ OPTIONS: │
│ │
│ --packages [<packages>...] │
│ Packages │
│ --modules [<modules>...] │
│ Modules │
│ --runtime <runtime> Runtime │
│ --persist-only Persist_Only │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let path =
match argsMap.[[nameof Arguments.Path]] with
| [[ Arguments.Path path ]] -> Some path
| _ -> None
|> Option.get
let packages =
match argsMap |> Map.tryFind (nameof Arguments.Packages) with
| Some [[ Arguments.Packages packages ]] -> packages
| _ -> [[]]
let modules =
match argsMap |> Map.tryFind (nameof Arguments.Modules) with
| Some [[ Arguments.Modules modules ]] -> modules
| _ -> [[]]
let runtime =
match argsMap |> Map.tryFind (nameof Arguments.Runtime) with
| Some [[ Arguments.Runtime runtime ]] -> Some runtime
| _ -> None
let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)
if persistOnly
then path |> persistFile packages modules |> Async.map (fun _ -> 0)
else path |> buildFile runtime packages modules
|> Async.runWithTimeout (60000 * 60)
|> function
| Some exitCode -> exitCode
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 28.37s - return value ]────────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 28.38s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:42 #37 [Debug] persistCodeProject / packages: [Argu; │
│ FSharp.Control.AsyncSeq; System.CommandLine; ... ] / modules: [ │
│ lib/spiral/common.fsx; lib/spiral/date_time.fsx; lib/spiral/file_system.fsx; │
│ ... ] / name: Builder / code.Length: 7086 │
│ 00:00:42 #38 [Debug] buildProject / fullPath: │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj │
│ 00:00:42 #39 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\Builder\Builder.fsproj" │
│ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist" │
│ --runtime linux-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\Builder" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:43 #40 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:44 #41 [Verbose] > Determining projects to restore... │
│ 00:00:45 #42 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj (in 458 │
│ ms). │
│ 00:00:45 #43 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj] │
│ 00:00:52 #44 [Verbose] > Builder -> │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\bin\Release\net9.0\linu │
│ x-x64\Builder.dll │
│ 00:00:53 #45 [Verbose] > Builder -> │
│ C:\home\git\polyglot\apps\builder\dist\ │
│ 00:00:53 #46 [Debug] executeAsync / exitCode: 0 / output.Length: 692 │
│ 00:00:53 #47 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\Builder\Builder.fsproj" │
│ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist" │
│ --runtime win-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\Builder" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:54 #48 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:54 #49 [Verbose] > Determining projects to restore... │
│ 00:00:55 #50 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj (in 456 │
│ ms). │
│ 00:00:55 #51 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj] │
│ 00:01:03 #52 [Verbose] > Builder -> │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\bin\Release\net9.0\win- │
│ x64\Builder.dll │
│ 00:01:10 #53 [Verbose] > Builder -> │
│ C:\home\git\polyglot\apps\builder\dist\ │
│ 00:01:11 #54 [Debug] executeAsync / exitCode: 0 / output.Length: 690 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Builder.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 327814 bytes to Builder.dib.html
In [ ]:
{ . "$ScriptDir/../apps/parser/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu
╭─[ 567.22ms - stdout ]────────────────────────────────────────────────────────╮
│ │
│ Directory: C:\Users\i574n\.nuget\packages\argu │
│ │
│ Mode LastWriteTime Length[ │
│ 32;1m Name │
│ ---- ------------- ------ [ │
│ 32;1m---- │
│ d---- 2023-05-17 3:38 PM 6.1.1 │
│ d---- 2024-03-12 8:22 PM 6.1.4 │
│ d---- 2024-01-29 5:12 PM 6.1.5 │
│ d---- 2024-03-12 8:20 PM 6.2.0 │
│ d---- 2024-02-23 6:50 PM 6.2.1 │
│ d---- 2024-03-12 8:15 PM 6.2.2 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline escapeCell input =
input
|> String.split [[| '\n' |]]
|> Array.map (function
| line when line |> String.startsWith "\\#!" || line |>
String.startsWith "\\#r" ->
System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
| line -> line
)
|> String.concat "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
$"a{nl}#!magic{nl}b{nl}"
)
╭─[ 206.82ms - stdout ]────────────────────────────────────────────────────────╮
│ a │
│ #!magic │
│ b │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic"
|> run magicMarker
|> _assertEqual (
Success ("#!", (), Position ("", 2, 1, 3))
)
╭─[ 157.30ms - stdout ]────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #! │
│ Item2: <null> │
│ Item3: Position │
│ Index: 2 │
│ Line: 1 │
│ Column: 3 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"##!magic"
|> run magicMarker
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 108.11ms - stdout ]────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ ##!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
magicMarker
>>. manyTill anyChar newline
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a"
|> run magicCommand
|> _assertEqual (
Success ("magic", (), Position ("", 8, 2, 1))
)
╭─[ 71.40ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: magic │
│ Item2: <null> │
│ Item3: Position │
│ Index: 8 │
│ Line: 2 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
" #!magic
a"
|> run magicCommand
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 44.64ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ #!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let content =
(newline >>. magicMarker) <|> (eof >>. preturn "")
|> attempt
|> lookAhead
|> manyTill anyChar
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run content
|> _assertEqual (
Success ("#!magic
a", (), Position ("", 14, 7, 1))
)
╭─[ 45.89ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #!magic │
│ │
│ │
│ a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
{
magic : string
content : string
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let block =
pipe2
magicCommand
content
(fun magic content ->
{
magic = magic
content = content
})
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run block
|> _assertEqual (
Success (
{ magic = "magic"; content = "a" },
(),
Position ("", 14, 7, 1)
)
)
╭─[ 36.30ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: Block │
│ magic: magic │
│ content: a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
skipMany newline
>>. sepEndBy block (skipMany1 newline)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic1
a
\#!magic2
b
"
|> escapeCell
|> run blocks
|> _assertEqual (
Success (
[[
{ magic = "magic1"; content = "a" }
{ magic = "magic2"; content = "b" }
]],
(),
Position ("", 26, 9, 1)
)
)
╭─[ 59.24ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: FSharpList<Block> │
│ - magic: magic1 │
│ content: a │
│ - magic: magic2 │
│ content: b │
│ Item2: <null> │
│ Item3: Position │
│ Index: 26 │
│ Line: 9 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
| Fs
| Md
| Spi
| Spir
let inline kernelOutputs magic =
match magic with
| "fsharp" -> [[ Fs ]]
| "markdown" -> [[ Md ]]
| "spiral" -> [[ Spi; Spir ]]
| _ -> [[]]
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
match output, block with
| output, { magic = "markdown"; content = content } ->
let markdownComment =
match output with
| Spi | Spir -> "// // "
| Fs -> "/// "
| _ -> ""
content
|> String.split [[| '\n' |]]
|> Array.map (String.trimEnd [[||]])
|> Array.filter (String.endsWith " (test)" >> not)
|> Array.map (function
| "" -> markdownComment |> String.trim
| line -> System.Text.RegularExpressions.Regex.Replace (line,
"^\\s*", $"$&{markdownComment}")
)
|> String.concat "\n"
| Fs, { magic = "fsharp"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "//// test" || trimmedContent |>
String.startsWith "//// ignore"
then ""
else
content
|> String.split [[| '\n' |]]
|> Array.filter (String.trimStart [[||]] >> String.startsWith "#r"
>> not)
|> String.concat "\n"
| (Spi | Spir), { magic = "spiral"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "// // test" || trimmedContent |>
String.startsWith "// // ignore"
then ""
else content
| _ -> ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
c
\#!markdown
c
\#!fsharp
let a = 1"
|> escapeCell
|> run block
|> function
| Success (block, _, _) -> formatBlock Fs block
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
///
/// c"
╭─[ 90.14ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ /// │
│ /// c │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
blocks
|> List.map (formatBlock output)
|> List.filter ((<>) "")
|> String.concat "\n\n"
|> fun s -> s + "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
\#!markdown
c
\#!fsharp
let a = 1
\#!markdown
d (test)
\#!fsharp
//// test
let a = 2
\#!markdown
e
\#!fsharp
let a = 3"
|> escapeCell
|> run blocks
|> function
| Success (blocks, _, _) -> formatBlocks Fs blocks
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
/// c
let a = 1
/// e
let a = 3
"
╭─[ 103.33ms - stdout ]────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ │
│ /// c │
│ │
│ let a = 1 │
│ │
│ /// e │
│ │
│ let a = 3 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
match run blocks input with
| Success (blocks, _, _) ->
let blocks =
blocks
|> List.filter (fun block ->
block.magic |> kernelOutputs |> List.contains output ||
block.magic = "markdown"
)
match blocks with
| { magic = "markdown"; content = content } :: _
when output = Fs
&& content |> String.startsWith "# "
&& content |> String.endsWith ")"
->
let inline indentBlock (block : Block) =
{ block with
content =
block.content
|> String.split [[| '\n' |]]
|> Array.fold
(fun (lines, isMultiline) line ->
let trimmedLine = line |> String.trim
if trimmedLine = ""
then "" :: lines, isMultiline
else
let inline singleQuoteLine () =
trimmedLine |> Seq.sumBy ((=) '"' >>
System.Convert.ToInt32) = 1
&& trimmedLine |> String.contains
@"'""'" |> not
&& trimmedLine |> String.endsWith "{" |>
not
&& trimmedLine |> String.endsWith "{|"
|> not
&& trimmedLine |> String.startsWith "}"
|> not
&& trimmedLine |> String.startsWith "|}"
|> not
match isMultiline, trimmedLine |>
String.splitString [[| $"{q}{q}{q}" |]] with
| false, [[| _; _ |]] ->
$" {line}" :: lines, true
| true, [[| _; _ |]] ->
line :: lines, false
| false, _ when singleQuoteLine () ->
$" {line}" :: lines, true
| false, _ when line |> String.startsWith
"#" && block.magic = "fsharp" ->
line :: lines, false
| false, _ ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () && line |>
String.startsWith " " ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () ->
line :: lines, false
| true, _ ->
line :: lines, true
)
([[]], false)
|> fst
|> List.rev
|> String.concat "\n"
}
let moduleName, namespaceName =
System.Text.RegularExpressions.Regex.Match (content, @"# (.*)
\((.*)\)$")
|> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
let moduleBlock =
{
magic = "fsharp"
content =
$"#if !INTERACTIVE
namespace {namespaceName}
#endif
module {moduleName} ="
}
blocks
|> List.indexed
|> List.fold
(fun blocks (index, block) ->
match index with
| 0 -> blocks
| 1 -> indentBlock block :: moduleBlock :: blocks
| _ -> indentBlock block :: blocks
)
[[]]
|> List.rev
| _ -> blocks
|> Result.Ok
| Failure (errorMsg, _, _) -> Result.Error errorMsg
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example1 =
$"""#!meta
{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
\#!markdown
# TestModule (TestNamespace)
\#!fsharp
\#!import file.dib
\#!fsharp
\#r "nuget:Expecto"
\#!markdown
## ParserLibrary
\#!fsharp
open System
\#!markdown
## x (test)
\#!fsharp
//// ignore
let x = 1
\#!spiral
// // test
inl x = 0i32
\#!spiral
inl x = 0i32
\#!markdown
### TextInput
\#!fsharp
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
\#!fsharp
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}"""
|> escapeCell
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif
module TestModule =
/// ## ParserLibrary
open System
/// ### TextInput
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}
"""
╭─[ 198.36ms - stdout ]────────────────────────────────────────────────────────╮
│ #if !INTERACTIVE │
│ namespace TestNamespace │
│ #endif │
│ │
│ module TestModule = │
│ │
│ /// ## ParserLibrary │
│ │
│ open System │
│ │
│ /// ### TextInput │
│ │
│ let str1 = "abc │
│ def" │
│ │
│ let str2 = │
│ "abc\ │
│ def" │
│ │
│ let str3 = │
│ $"1{ │
│ 1 │
│ }1" │
│ │
│ let str4 = │
│ $"1{({| │
│ a = 1 │
│ |}).a}1" │
│ │
│ let str5 = │
│ "abc \ │
│ def" │
│ │
│ let x = │
│ match '"' with │
│ | '"' -> true │
│ | _ -> false │
│ │
│ let long1 = """a""" │
│ │
│ let long2 = │
│ """ │
│ a │
│ """ │
│ │
│ type Position = │
│ { │
│ #if INTERACTIVE │
│ line : string │
│ #else │
│ line : int │
│ #endif │
│ column : int │
│ } │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)
## ParserLibrary
### TextInput
"
╭─[ 188.99ms - stdout ]────────────────────────────────────────────────────────╮
│ # TestModule (TestNamespace) │
│ │
│ ## ParserLibrary │
│ │
│ ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "// // # TestModule (TestNamespace)
// // ## ParserLibrary
inl x = 0i32
// // ### TextInput
"
╭─[ 174.92ms - stdout ]────────────────────────────────────────────────────────╮
│ // // # TestModule (TestNamespace) │
│ │
│ // // ## ParserLibrary │
│ │
│ inl x = 0i32 │
│ │
│ // // ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"
trace Debug (fun () -> "parseDibCode") getLocals
let! input = file |> FileSystem.readAllTextAsync
match parse output input with
| Result.Ok blocks -> return blocks |> formatBlocks output
| Result.Error msg -> return failwith msg
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"
trace Debug (fun () -> "writeDibCode") getLocals
let! result = parseDibCode output path
let outputPath = path |> String.replace ".dib" $".{output |> string |>
String.toLower}"
do! result |> FileSystem.writeAllTextAsync outputPath
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
File of file : string * Output
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| File _ -> nameof File
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 121.96ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir> │
│ │
│ FILE: │
│ │
│ <file> <fs|md|spi|spir> │
│ File │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let files =
argsMap.[[nameof Arguments.File]]
|> List.map (function
| Arguments.File (path, output) -> path, output
)
files
|> List.map (fun (path, output) -> path |> writeDibCode output)
|> Async.Parallel
|> Async.Ignore
|> Async.runWithTimeout 30000
|> function
| Some () -> 0
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 189.25ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 209.76ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DibParser.dib │
│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DibParser.dib │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook DibParser.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 369183 bytes to DibParser.dib.html
00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/date_time.fsx; lib/spiral/file_system.fsx; ... ] / name: DibParser / code.Length: 9066
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DibParser"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:02 #6 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj (in 451 ms).
00:00:02 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj]
00:00:08 #8 [Verbose] > DibParser -> C:\home\git\polyglot\target\polyglot\builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll
00:00:10 #9 [Verbose] > DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:10 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 707
00:00:10 #11 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DibParser"
CancellationToken = None
OnLine = None }
00:00:10 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:11 #13 [Verbose] > Determining projects to restore...
00:00:12 #14 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj (in 449 ms).
00:00:12 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj]
00:00:18 #16 [Verbose] > DibParser -> C:\home\git\polyglot\target\polyglot\builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll
00:00:27 #17 [Verbose] > DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:27 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 705
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # JsonParser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
#!import Parser.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Parser =
open Common
/// ### TextInput
type Position =
{
line : int
column : int
}
let initialPos = { line = 0; column = 0 }
let inline incrCol (pos : Position) =
{ pos with column = pos.column + 1 }
let inline incrLine pos =
{ line = pos.line + 1; column = 0 }
type InputState =
{
lines : string[[]]
position : Position
}
let inline fromStr str =
{
lines =
if str |> String.IsNullOrEmpty
then [[||]]
else str |> String.splitString [[| "\r\n"; "\n" |]]
position = initialPos
}
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open Parser
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## JsonParser │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
(*
// --------------------------------
JSON spec from http://www.json.org/
// --------------------------------
The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase
it here:
* A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`
or an `array`.
* These structures can be nested.
* A `string` is a sequence of zero or more Unicode characters, wrapped in double
quotes, using backslash escapes.
* A `number` is very much like a C or Java number, except that the octal and
hexadecimal formats are not used.
* A `boolean` is the literal `true` or `false`
* A `null` is the literal `null`
* An `object` is an unordered set of name/value pairs.
* An object begins with { (left brace) and ends with } (right brace).
* Each name is followed by : (colon) and the name/value pairs are separated by
, (comma).
* An `array` is an ordered collection of values.
* An array begins with [[ (left bracket) and ends with ]] (right bracket).
* Values are separated by , (comma).
* Whitespace can be inserted between any pair of tokens.
*)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a *
Input>) =
match actual, expected with
| Success (_actual, _), Success _expected ->
printResult actual
_actual |> _assertEqual _expected
| Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =
p2 ->
printResult actual
| _ ->
printfn $"Actual: {actual}"
printfn $"Expected: {expected}"
failwith "Parse failed"
actual
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### JValue │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type JValue =
| JString of string
| JNumber of float
| JBool of bool
| JNull
| JObject of Map<string, JValue>
| JArray of JValue list
── fsharp ──────────────────────────────────────────────────────────────────────
let jValue, jValueRef = createParserForwardedToRef<JValue> ()
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jNull │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jNull =
pstring "null"
>>% JNull
<?> "null"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jValue "null"
|> parserEqual (Success JNull)
╭─[ 230.67ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNull, { lines = [ │
│ |"null"|]<br/> position = { line = 0<br/> │
│ column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNull, { lines = [|"null"|]<br/> │
│ position = { line = 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │
│ <tr></tr></thead><tbody><tr><td>IsJString</td><td><d... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 239.79ms - stdout ]────────────────────────────────────────────────────────╮
│ JNull │
│ JValue │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: True │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNull "nulp"
|> parserEqual (
Failure (
"null",
"Unexpected 'p'",
{ currentLine = "nulp"; line = 0; column = 3 }
)
)
╭─[ 60.92ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("null", "Unexpected │
│ 'p'", { currentLine = "nulp"<br/> │
│ line = 0<br/> column = 3 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>null</pre></div></td></tr><tr><td>Item2</td><td>< │
│ div class="dni-plaintext"><pre>Unexpected │
│ 'p'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "nulp"<br/> line = 0<br/> column = 3 │
│ }</code></span></summary><div><table><thead><tr></tr></thead... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 68.50ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:3 Error parsing null │
│ nulp │
│ ^Unexpected 'p' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jBool │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jBool =
let jtrue =
pstring "true"
>>% JBool true
let jfalse =
pstring "false"
>>% JBool false
jtrue <|> jfalse
<?> "bool"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jBool "true"
|> parserEqual (Success (JBool true))
╭─[ 51.66ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JBool true, { lines = [ │
│ |"true"|]<br/> position = { line = 0<br/> │
│ column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JBool true, { lines = [|"true"|]<br/> │
│ position = { line = 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JBool │
│ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr.. │
│ . │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 59.52ms - stdout ]─────────────────────────────────────────────────────────╮
│ JBool true │
│ JBool │
│ Item: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jBool "false"
|> parserEqual (Success (JBool false))
╭─[ 45.23ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JBool false, { lines = [ │
│ |"false"|]<br/> position = { line = 0<br/> │
│ column = 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JBool false, { lines = [ │
│ |"false"|]<br/> position = { line = 0<br/> column = │
│ 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JBool │
│ false</code></span></summary><div><table><thead><tr></tr></thead><tb... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 52.36ms - stdout ]─────────────────────────────────────────────────────────╮
│ JBool false │
│ JBool │
│ Item: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jBool "truX"
|> parserEqual (
Failure (
"bool",
"Unexpected 't'",
{ currentLine = "truX"; line = 0; column = 0 }
)
)
╭─[ 29.75ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("bool", "Unexpected │
│ 't'", { currentLine = "truX"<br/> │
│ line = 0<br/> column = 0 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>bool</pre></div></td></tr><tr><td>Item2</td><td>< │
│ div class="dni-plaintext"><pre>Unexpected │
│ 't'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "truX"<br/> line = 0<br/> column = 0 │
│ }</code></span></summary><div><table><thead><tr></tr></thead... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 38.64ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:0 Error parsing bool │
│ truX │
│ ^Unexpected 't' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jUnescapedChar │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jUnescapedChar =
satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jUnescapedChar "a"
|> parserEqual (Success 'a')
╭─[ 85.01ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('a', { lines = [ │
│ |"a"|]<br/> position = { line = 0<br/> │
│ column = 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(a, { lines = [|"a"|]<br/> position = │
│ { line = 0<br/> column = 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"a"|]<br/... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 95.12ms - stdout ]─────────────────────────────────────────────────────────╮
│ 'a' │
│ a │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jUnescapedChar "\\"
|> parserEqual (
Failure (
"char",
"Unexpected '\\'",
{ currentLine = "\\"; line = 0; column = 0 }
)
)
╭─[ 82.27ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("char", "Unexpected │
│ '\'", { currentLine = "\"<br/> │
│ line = 0<br/> column = 0 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>char</pre></div></td></tr><tr><td>Item2</td><td>< │
│ div class="dni-plaintext"><pre>Unexpected │
│ '\'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "\"<br/> line = 0<br/> column = 0 │
│ }</code></span></summary><div><table><thead><tr></tr></thead><tbod... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 89.16ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:0 Error parsing char │
│ \ │
│ ^Unexpected '\' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jEscapedChar │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jEscapedChar =
[[
("\\\"",'\"')
("\\\\",'\\')
("\\/",'/')
("\\b",'\b')
("\\f",'\f')
("\\n",'\n')
("\\r",'\r')
("\\t",'\t')
]]
|> List.map (fun (toMatch, result) ->
pstring toMatch >>% result
)
|> choice
<?> "escaped char"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar "\\\\"
|> parserEqual (Success '\\')
╭─[ 57.21ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\\', { lines = [ │
│ |"\\"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(\, { lines = [|"\\"|]<br/> position │
│ = { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"\\"... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 67.30ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\\' │
│ \ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar "\\t"
|> parserEqual (Success '\t')
╭─[ 59.46ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\009', { lines = [ │
│ |"\t"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>( , { lines = [|"\t"|]<br/> position = │
│ { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre> │
│ </pre></div></td></tr><tr><td>Item2</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [ │
│ |"\t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 70.01ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\009' │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar @"\\"
|> parserEqual (Success '\\')
╭─[ 52.47ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\\', { lines = [ │
│ |"\\"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(\, { lines = [|"\\"|]<br/> position │
│ = { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"\\"... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 61.37ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\\' │
│ \ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar @"\n"
|> parserEqual (Success '\n')
╭─[ 49.60ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\010', { lines = [ │
│ |"<br/>"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(<br/>, { lines = [|"<br/>"|]<br/> │
│ position = { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre> │
│ </pre></div></td></tr><tr><td>Item2</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = │
│ ... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 58.28ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\010' │
│ │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar "a"
|> parserEqual (
Failure (
"escaped char",
"Unexpected 'a'",
{ currentLine = "a"; line = 0; column = 0 }
)
)
╭─[ 59.53ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("escaped char", │
│ "Unexpected 'a'", { currentLine = "a"<br/> │
│ line = 0<br/> column = 0 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre>escaped │
│ char</pre></div></td></tr><tr><td>Item2</td><td><div │
│ class="dni-plaintext"><pre>Unexpected │
│ 'a'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "a"<br/> line = 0<br/> column = 0 │
│ }</code></span></summary><div><tab... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 69.56ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:0 Error parsing escaped char │
│ a │
│ ^Unexpected 'a' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jUnicodeChar │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jUnicodeChar =
let backslash = pchar '\\'
let uChar = pchar 'u'
let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f'
]])
let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit
let inline convertToChar (((h1, h2), h3), h4) =
let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"
Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char
backslash >>. uChar >>. fourHexDigits
|>> convertToChar
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jUnicodeChar "\\u263A"
|> parserEqual (Success '☺')
╭─[ 87.64ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('☺', { lines = [ │
│ |"\u263A"|]<br/> position = { line = 0<br/> │
│ column = 6 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(☺, { lines = [|"\u263A"|]<br/> │
│ position = { line = 0<br/> column = 6 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>☺</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"\u2... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 94.49ms - stdout ]─────────────────────────────────────────────────────────╮
│ '☺' │
│ ☺ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jString │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let quotedString =
let quote = pchar '\"' <?> "quote"
let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar
quote >>. manyChars jchar .>> quote
── fsharp ──────────────────────────────────────────────────────────────────────
let jString =
quotedString
|>> JString
<?> "quoted string"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
jString
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"\""
|> parserEqual (Success (JString ""))
╭─[ 55.81ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "", { lines = [ │
│ |""""|]<br/> position = { line = │
│ 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "", { lines = [ │
│ |""""|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString ""</code></span></summary>... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 62.77ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "" │
│ JString │
│ Item: │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"a\""
|> parserEqual (Success (JString "a"))
╭─[ 45.28ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "a", { lines = [ │
│ |""a""|]<br/> position = { line = │
│ 0<br/> column = 3 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "a", { lines = [ │
│ |""a""|]<br/> position = { line = 0<br/> │
│ column = 3 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString "a"</code></span></s... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 54.10ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "a" │
│ JString │
│ Item: a │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"ab\""
|> parserEqual (Success (JString "ab"))
╭─[ 51.76ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "ab", { lines = [ │
│ |""ab""|]<br/> position = { line │
│ = 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "ab", { lines = [ │
│ |""ab""|]<br/> position = { line = 0<br/> │
│ column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString "ab"</code></s... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 59.27ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "ab" │
│ JString │
│ Item: ab │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"ab\\tde\""
|> parserEqual (Success (JString "ab\tde"))
╭─[ 42.73ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "ab de", { lines = [ │
│ |""ab\tde""|]<br/> position = │
│ { line = 0<br/> column = 8 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "ab de", { lines = [ │
│ |""ab\tde""|]<br/> position = { line = 0<br/> │
│ column = 8 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString &quo... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 51.30ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "ab de" │
│ JString │
│ Item: ab de │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"ab\\u263Ade\""
|> parserEqual (Success (JString "ab☺de"))
╭─[ 38.09ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "ab☺de", { lines = [ │
│ |""ab\u263Ade""|]<br/> │
│ position = { line = 0<br/> column = │
│ 12 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "ab☺de", { lines = [ │
│ |""ab\u263Ade""|]<br/> position = { line = 0<br/> │
│ column = 12 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JS... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 44.94ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "ab☺de" │
│ JString │
│ Item: ab☺de │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jNumber │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jNumber =
let optSign = opt (pchar '-')
let zero = pstring "0"
let digitOneNine =
satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"
let digit =
satisfy Char.IsDigit "digit"
let point = pchar '.'
let e = pchar 'e' <|> pchar 'E'
let optPlusMinus = opt (pchar '-' <|> pchar '+')
let nonZeroInt =
digitOneNine .>>. manyChars digit
|>> fun (first, rest) -> string first + rest
let intPart = zero <|> nonZeroInt
let fractionPart = point >>. manyChars1 digit
let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit
let inline (|>?) opt f =
match opt with
| None -> ""
| Some x -> f x
let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =
let signStr =
optSign
|>? string
let fractionPartStr =
fractionPart
|>? (fun digits -> "." + digits)
let expPartStr =
expPart
|>? fun (optSign, digits) ->
let sign = optSign |>? string
"e" + sign + digits
(signStr + intPart + fractionPartStr + expPartStr)
|> float
|> JNumber
optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart
|>> convertToJNumber
<?> "number"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
jString
jNumber
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "123"
|> parserEqual (Success (JNumber 123.0))
╭─[ 65.17ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 0<br/> │
│ column = 3 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 0<br/> column = 3 │
│ } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.0</code></span></summary><div><table><thead><tr></tr></the... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 72.73ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.0 │
│ JNumber │
│ Item: 123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "-123"
|> parserEqual (Success (JNumber -123.0))
╭─[ 45.10ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = │
│ 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = 0<br/> column = │
│ 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ -123.0</code></span></summary><div><table><thead><tr></t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 52.92ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber -123.0 │
│ JNumber │
│ Item: -123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "123.4"
|> parserEqual (Success (JNumber 123.4))
╭─[ 37.19ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = │
│ 0<br/> column = 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = 0<br/> column = │
│ 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.4</code></span></summary><div><table><thead><tr></tr><... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 44.45ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.4 │
│ JNumber │
│ Item: 123.4 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "-123."
|> parserEqual (Success (JNumber -123.0))
╭─[ 32.06ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │
│ |"-123."|]<br/> position = { line = │
│ 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │
│ |"-123."|]<br/> position = { line = 0<br/> column = │
│ 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ -123.0</code></span></summary><div><table><thead><tr><... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 38.68ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber -123.0 │
│ JNumber │
│ Item: -123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "00.1"
|> parserEqual (Success (JNumber 0.0))
╭─[ 44.10ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [ │
│ |"00.1"|]<br/> position = { line = 0<br/> │
│ column = 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 0.0, { lines = [ │
│ |"00.1"|]<br/> position = { line = 0<br/> column = │
│ 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbod... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 51.60ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 0.0 │
│ JNumber │
│ Item: 0 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let jNumber_ = jNumber .>> spaces1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123"
|> parserEqual (Success (JNumber 123.0))
╭─[ 38.74ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 1<br/> column = 0 │
│ } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.0</code></span></summary><div><table><thead><tr></tr></the... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 45.67ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.0 │
│ JNumber │
│ Item: 123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "-123"
|> parserEqual (Success (JNumber -123.0))
╭─[ 41.83ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = 1<br/> column = │
│ 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ -123.0</code></span></summary><div><table><thead><tr></t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 49.39ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber -123.0 │
│ JNumber │
│ Item: -123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "-123."
|> parserEqual (
Failure (
"number andThen many1 whitespace",
"Unexpected '.'",
{ currentLine = "-123."; line = 0; column = 4 }
)
)
╭─[ 34.17ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure<br/> ("number andThen many1 │
│ whitespace", "Unexpected '.'", { currentLine = │
│ "-123."<br/> │
│ line = 0<br/> │
│ column = 4 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1 │
│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div │
│ class="dni-plaintext"><pre>Unexpected │
│ '.'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 43.61ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:4 Error parsing number andThen many1 whitespace │
│ -123. │
│ ^Unexpected '.' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123.4"
|> parserEqual (Success (JNumber 123.4))
╭─[ 41.10ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = 1<br/> column = │
│ 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.4</code></span></summary><div><table><thead><tr></tr><... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 48.84ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.4 │
│ JNumber │
│ Item: 123.4 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "00.4"
|> parserEqual (
Failure (
"number andThen many1 whitespace",
"Unexpected '0'",
{ currentLine = "00.4"; line = 0; column = 1 }
)
)
╭─[ 29.14ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure<br/> ("number andThen many1 │
│ whitespace", "Unexpected '0'", { currentLine = │
│ "00.4"<br/> │
│ line = 0<br/> │
│ column = 1 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1 │
│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div │
│ class="dni-plaintext"><pre>Unexpected │
│ '0'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "0... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 35.94ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:1 Error parsing number andThen many1 whitespace │
│ 00.4 │
│ ^Unexpected '0' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123e4"
|> parserEqual (Success (JNumber 1230000.0))
╭─[ 40.14ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [ │
│ |"123e4"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [ │
│ |"123e4"|]<br/> position = { line = 1<br/> column = │
│ 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 1230000.0</code></span></summary><div><tab... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 47.70ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 1230000.0 │
│ JNumber │
│ Item: 1230000 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123.4e5"
|> parserEqual (Success (JNumber 12340000.0))
╭─[ 35.94ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [ │
│ |"123.4e5"|]<br/> position = { line │
│ = 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [ │
│ |"123.4e5"|]<br/> position = { line = 1<br/> column │
│ = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber 12340000.0</code></span></summary>... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 42.37ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 12340000.0 │
│ JNumber │
│ Item: 12340000 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123.4e-5"
|> parserEqual (Success (JNumber 0.001234))
╭─[ 38.56ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [ │
│ |"123.4e-5"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [ │
│ |"123.4e-5"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 0.001234</code></span></summary><div><ta... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 45.71ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 0.001234 │
│ JNumber │
│ Item: 0.001234 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jArray │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jArray =
let left = pchar '[[' .>> spaces
let right = pchar ']]' .>> spaces
let comma = pchar ',' .>> spaces
let value = jValue .>> spaces
let values = sepBy value comma
between left values right
|>> JArray
<?> "array"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
jString
jNumber
jArray
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jArray "[[ 1, 2 ]]"
|> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))
╭─[ 90.48ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], { │
│ lines = [|"[ 1, 2 ]"|]<br/> │
│ position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [ │
│ |"[ 1, 2 ]"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span class="d... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 97.42ms - stdout ]─────────────────────────────────────────────────────────╮
│ JArray [JNumber 1.0; JNumber 2.0] │
│ JArray │
│ Item: FSharpList<JValue> │
│ - Item: 1 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 2 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jArray "[[ 1, 2, ]]"
|> parserEqual (
Failure (
"array",
"Unexpected ','",
{ currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }
)
)
╭─[ 39.89ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("array", "Unexpected │
│ ','", { currentLine = "[ 1, 2, ]"<br/> │
│ line = 0<br/> column = 6 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>array</pre></div></td></tr><tr><td>Item2</td><td> │
│ <div class="dni-plaintext"><pre>Unexpected │
│ ','</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "[ 1, 2, ]"<br/> line = 0<br/> column = 6 │
│ }</code></span></summary><div><table><thead><t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 49.47ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:6 Error parsing array │
│ [ 1, 2, ] │
│ ^Unexpected ',' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jObject │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jObject =
let left = spaces >>. pchar '{' .>> spaces
let right = pchar '}' .>> spaces
let colon = pchar ':' .>> spaces
let comma = pchar ',' .>> spaces
let key = quotedString .>> spaces
let value = jValue .>> spaces
let keyValue = (key .>> colon) .>>. value
let keyValues = sepBy keyValue comma
between left keyValues right
|>> Map.ofList
|>> JObject
<?> "object"
── fsharp ──────────────────────────────────────────────────────────────────────
jValueRef <|
choice
[[
jNull
jBool
jString
jNumber
jArray
jObject
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jObject """{ "a":1, "b" : 2 }"""
|> parserEqual (
Success (
JObject (
Map.ofList [[
"a", JNumber 1.0
"b", JNumber 2.0
]]
)
)
)
╭─[ 153.99ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject (map [("a", │
│ JNumber 1.0); ("b", JNumber 2.0)]),<br/> { lines = [|"{ │
│ "a":1, "b" : 2 }"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject (map [("a", JNumber 1.0); │
│ ("b", JNumber 2.0)]), { lines = [|"{ "a":1, │
│ "b" : 2 }"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbod... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 162.13ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: a │
│ Value: JNumber │
│ Item: 1 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: b │
│ Value: JNumber │
│ Item: 2 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jObject """{ "a":1, "b" : 2, }"""
|> parserEqual (
Failure (
"object",
"Unexpected ','",
{ currentLine = """{ "a":1, "b" : 2, }"""; line = 0; column = 18 }
)
)
╭─[ 35.83ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("object", "Unexpected │
│ ','", { currentLine = "{ "a":1, "b" : │
│ 2, }"<br/> line = 0<br/> │
│ column = 18 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>object</pre></div></td></tr><tr><td>Item2</td><td │
│ ><div class="dni-plaintext"><pre>Unexpected │
│ ','</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "{ "a":1, "b" : 2, }"<br/> │
│ lin... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 42.54ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:18 Error parsing object │
│ { "a":1, "b" : 2, } │
│ ^Unexpected ',' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jValue │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example1 = """{
"name" : "Scott",
"isMale" : true,
"bday" : {"year":2001, "month":12, "day":25 },
"favouriteColors" : [["blue", "green"]],
"emptyArray" : [[]],
"emptyObject" : {}
}"""
run jValue example1
|> parserEqual (
Success (
JObject (
Map.ofList [[
"name", JString "Scott"
"isMale", JBool true
"bday", JObject (
Map.ofList [[
"year", JNumber 2001.0
"month", JNumber 12.0
"day", JNumber 25.0
]]
)
"favouriteColors", JArray [[ JString "blue"; JString "green" ]]
"emptyArray", JArray [[]]
"emptyObject", JObject Map.empty
]]
)
)
)
╭─[ 193.13ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │
│ [("bday",<br/> JObject<br/> (map<br/> │
│ [("day", JNumber 25.0); ("month", JNumber 12.0);<br/> │
│ ("year", JNumber 2001.0)])); ("emptyArray", JArray [ │
│ ]);<br/> ("emptyObject", JObject (map []));<br/> │
│ ("favouriteColors", │
│ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
│ d>Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │
│ ("bday",<br/> JObject<br/> (map<br/> [ │
│ (... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 200.62ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject │
│ (map │
│ [("bday", │
│ JObject │
│ (map │
│ [("day", JNumber 25.0); ("month", JNumber 12.0); │
│ ("year", JNumber 2001.0)])); ("emptyArray", JArray []); │
│ ("emptyObject", JObject (map [])); │
│ ("favouriteColors", JArray [JString "blue"; JString "green"]); │
│ ("isMale", JBool true); ("name", JString "Scott")]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: bday │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: day │
│ Value: JNumber 25.0 │
│ - Key: month │
│ Value: JNumber 12.0 │
│ - Key: year │
│ Value: JNumber 2001.0 │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: emptyArray │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: emptyObject │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: favouriteColors │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: blue │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: green │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: isMale │
│ Value: JBool │
│ Item: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: name │
│ Value: JString │
│ Item: Scott │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example2 = """{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
}
}}"""
run jValue example2
|> parserEqual (
Success (
JObject (
Map.ofList [[
"widget", JObject (
Map.ofList [[
"debug", JString "on"
"window", JObject (
Map.ofList [[
"title", JString "Sample Konfabulator Widget"
"name", JString "main_window"
"width", JNumber 500.0
"height", JNumber 500.0
]]
)
"image", JObject (
Map.ofList [[
"src", JString "Images/Sun.png"
"name", JString "sun1"
"hOffset", JNumber 250.0
"vOffset", JNumber 250.0
"alignment", JString "center"
]]
)
"text", JObject (
Map.ofList [[
"data", JString "Click Here"
"size", JNumber 36.0
"style", JString "bold"
"name", JString "text1"
"hOffset", JNumber 250.0
"vOffset", JNumber 100.0
"alignment", JString "center"
"onMouseUp", JString "sun1.opacity =
(sun1.opacity / 100) * 90;"
]]
)
]]
)
]]
)
)
)
╭─[ 366.68ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │
│ [("widget",<br/> JObject<br/> (map<br/> │
│ [("debug", JString "on");<br/> │
│ ("image",<br/> JObject<br/> │
│ (map<br/> [("alignment", JString │
│ "center");<br/> │
│ ("hOffset"...</code></span></summary><div><table><thead><tr></tr>< │
│ /thead><tbody><tr><td>Item</td><td><details │
│ class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │
│ ("widget",<br/> JObject<br/> (map<br/> ... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 373.86ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject │
│ (map │
│ [("widget", │
│ JObject │
│ (map │
│ [("debug", JString "on"); │
│ ("image", │
│ JObject │
│ (map │
│ [("alignment", JString "center"); ("hOffset", JNumber │
│ 250.0); │
│ ("name", JString "sun1"); ("src", JString │
│ "Images/Sun.png"); │
│ ("vOffset", JNumber 250.0)])); │
│ ("text", │
│ JObject │
│ (map │
│ [("alignment", JString "center"); │
│ ("data", JString "Click Here"); ("hOffset", JNumber │
│ 250.0); │
│ ("name", JString "text1"); │
│ ("onMouseUp", │
│ JString "sun1.opacity = (sun1.opacity / 100) * 90;"); │
│ ("size", JNumber 36.0); ("style", JString "bold"); │
│ ("vOffset", JNumber 100.0)])); │
│ ("window", │
│ JObject │
│ (map │
│ [("height", JNumber 500.0); ("name", JString │
│ "main_window"); │
│ ("title", JString "Sample Konfabulator Widget"); │
│ ("width", JNumber 500.0)]))]))]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: widget │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: debug │
│ Value: JString "on" │
│ - Key: image │
│ Value: JObject │
│ (map │
│ [("alignment", JString "center"); ("hOffset", JNumber 250.0); │
│ ("name", JString "sun1"); ("src", JString "Images/Sun.png"); │
│ ("vOffset", JNumber 250.0)]) │
│ - Key: text │
│ Value: JObject │
│ (map │
│ [("alignment", JString "center"); ("data", JString "Click Here"); │
│ ("hOffset", JNumber 250.0); ("name", JString "text1"); │
│ ("onMouseUp", JString "sun1.opacity = (sun1.opacity / 100) * 90;"); │
│ ("size", JNumber 36.0); ("style", JString "bold"); │
│ ("vOffset", JNumber 100.0)]) │
│ - Key: window │
│ Value: JObject │
│ (map │
│ [("height", JNumber 500.0); ("name", JString "main_window"); │
│ ("title", JString "Sample Konfabulator Widget"); ("width", JNumber │
│ 500.0)]) │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example3 = """{
"string": "Hello, \"World\"!",
"escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",
"number": 42,
"scientificNumber": 3.14e-10,
"boolean": true,
"nullValue": null,
"array": [[1, 2, 3, 4, 5]],
"unicodeString1": "프리마",
"unicodeString2": "\u0048\u0065\u006C\u006C\u006F,
\u0022\u0057\u006F\u0072\u006C\u0064\u0022!",
"specialCharacters": "!@#$%^&*()",
"emptyArray": [[]],
"emptyObject": {},
"nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],
"object": {
"nestedString": "Nested Value",
"nestedNumber": 3.14,
"nestedBoolean": false,
"nestedNull": null,
"nestedArray": [["a", "b", "c"]],
"nestedObject": {
"nestedProperty": "Nested Object Value"
}
},
"nestedObjects": [[
{"name": "Alice", "age": 25},
{"name": "Bob", "age": 30}
]]
}"""
run jValue example3
|> parserEqual (
Success (
JObject (
Map.ofList [[
"string", JString @"Hello, ""World""!"
"escapedString", JString @"This string contains
\/\\\b\f\n\r\t\""\'"
"number", JNumber 42.0
"scientificNumber", JNumber 3.14e-10
"boolean", JBool true
"nullValue", JNull
"array", JArray [[
JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber
5.0
]]
"unicodeString1", JString "프리마"
"unicodeString2", JString @"Hello, ""World""!"
"specialCharacters", JString "!@#$%^&*()"
"emptyArray", JArray [[]]
"emptyObject", JObject Map.empty
"nestedArrays", JArray [[
JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]
JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]
]]
"object", JObject (
Map.ofList [[
"nestedString", JString "Nested Value"
"nestedNumber", JNumber 3.14
"nestedBoolean", JBool false
"nestedNull", JNull
"nestedArray", JArray [[JString "a"; JString "b";
JString "c"]]
"nestedObject", JObject (
Map.ofList [[
"nestedProperty", JString "Nested Object Value"
]]
)
]]
)
"nestedObjects", JArray [[
JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber
25.0 ]])
JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber
30.0 ]])
]]
]]
)
)
)
╭─[ 481.18ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │
│ [("array",<br/> JArray<br/> [JNumber 1.0; │
│ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br/> │
│ ("boolean", JBool true); ("emptyArray", JArray []);<br/> │
│ ("emptyObject", JObject (map []));<br/> │
│ ("escapedString", JString "This │
│ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
│ td>Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │
│ ("array",<br/> JArray [JNumber 1.0; JNumber 2.0; JNumber │
│ 3.0; JNumber 4.0; J... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 489.94ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject │
│ (map │
│ [("array", │
│ JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber │
│ 5.0]); │
│ ("boolean", JBool true); ("emptyArray", JArray []); │
│ ("emptyObject", JObject (map [])); │
│ ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'"); │
│ ("nestedArrays", │
│ JArray │
│ [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; │
│ JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]); │
│ ("nestedObjects", │
│ JArray │
│ [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]); │
│ JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]); │
│ ("nullValue", JNull); ("number", JNumber 42.0); ...]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: array │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: 1 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 2 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 3 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 4 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 5 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: boolean │
│ Value: JBool │
│ Item: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: emptyArray │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: emptyObject │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: escapedString │
│ Value: JString │
│ Item: This string contains \/\\\b\f\n\r\t\"\' │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: nestedArrays │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: [ JNumber 1.0, JNumber 2.0, JNumber 3.0 ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Item: [ JNumber 4.0, JNumber 5.0, JNumber 6.0 ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: nestedObjects │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: [ [age, JNumber 25.0], [name, JString "Alice"] ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Item: [ [age, JNumber 30.0], [name, JString "Bob"] ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: nullValue │
│ Value: JValue │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: True │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: number │
│ Value: JNumber │
│ Item: 42 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: object │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: nestedArray │
│ Value: JArray [JString "a"; JString "b"; JString "c"] │
│ - Key: nestedBoolean │
│ Value: JBool false │
│ - Key: nestedNull │
│ Value: JNull │
│ - Key: nestedNumber │
│ Value: JNumber 3.14 │
│ - Key: nestedObject │
│ Value: JObject (map [("nestedProperty", JString "Nested │
│ Object Value")]) │
│ - Key: nestedString │
│ Value: JString "Nested Value" │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: scientificNumber │
│ Value: JNumber │
│ Item: 3.14E-10 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: specialCharacters │
│ Value: JString │
│ Item: !@#$%^&*() │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: string │
│ Value: JString │
│ Item: Hello, "World"! │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: unicodeString1 │
│ Value: JString │
│ Item: 프리마 │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: unicodeString2 │
│ Value: JString │
│ Item: Hello, "World"! │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook JsonParser.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 545578 bytes to JsonParser.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Parser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### TextInput │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Position =
{
line : int
column : int
}
── fsharp ──────────────────────────────────────────────────────────────────────
let initialPos = { line = 0; column = 0 }
── fsharp ──────────────────────────────────────────────────────────────────────
let inline incrCol (pos : Position) =
{ pos with column = pos.column + 1 }
── fsharp ──────────────────────────────────────────────────────────────────────
let inline incrLine pos =
{ line = pos.line + 1; column = 0 }
── fsharp ──────────────────────────────────────────────────────────────────────
type InputState =
{
lines : string[[]]
position : Position
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline fromStr str =
{
lines =
if str |> String.IsNullOrEmpty
then [[||]]
else str |> String.splitString [[| "\r\n"; "\n" |]]
position = initialPos
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fromStr "" |> _assertEqual {
lines = [[||]]
position = { line = 0; column = 0 }
}
╭─[ 50.63ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fromStr "Hello \n World" |> _assertEqual {
lines = [[| "Hello "; " World" |]]
position = { line = 0; column = 0 }
}
╭─[ 19.39ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ Hello , World ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline currentLine inputState =
let linePos = inputState.position.line
if linePos < inputState.lines.Length
then inputState.lines.[[linePos]]
else "end of file"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline nextChar input =
let linePos = input.position.line
let colPos = input.position.column
if linePos >= input.lines.Length
then input, None
else
let currentLine = currentLine input
if colPos < currentLine.Length then
let char = currentLine.[[colPos]]
let newPos = incrCol input.position
let newState = { input with position = newPos }
newState, Some char
else
let char = '\n'
let newPos = incrLine input.position
let newState = { input with position = newPos }
newState, Some char
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let newInput, charOpt = fromStr "Hello World" |> nextChar
newInput |> _assertEqual {
lines = [[| "Hello World" |]]
position = { line = 0; column = 1 }
}
charOpt |> _assertEqual (Some 'H')
╭─[ 52.12ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ Hello World ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ FSharpOption<Char> │
│ Value: H │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar
newInput |> _assertEqual {
lines = [[| "Hello"; ""; "World" |]]
position = { line = 0; column = 1 }
}
charOpt |> _assertEqual (Some 'H')
╭─[ 47.34ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ Hello, , World ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ FSharpOption<Char> │
│ Value: H │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### Parser │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Input = InputState
type ParserLabel = string
type ParserError = string
type ParserPosition =
{
currentLine : string
line : int
column : int
}
type ParseResult<'a> =
| Success of 'a
| Failure of ParserLabel * ParserError * ParserPosition
type Parser<'a> =
{
label : ParserLabel
parseFn : Input -> ParseResult<'a * Input>
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline printResult result =
match result with
| Success (value, input) ->
printfn $"%A{value}"
| Failure (label, error, parserPos) ->
let errorLine = parserPos.currentLine
let colPos = parserPos.column
let linePos = parserPos.line
let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"
printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing
%s{label}\n%s{errorLine}\n%s{failureCaret}"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runOnInput parser input =
parser.parseFn input
── fsharp ──────────────────────────────────────────────────────────────────────
let inline run parser inputStr =
runOnInput parser (fromStr inputStr)
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parserPositionFromInputState (inputState : Input) =
{
currentLine = currentLine inputState
line = inputState.position.line
column = inputState.position.column
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getLabel parser =
parser.label
── fsharp ──────────────────────────────────────────────────────────────────────
let inline setLabel parser newLabel =
{
label = newLabel
parseFn = fun input ->
match parser.parseFn input with
| Success s -> Success s
| Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)
}
── fsharp ──────────────────────────────────────────────────────────────────────
let (<?>) = setLabel
── fsharp ──────────────────────────────────────────────────────────────────────
let inline satisfy predicate label =
{
label = label
parseFn = fun input ->
let remainingInput, charOpt = nextChar input
match charOpt with
| None ->
let err = "No more input"
let pos = parserPositionFromInputState input
Failure (label, err, pos)
| Some first ->
if predicate first
then Success (first, remainingInput)
else
let err = $"Unexpected '%c{first}'"
let pos = parserPositionFromInputState input
Failure (label, err, pos)
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
runOnInput parser input |> _assertEqual (
Success (
'H',
{
lines = [[| "Hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 34.19ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - H │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "World"
let parser = satisfy (fun c -> c = 'H') "H"
runOnInput parser input |> _assertEqual (
Failure (
"H",
"Unexpected 'W'",
{
currentLine = "World"
line = 0
column = 0
}
)
)
╭─[ 33.07ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: H │
│ Item2: Unexpected 'W' │
│ Item3: ParserPosition │
│ currentLine: World │
│ line: 0 │
│ column: 0 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline bindP f p =
{
label = "unknown"
parseFn = fun input ->
match runOnInput p input with
| Failure (label, err, pos) -> Failure (label, err, pos)
| Success (value1, remainingInput) -> runOnInput (f value1)
remainingInput
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (>>=) p f = bindP f p
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
runOnInput parser2 input |> _assertEqual (
Success (
'e',
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 38.86ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - e │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "World"
let parser = satisfy (fun c -> c = 'W') "W"
let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
runOnInput parser2 input |> _assertEqual (
Failure (
"e",
"Unexpected 'o'",
{
currentLine = "World"
line = 0
column = 1
}
)
)
╭─[ 34.93ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: e │
│ Item2: Unexpected 'o' │
│ Item3: ParserPosition │
│ currentLine: World │
│ line: 0 │
│ column: 1 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline returnP x =
{
label = $"%A{x}"
parseFn = fun input -> Success (x, input)
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = returnP "Hello"
runOnInput parser input |> _assertEqual (
Success (
"Hello",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 0 }
}
)
)
╭─[ 84.93ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline mapP f =
bindP (f >> returnP)
── fsharp ──────────────────────────────────────────────────────────────────────
let (<!>) = mapP
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (|>>) x f = f <!> x
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = parser |>> string
runOnInput parser2 input |> _assertEqual (
Success (
"H",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 35.33ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - H │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline applyP fP xP =
fP >>=
fun f ->
xP >>=
fun x ->
returnP (f x)
── fsharp ──────────────────────────────────────────────────────────────────────
let (<*>) = applyP
── fsharp ──────────────────────────────────────────────────────────────────────
let inline lift2 f xP yP =
returnP f <*> xP <*> yP
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'e') "e"
let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2
runOnInput parser3 input |> _assertEqual (
Success (
"He",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 86.04ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - He │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline andThen p1 p2 =
p1 >>=
fun p1Result ->
p2 >>=
fun p2Result ->
returnP (p1Result, p2Result)
<?> $"{getLabel p1} andThen {getLabel p2}"
── fsharp ──────────────────────────────────────────────────────────────────────
let (.>>.) = andThen
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'e') "e"
let parser3 = parser .>>. parser2
runOnInput parser3 input |> _assertEqual (
Success (
('H', 'e'),
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 65.55ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - ( H, e ) │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline orElse p1 p2 =
{
label = $"{getLabel p1} orElse {getLabel p2}"
parseFn = fun input ->
match runOnInput p1 input with
| Success _ as result -> result
| Failure _ -> runOnInput p2 input
}
── fsharp ──────────────────────────────────────────────────────────────────────
let (<|>) = orElse
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'h') "h"
let parser3 = parser <|> parser2
runOnInput parser3 input |> _assertEqual (
Success (
'h',
{
lines = [[| "hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 43.47ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - h │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline choice listOfParsers =
listOfParsers |> List.reduce (<|>)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'h') "h"
let parser3 = choice [[ parser; parser2 ]]
runOnInput parser3 input |> _assertEqual (
Success (
'h',
{
lines = [[| "hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 110.34ms - stdout ]────────────────────────────────────────────────────────╮
│ Success │
│ Item: - h │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let rec sequence parserList =
match parserList with
| [[]] -> returnP [[]]
| head :: tail -> (lift2 cons) head (sequence tail)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'e') "e"
let parser3 = sequence [[ parser; parser2 ]]
runOnInput parser3 input |> _assertEqual (
Success (
[[ 'H'; 'e' ]],
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 70.33ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ H, e ] │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let rec parseZeroOrMore parser input =
match runOnInput parser input with
| Failure (_, _, _) ->
[[]], input
| Success (firstValue, inputAfterFirstParse) ->
let subsequentValues, remainingInput = parseZeroOrMore parser
inputAfterFirstParse
firstValue :: subsequentValues, remainingInput
── fsharp ──────────────────────────────────────────────────────────────────────
let inline many parser =
{
label = $"many {getLabel parser}"
parseFn = fun input -> Success (parseZeroOrMore parser input)
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = many parser
runOnInput parser2 input |> _assertEqual (
Success (
[[]],
{
lines = [[| "hello" |]]
position = { line = 0; column = 0 }
}
)
)
╭─[ 34.23ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ ] │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline many1 p =
p >>=
fun head ->
many p >>=
fun tail ->
returnP (head :: tail)
<?> $"many1 {getLabel p}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = many1 parser
runOnInput parser2 input |> _assertEqual (
Failure (
"many1 H",
"Unexpected 'h'",
{
currentLine = "hello"
line = 0
column = 0
}
)
)
╭─[ 45.99ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: many1 H │
│ Item2: Unexpected 'h' │
│ Item3: ParserPosition │
│ currentLine: hello │
│ line: 0 │
│ column: 0 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline opt p =
let some = p |>> Some
let none = returnP None
(some <|> none)
<?> $"opt {getLabel p}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = opt parser
runOnInput parser2 input |> _assertEqual (
Success (
None,
{
lines = [[| "hello" |]]
position = { line = 0; column = 0 }
}
)
)
╭─[ 66.72ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - <null> │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (.>>) p1 p2 =
p1 .>>. p2
|> mapP fst
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (>>.) p1 p2 =
p1 .>>. p2
|> mapP snd
── fsharp ──────────────────────────────────────────────────────────────────────
let inline between p1 p2 p3 =
p1 >>. p2 .>> p3
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "[[Hello]]"
let parser =
between
(satisfy (fun c -> c = '[[') "[[")
(many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |>
List.contains c) "letter"))
(satisfy (fun c -> c = ']]') "]]")
runOnInput parser input |> _assertEqual (
Success (
[[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
{
lines = [[| "[[Hello]]" |]]
position = { line = 0; column = 7 }
}
)
)
╭─[ 170.83ms - stdout ]────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ H, e, l, l, o ] │
│ - InputState │
│ lines: [ [Hello] ] │
│ position: Position │
│ line: 0 │
│ column: 7 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sepBy1 p sep =
let sepThenP = sep >>. p
p .>>. many sepThenP
|>> fun (p, pList) -> p :: pList
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sepBy p sep =
sepBy1 p sep <|> returnP [[]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello,World"
let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy
(fun c -> c = ',') "comma")
runOnInput parser input |> _assertEqual (
Success (
[[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]]
]],
{
lines = [[| "Hello,World" |]]
position = { line = 1; column = 0 }
}
)
)
╭─[ 92.00ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - FSharpList<FSharpList<Char>> │
│ [ H, e, l, l, o ] │
│ [ W, o, r, l, d, │
│ ] │
│ - InputState │
│ lines: [ Hello,World ] │
│ position: Position │
│ line: 1 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline pchar charToMatch =
satisfy ((=) charToMatch) $"%c{charToMatch}"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline anyOf listOfChars =
listOfChars
|> List.map pchar
|> choice
<?> $"anyOf %A{listOfChars}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many
runOnInput parser input |> _assertEqual (
Success (
[[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
{
lines = [[| "Hello" |]]
position = { line = 0; column = 5 }
}
)
)
╭─[ 94.01ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ H, e, l, l, o ] │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 5 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline charListToStr charList =
charList |> List.toArray |> String
── fsharp ──────────────────────────────────────────────────────────────────────
let inline manyChars cp =
many cp
|>> charListToStr
── fsharp ──────────────────────────────────────────────────────────────────────
let inline manyChars1 cp =
many1 cp
|>> charListToStr
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])
runOnInput parser input |> _assertEqual (
Success (
"Hello",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 5 }
}
)
)
╭─[ 68.22ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 5 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline pstring str =
str
|> List.ofSeq
|> List.map pchar
|> sequence
|> mapP charListToStr
<?> str
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = pstring "Hello"
runOnInput parser input |> _assertEqual (
Success (
"Hello",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 5 }
}
)
)
╭─[ 45.12ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 5 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let whitespaceChar =
satisfy Char.IsWhiteSpace "whitespace"
── fsharp ──────────────────────────────────────────────────────────────────────
let spaces = many whitespaceChar
── fsharp ──────────────────────────────────────────────────────────────────────
let spaces1 = many1 whitespaceChar
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr " Hello"
let parser = spaces1 .>>. pstring "Hello"
runOnInput parser input |> _assertEqual (
Success (
([[ ' '; ' ' ]], "Hello"),
{
lines = [[| " Hello" |]]
position = { line = 0; column = 7 }
}
)
)
╭─[ 58.73ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - - [ , ] │
│ - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 7 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let digitChar =
satisfy Char.IsDigit "digit"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = digitChar
runOnInput parser input |> _assertEqual (
Failure (
"digit",
"Unexpected 'H'",
{
currentLine = "Hello"
line = 0
column = 0
}
)
)
╭─[ 24.53ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: digit │
│ Item2: Unexpected 'H' │
│ Item3: ParserPosition │
│ currentLine: Hello │
│ line: 0 │
│ column: 0 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let pint =
let inline resultToInt (sign, digits) =
let i = int digits
match sign with
| Some ch -> -i
| None -> i
let digits = manyChars1 digitChar
opt (pchar '-') .>>. digits
|> mapP resultToInt
<?> "integer"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run pint "-123"
|> _assertEqual (
Success (
-123,
{
lines = [[| "-123" |]]
position = { line = 0; column = 4 }
}
)
)
╭─[ 34.18ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - -123 │
│ - InputState │
│ lines: [ -123 ] │
│ position: Position │
│ line: 0 │
│ column: 4 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let pfloat =
let inline resultToFloat (((sign, digits1), point), digits2) =
let fl = float $"{digits1}.{digits2}"
match sign with
| Some ch -> -fl
| None -> fl
let digits = manyChars1 digitChar
opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits
|> mapP resultToFloat
<?> "float"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run pfloat "-123.45"
|> _assertEqual (
Success (
-123.45,
{
lines = [[| "-123.45" |]]
position = { line = 0; column = 7 }
}
)
)
╭─[ 40.18ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - -123.45 │
│ - InputState │
│ lines: [ -123.45 ] │
│ position: Position │
│ line: 0 │
│ column: 7 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline createParserForwardedToRef<'a> () =
let mutable parserRef : Parser<'a> =
{
label = "unknown"
parseFn = fun _ -> failwith "unfixed forwarded parser"
}
let wrapperParser =
{ parserRef with
parseFn = fun input -> runOnInput parserRef input
}
wrapperParser, (fun v -> parserRef <- v)
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (>>%) p x =
p
|>> fun _ -> x
[NbConvertApp] Converting notebook Parser.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 415395 bytes to Parser.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Parser.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: JsonParser.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Parser.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: JsonParser.dib
In [ ]:
{ . "$ScriptDir/../lib/fsharp/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Async (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## choice │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## map │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline map fn a = async {
let! x = a
return fn x
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## catch │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline catch a =
a
|> Async.Catch
|> map (function
| Choice1Of2 result -> Ok result
| Choice2Of2 ex -> Error ex
)
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## runWithTimeoutAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutAsync (timeout : int) fn =
let getLocals () = $"timeout: {timeout} / {getLocals ()}"
let timeoutTask = async {
do! Async.Sleep timeout
trace Debug (fun () -> "runWithTimeoutAsync") getLocals
return None
}
let task = async {
try
let! result = fn
return Some result
with
| :? System.AggregateException as ex when
ex.InnerExceptions
|> Seq.exists (function :?
System.Threading.Tasks.TaskCanceledException -> true | _ -> false)
->
let getLocals () = $"ex: {ex |> formatException} / {getLocals ()}"
trace Warning (fun () -> "runWithTimeoutAsync") getLocals
return None
| ex ->
trace Critical (fun () -> $"runWithTimeoutAsync** / ex: {ex |>
formatException}") getLocals
return None
}
[[ timeoutTask; task ]]
|> choice
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeout timeout fn =
fn
|> runWithTimeoutAsync timeout
|> Async.RunSynchronously
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 60
|> runWithTimeout 10
|> _assertEqual None
╭─[ 162.72ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 10 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 10
|> runWithTimeout 60
|> _assertEqual (Some ())
╭─[ 107.65ms - stdout ]────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
async {
raise (exn "error")
}
|> runWithTimeout 60
|> _assertEqual None
╭─[ 124.28ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Critical] runWithTimeoutAsync** / ex: System.Exception: error / │
│ timeout: 60 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## runWithTimeoutChildAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutChildAsync (timeout : int) fn = async {
let getLocals () = $"timeout: {timeout} / {getLocals ()}"
let! child = Async.StartChild (fn, timeout)
return!
child
|> catch
|> map (function
| Ok result -> Some result
| Error (:? System.TimeoutException as ex) ->
trace Debug (fun () -> $"runWithTimeoutChildAsync") getLocals
None
| Error ex ->
trace Critical (fun () -> $"runWithTimeoutChildAsync** / ex: {ex
|> formatException}") getLocals
None
)
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutChild timeout fn =
fn
|> runWithTimeoutChildAsync timeout
|> Async.RunSynchronously
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 60
|> runWithTimeoutChild 10
|> _assertEqual None
╭─[ 86.80ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #3 [Debug] runWithTimeoutChildAsync / timeout: 10 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 10
|> runWithTimeoutChild 60
|> _assertEqual (Some ())
╭─[ 83.66ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
async {
raise (exn "error")
}
|> runWithTimeoutChild 60
|> _assertEqual None
╭─[ 110.24ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #4 [Critical] runWithTimeoutChildAsync** / ex: System.Exception: │
│ error / timeout: 60 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## runWithTimeoutStrict │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutStrict (timeout : int) fn =
let getLocals () = $"timeout: {timeout} / {getLocals ()}"
let timeoutTask = async {
do! Async.Sleep timeout
return None, getLocals
}
let task = async {
try
return Async.RunSynchronously (fn, timeout) |> Some, getLocals
with
| :? System.TimeoutException as ex ->
let getLocals () = $"ex: {ex |> formatException} / {getLocals ()}"
return None, getLocals
| ex ->
trace Critical (fun () -> $"runWithTimeoutStrict / ex: {ex |>
formatException}") getLocals
return raise ex
}
try
[[| timeoutTask; task |]]
|> Array.map Async.StartAsTask
|> System.Threading.Tasks.Task.WhenAny
|> fun task ->
match task.Result.Result with
| None, getLocals ->
trace Debug (fun () -> "runWithTimeoutStrict") getLocals
None
| result, _ -> result
with
| :? System.AggregateException as ex when
ex.InnerExceptions
|> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException
-> true | _ -> false)
->
let getLocals () = $"ex: {ex |> formatException} / {getLocals ()}"
trace Warning (fun () -> "runWithTimeoutStrict") getLocals
None
| ex ->
let getLocals () = $"ex: {ex |> formatException} / {getLocals ()}"
trace Critical (fun () -> "runWithTimeoutStrict**") getLocals
None
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 60
|> runWithTimeoutStrict 10
|> _assertEqual None
╭─[ 125.34ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:01 #5 [Debug] runWithTimeoutStrict / timeout: 10 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 10
|> runWithTimeoutStrict 60
|> _assertEqual (Some ())
╭─[ 106.21ms - stdout ]────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
async {
raise (exn "error")
}
|> runWithTimeoutStrict 60
|> _assertEqual None
╭─[ 118.17ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:01 #6 [Critical] runWithTimeoutStrict / ex: System.Exception: error / │
│ timeout: 60 │
│ 00:00:01 #7 [Critical] runWithTimeoutStrict** / ex: │
│ System.AggregateException: One or more errors occurred. (error) / timeout: │
│ 60 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## awaitValueTask │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =
task.AsTask () |> Async.AwaitTask
let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =
task.AsTask () |> Async.AwaitTask
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## init │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline init x = async {
return x
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
init 1
|> Async.RunSynchronously
|> _assertEqual 1
╭─[ 33.03ms - stdout ]─────────────────────────────────────────────────────────╮
│ 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## mergeCancellationTokenWithDefaultAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline mergeCancellationTokenWithDefaultAsync (token :
System.Threading.CancellationToken) = async {
let! ct = Async.CancellationToken
let dct = Async.DefaultCancellationToken
let cts = System.Threading.CancellationTokenSource.CreateLinkedTokenSource
[[| ct; dct; token |]]
return cts.Token
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## withCancellationToken │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =
Async.StartImmediateAsTask (fn, ct)
|> Async.AwaitTask
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let cts = new System.Threading.CancellationTokenSource ()
async {
let run = async {
do! Async.Sleep 100
return 1
}
let! child =
run
|> withCancellationToken cts.Token
|> catch
|> Async.StartChild
do! Async.Sleep 50
cts.Cancel ()
return! child
}
|> Async.RunSynchronously
|> Result.mapError _.Message
|> _assertEqual (Error ("A task was canceled."))
╭─[ 193.28ms - stdout ]────────────────────────────────────────────────────────╮
│ FSharpResult<Int32,String> │
│ ResultValue: 0 │
│ ErrorValue: A task was canceled. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## withTraceLevel │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline withTraceLevel level fn = async {
let oldTraceLevel = traceLevel
try
traceLevel <- level
return! fn
finally
traceLevel <- oldTraceLevel
}
[NbConvertApp] Converting notebook Async.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 324838 bytes to Async.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # AsyncSeq (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/Async.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## subscribeEvent │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
type TestEvent () as self =
member val Calls = [[]] with get, set
member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get
member _.AddCall text =
self.Calls <- self.Calls @ [[ text ]]
member _.EventInterface =
{ new IEvent<ErrorEventHandler, ErrorEventArgs> with
member _.AddHandler handler =
self.AddCall "AddHandler"
self.Event.Publish.AddHandler handler
member _.RemoveHandler handler =
self.AddCall "RemoveHandler"
self.Event.Publish.RemoveHandler handler
member _.Subscribe observer =
self.AddCall "IObservable.Subscribe"
let disposable = self.Event.Publish.Subscribe observer
new_disposable (fun () ->
self.AddCall "IObservable.Dispose"
disposable.Dispose ()
)
}
member _.Subscribe () =
subscribeEvent
self.EventInterface
(fun args ->
let result = args.GetException () |> formatException
self.AddCall $"TestEvent.Subscribe({result})"
result
)
member _.Iter subscription =
subscription
|> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {
self.AddCall $"TestEvent.Iter({i}: {error})"
})
member _.WaitCall text = async {
while self.Calls |> List.last <> text do
do! Async.SwitchToThreadPool ()
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testEvent = TestEvent ()
async {
testEvent.AddCall "1"
let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
do! testEvent.WaitCall "AddHandler"
testEvent.AddCall "2"
do! child
testEvent.AddCall "3"
}
|> Async.runWithTimeout 300
|> _assertEqual None
testEvent.Calls
|> Seq.toList
|> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]
╭─[ 541.25ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 300 │
│ <null> │
│ [ 1, AddHandler, 2, RemoveHandler ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testEvent = TestEvent ()
async {
testEvent.AddCall "1"
let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
do! testEvent.WaitCall "AddHandler"
testEvent.AddCall "2"
use _ = testEvent.EventInterface.Subscribe (fun args ->
testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"
)
testEvent.AddCall "3"
do! child
testEvent.AddCall "4"
}
|> Async.runWithTimeout 300
|> _assertEqual None
testEvent.Calls
|> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";
"RemoveHandler"; "IObservable.Dispose" ]]
╭─[ 569.75ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 300 │
│ <null> │
│ [ 1, AddHandler, 2, IObservable.Subscribe, 3, RemoveHandler, │
│ IObservable.Dispose ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testEvent = TestEvent ()
async {
testEvent.AddCall "1"
let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
do! testEvent.WaitCall "AddHandler"
testEvent.AddCall "2"
use _ = testEvent.EventInterface.Subscribe (fun args ->
async {
do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"
testEvent.AddCall
$"testEvent.EventInterface.Subscribe({args.GetException () |> formatException})"
}
|> Async.RunSynchronously
)
testEvent.AddCall "3"
testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))
testEvent.AddCall "4"
do! child
testEvent.AddCall "5"
}
|> Async.runWithTimeout 300
|> _assertEqual None
testEvent.Calls
|> _assertEqual [[
"1"
"AddHandler"
"2"
"IObservable.Subscribe"
"3"
"TestEvent.Subscribe(System.Exception: error)"
"TestEvent.Iter(0: System.Exception: error)"
"testEvent.EventInterface.Subscribe(System.Exception: error)"
"4"
"RemoveHandler"
"IObservable.Dispose"
]]
╭─[ 531.56ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:01 #3 [Debug] runWithTimeoutAsync / timeout: 300 │
│ <null> │
│ [ 1, AddHandler, 2, IObservable.Subscribe, 3, │
│ TestEvent.Subscribe(System.Exception: error), TestEvent.Iter(0: │
│ System.Exception: error), │
│ testEvent.EventInterface.Subscribe(System.Exception: error), 4, │
│ RemoveHandler, IObservable.Dispose ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun () -> async {
do! tcs.Task |> Async.AwaitTask
return Some (System.DateTime.Now.Ticks - start, ())
})
()
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let cts = new System.Threading.CancellationTokenSource ()
async {
let! child =
cts.Token
|> subscribeToken
|> FSharp.Control.AsyncSeq.tryFirst
|> Async.StartChild
do! Async.Sleep 100
cts.Cancel ()
return! child
}
|> Async.RunSynchronously
|> Option.get
|> _isGreaterThan 900000
╭─[ 177.28ms - stdout ]────────────────────────────────────────────────────────╮
│ 1141325 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook AsyncSeq.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 301627 bytes to AsyncSeq.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Common (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp ──────────────────────────────────────────────────────────────────────
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
── fsharp ──────────────────────────────────────────────────────────────────────
let nl = System.Environment.NewLine
let q = @""""
── fsharp ──────────────────────────────────────────────────────────────────────
let inline cons head tail = head :: tail
── fsharp ──────────────────────────────────────────────────────────────────────
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input : string)
=
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline splitString (separator : string array) (input : string) =
input.Split (separator, System.StringSplitOptions.None)
let inline startsWith (value : string) (input : string) =
input.StartsWith value
let inline substring startIndex length (input : string) =
input.Substring (startIndex, length)
let inline toLower (input : string) =
input.ToLower ()
let inline toUpper (input : string) =
input.ToUpper ()
let inline trim (input : string) =
input.Trim ()
let inline trimEnd (trimChars : char array) (input : string) =
input.TrimEnd trimChars
let inline trimStart (trimChars : char array) (input : string) =
input.TrimStart trimChars
let ellipsis max value =
if value |> String.length <= max
then value
else $"{value |> substring 0 max}..."
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatException │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatException (ex : exn) =
$"{ex.GetType ()}: {ex.Message}"
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## memoize │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline memoize fn =
let result = lazy fn ()
fun () -> result.Value
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## TraceLevel │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type TraceLevel =
| Verbose
| Debug
| Info
| Warning
| Critical
let inline getLocals () = ""
let mutable traceEnabled = true
let mutable traceCount = 0
let mutable traceLevel = Verbose
let mutable traceDump = false
── fsharp ──────────────────────────────────────────────────────────────────────
let testTraceLevel level =
traceEnabled && level >= traceLevel
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## traceRaw │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let rec traceRaw level fn =
if level |> testTraceLevel then
traceCount <- traceCount + 1
let text = $"%s{fn ()}"
#if FABLE_COMPILER_RUST
Fable.Core.RustInterop.emitRustExpr () @"println!(""{}"", text)"
#else
System.Console.WriteLine text
#endif
#if !WASM && !FABLE_COMPILER
if traceDump then
try
let tmpPath = System.IO.Path.GetTempPath ()
let logDir = System.IO.Path.Combine (tmpPath, "!polyglot")
System.IO.Directory.CreateDirectory logDir |> ignore
let logFile = System.IO.Path.Combine (logDir,
$"{Date_time.new_guid_from_date_time System.DateTime.Now}.txt")
System.IO.File.WriteAllTextAsync (logFile, text) |>
Async.AwaitTask |> Async.RunSynchronously
with ex ->
traceRaw Critical (fun () -> $"trace / ex: {ex |>
formatException}")
#endif
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
traceRaw Debug (fun () -> "test")
╭─[ 10.89ms - stdout ]─────────────────────────────────────────────────────────╮
│ test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## trace │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let private replStart =
#if INTERACTIVE || !FABLE_COMPILER
fun () ->
if System.Reflection.Assembly.GetEntryAssembly().GetName().Name <>
"Microsoft.DotNet.Interactive.App"
then Some System.DateTime.Now.Ticks
else None
|> memoize
#else
fun () -> None : int64 option
#endif
let trace level fn getLocals =
fun () ->
let time =
#if WASM
""
#else
match replStart () with
| Some replStart ->
let t = System.DateTime.Now.Ticks - replStart |> System.TimeSpan
System.DateTime (1, 1, 1, t.Hours, t.Minutes, t.Seconds,
t.Milliseconds)
| None -> System.DateTime.Now
|> fun dateTime ->
#if FABLE_COMPILER_RUST
"hh:mm:ss"
#else
"HH:mm:ss"
#endif
|> dateTime.ToString
#endif
$"{time} #{traceCount} [[%A{level}]] %s{fn ()} / %s{getLocals ()}"
|> String.trimStart [[||]]
|> String.trimEnd [[| ' '; '/' |]]
|> traceRaw level
let inline withTrace enabled fn =
let oldTraceEnabled = traceEnabled
try
traceEnabled <- enabled
fn ()
finally
traceEnabled <- oldTraceEnabled
let inline withTraceEnabled fn =
withTrace true fn
let inline withTraceDisabled fn =
withTrace false fn
let inline withTraceLevel level fn =
let oldTraceLevel = traceLevel
try
traceLevel <- level
fn ()
finally
traceLevel <- oldTraceLevel
let inline withTraceDump dump fn =
let oldTraceDump = traceDump
try
traceDump <- dump
fn ()
finally
traceDump <- oldTraceDump
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
trace Debug (fun () -> "test") getLocals
╭─[ 27.30ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Debug] test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Common.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 304404 bytes to Common.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # CommonFSharp (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getUnionCaseName │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
TraceLevel.Critical
|> getUnionCaseName
|> _assertEqual (nameof TraceLevel.Critical)
╭─[ 76.16ms - stdout ]─────────────────────────────────────────────────────────╮
│ Critical │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook CommonFSharp.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 275713 bytes to CommonFSharp.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Threading (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## newDisposableToken │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline newDisposableToken (mergeToken: System.Threading.CancellationToken
option) =
let cts = new System.Threading.CancellationTokenSource ()
let cts =
match mergeToken with
| None -> cts
| Some mergeToken ->
System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[|
cts.Token; mergeToken |]]
let disposable = new_disposable cts.Cancel
cts.Token, disposable
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable counter = 0
let inline run fn =
let token, disposable = newDisposableToken None
use _ = disposable
fn token
async {
fn token
}
|> Async.Start
let inline fn (token : System.Threading.CancellationToken) =
counter <- counter + (if token.IsCancellationRequested then 10 else 1)
async {
run fn
do! Async.Sleep 10
return counter
}
|> Async.RunSynchronously
|> _assertEqual 11
╭─[ 185.12ms - stdout ]────────────────────────────────────────────────────────╮
│ 11 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Threading.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 278731 bytes to Threading.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Crypto (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## hashText │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let hashText (input : string) =
use sha256 = System.Security.Cryptography.SHA256.Create ()
input
|> System.Text.Encoding.UTF8.GetBytes
|> sha256.ComputeHash
|> Array.map (fun b -> b.ToString "x2")
|> String.concat ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
""
|> hashText
|> _assertEqual
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
╭─[ 51.06ms - stdout ]─────────────────────────────────────────────────────────╮
│ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
" "
|> hashText
|> _assertEqual
"36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068"
╭─[ 17.47ms - stdout ]─────────────────────────────────────────────────────────╮
│ 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Crypto.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 277553 bytes to Crypto.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # FileSystem (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp ──────────────────────────────────────────────────────────────────────
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Operators │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
── fsharp ──────────────────────────────────────────────────────────────────────
open Operators
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## createTempDirectory │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
Exists = result.Exists
CreationTime = result.CreationTime
|})} {getLocals ()}"
trace Debug (fun () -> "createTempDirectory") getLocals
tempFolder
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempDirectory = createTempDirectory ()
Directory.Exists tempDirectory
|> _assertEqual true
╭─[ 53.98ms - stdout ]─────────────────────────────────────────────────────────╮
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getSourceDirectory │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let getSourceDirectory =
fun () -> __SOURCE_DIRECTORY__
|> memoize
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getSourceDirectory ()
|> System.IO.DirectoryInfo
|> fun dir -> dir.Name
|> _assertEqual "fsharp"
╭─[ 34.63ms - stdout ]─────────────────────────────────────────────────────────╮
│ fsharp │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## findParent │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline findParent name isFile rootDir =
let rec loop dir =
if dir </> name |> (if isFile then System.IO.File.Exists else
System.IO.Directory.Exists)
then dir
else
dir
|> System.IO.Directory.GetParent
|> function
| null -> failwith $"""No parent for {if isFile then "file" else
"dir"} '{name}' at '{rootDir}'"""
| parent -> parent.FullName |> loop
loop rootDir
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getSourceDirectory () |> findParent ".paket" false
|> System.IO.DirectoryInfo
|> fun dir -> dir.Name
|> _assertEqual "polyglot"
╭─[ 25.97ms - stdout ]─────────────────────────────────────────────────────────╮
│ polyglot │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getSourceDirectory () |> findParent "paket.dependencies" true
|> System.IO.DirectoryInfo
|> fun dir -> dir.Name
|> _assertEqual "polyglot"
╭─[ 23.56ms - stdout ]─────────────────────────────────────────────────────────╮
│ polyglot │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## readAllTextAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline readAllTextAsync path =
path |> System.IO.File.ReadAllTextAsync |> Async.AwaitTask
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## fileExistsContent │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline fileExistsContent path content = async {
if path |> System.IO.File.Exists |> not
then return false
else
let! existingContent = path |> readAllTextAsync
return content = existingContent
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeAllTextAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeAllTextAsync path contents =
System.IO.File.WriteAllTextAsync (path, contents) |> Async.AwaitTask
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeAllTextExists │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeAllTextExists path contents = async {
let! exists = contents |> fileExistsContent path
if not exists
then do! contents |> writeAllTextAsync path
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## waitForFileAccess │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline waitForFileAccess access path =
let fileAccess, fileShare =
access
|> Option.defaultValue (System.IO.FileAccess.ReadWrite,
System.IO.FileShare.Read)
let rec loop retry = async {
try
use _ = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
fileAccess,
fileShare
)
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () = $"path: {path |> System.IO.Path.GetFileName}
/ ex: {ex |> formatException} / {getLocals ()}"
trace Debug (fun () -> "waitForFileAccess") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test.txt"
let inline lockFile () = async {
trace Debug (fun () -> "_1") getLocals
use stream = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
stream.Seek (0L, SeekOrigin.Begin) |> ignore
trace Debug (fun () -> "_4") getLocals
stream.WriteByte 49uy
trace Debug (fun () -> "_5") getLocals
stream.Flush ()
trace Debug (fun () -> "_6") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
do! "0" |> writeAllTextAsync path
trace Debug (fun () -> "2") getLocals
let! child = lockFile () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "4") getLocals
let! retries = path |> waitForFileAccess None
trace Debug (fun () -> "5") getLocals
let! text = path |> readAllTextAsync
trace Debug (fun () -> "6") getLocals
do! child
trace Debug (fun () -> "7") getLocals
return retries, text
}
|> Async.runWithTimeout 3000
|> function
| Some (retries, text) ->
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 100)
(if Runtime.isWindows () then 150 else 200)
text |> _assertEqual "1"
true
| _ -> false
|> _assertEqual true
╭─[ 2.47s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] 1 │
│ 00:00:00 #2 [Debug] 2 │
│ 00:00:00 #3 [Debug] _1 │
│ 00:00:00 #4 [Debug] 3 │
│ 00:00:00 #5 [Debug] _2 │
│ 00:00:00 #6 [Debug] 4 │
│ 00:00:00 #7 [Debug] waitForFileAccess / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-0607-0720-0e276 │
│ f49a7e8\test.txt' because it is being used by another process. │
│ 00:00:01 #8 [Debug] waitForFileAccess / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-0607-0720-0e276 │
│ f49a7e8\test.txt' because it is being used by another process. │
│ 00:00:02 #9 [Debug] _3 │
│ 00:00:02 #10 [Debug] _4 │
│ 00:00:02 #11 [Debug] _5 │
│ 00:00:02 #12 [Debug] _6 │
│ 00:00:02 #13 [Debug] 5 │
│ 00:00:02 #14 [Debug] 6 │
│ 00:00:02 #15 [Debug] 7 │
│ 129 │
│ 129 │
│ 129 │
│ 1 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## readAllTextRetryAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline readAllTextRetryAsync fullPath =
let rec loop retry = async {
try
if retry > 0
then do!
fullPath
|> waitForFileAccess (Some (
System.IO.FileAccess.Read,
System.IO.FileShare.Read
))
|> Async.runWithTimeoutAsync 1000
|> Async.Ignore
return! fullPath |> readAllTextAsync |> Async.map Some
with ex ->
let getLocals () = $"retry: {retry} / ex: {ex |> formatException} /
{getLocals ()}"
trace Debug (fun () -> $"watchWithFilter / readContent") getLocals
if retry = 0
then return! loop (retry + 1)
else return None
}
loop 0
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## deleteDirectoryAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline deleteDirectoryAsync path =
let rec loop retry = async {
try
System.IO.Directory.Delete (path, true)
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () = $"path: {path |> System.IO.Path.GetFileName}
/ ex: {ex |> formatException} / {getLocals ()}"
trace Debug (fun () -> "deleteDirectoryAsync") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test"
let inline lockDirectory () = async {
trace Debug (fun () -> "_1") getLocals
System.IO.File.WriteAllText (path </> "test.txt", "0")
use _ = new System.IO.FileStream (
path </> "test.txt",
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
Directory.CreateDirectory path |> ignore
trace Debug (fun () -> "2") getLocals
let! child = lockDirectory () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 60
trace Debug (fun () -> "4") getLocals
let! retries = deleteDirectoryAsync path
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries
}
|> Async.runWithTimeout 3000
|> function
| Some retries ->
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 0)
(if Runtime.isWindows () then 150 else 0)
true
| _ -> false
|> _assertEqual true
╭─[ 2.40s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:02 #16 [Debug] 1 │
│ 00:00:02 #17 [Debug] 2 │
│ 00:00:02 #18 [Debug] 3 │
│ 00:00:02 #19 [Debug] _1 │
│ 00:00:02 #20 [Debug] _2 │
│ 00:00:02 #21 [Debug] 4 │
│ 00:00:02 #22 [Debug] deleteDirectoryAsync / path: test / ex: │
│ System.IO.IOException: The process cannot access the file 'test.txt' because │
│ it is being used by another process. │
│ 00:00:04 #23 [Debug] deleteDirectoryAsync / path: test / ex: │
│ System.IO.IOException: The process cannot access the file 'test.txt' because │
│ it is being used by another process. │
│ 00:00:04 #24 [Debug] _3 │
│ 00:00:04 #25 [Debug] 5 │
│ 00:00:04 #26 [Debug] 6 │
│ 125 │
│ 125 │
│ 125 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## deleteFileAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline deleteFileAsync path =
let rec loop retry = async {
try
System.IO.File.Delete path
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () = $"path: {path |> System.IO.Path.GetFileName}
/ ex: {ex |> formatException} / {getLocals ()}"
trace Warning (fun () -> "deleteFileAsync") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test.txt"
let inline lockFile () = async {
trace Debug (fun () -> "_1") getLocals
use _ = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
do! "0" |> writeAllTextAsync path
trace Debug (fun () -> "2") getLocals
let! child = lockFile () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "4") getLocals
let! retries = deleteFileAsync path
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries
}
|> Async.runWithTimeout 3000
|> function
| Some retries ->
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 0)
(if Runtime.isWindows () then 150 else 0)
true
| _ -> false
|> _assertEqual true
╭─[ 2.28s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:05 #27 [Debug] 1 │
│ 00:00:05 #28 [Debug] 2 │
│ 00:00:05 #29 [Debug] 3 │
│ 00:00:05 #30 [Debug] _1 │
│ 00:00:05 #31 [Debug] _2 │
│ 00:00:05 #32 [Debug] 4 │
│ 00:00:05 #33 [Warning] deleteFileAsync / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-1125-2586-22bab │
│ 0b1736d\test.txt' because it is being used by another process. │
│ 00:00:06 #34 [Warning] deleteFileAsync / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-1125-2586-22bab │
│ 0b1736d\test.txt' because it is being used by another process. │
│ 00:00:07 #35 [Debug] _3 │
│ 00:00:07 #36 [Debug] 5 │
│ 00:00:07 #37 [Debug] 6 │
│ 128 │
│ 128 │
│ 128 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## moveFileAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline moveFileAsync newPath oldPath =
let rec loop retry = async {
try
System.IO.File.Move (oldPath, newPath)
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () =
$"oldPath: {oldPath |> System.IO.Path.GetFileName} /
newPath: {newPath |> System.IO.Path.GetFileName} / ex: {ex |> formatException} /
{getLocals ()}"
trace Warning (fun () -> "moveFileAsync") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test.txt"
let newPath = tempFolder </> "test2.txt"
let inline lockFile () = async {
trace Debug (fun () -> "_1") getLocals
use _ = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
do! "0" |> writeAllTextAsync path
trace Debug (fun () -> "2") getLocals
let! child = lockFile () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "4") getLocals
let! retries1 = path |> moveFileAsync newPath
trace Debug (fun () -> "5") getLocals
let! retries2 = newPath |> waitForFileAccess None
trace Debug (fun () -> "6") getLocals
let! text = newPath |> readAllTextAsync
trace Debug (fun () -> "7") getLocals
do! child
trace Debug (fun () -> "8") getLocals
return retries1, retries2, text
}
|> Async.runWithTimeout 3000
|> function
| Some (retries1, retries2, text) ->
retries1
|> _isBetween
(if Runtime.isWindows () then 100 else 0)
(if Runtime.isWindows () then 150 else 0)
retries2
|> _isBetween
(if Runtime.isWindows () then 0 else 100)
(if Runtime.isWindows () then 0 else 200)
text |> _assertEqual "0"
true
| _ -> false
|> _assertEqual true
╭─[ 2.39s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:07 #38 [Debug] 1 │
│ 00:00:07 #39 [Debug] 2 │
│ 00:00:07 #40 [Debug] 3 │
│ 00:00:07 #41 [Debug] _1 │
│ 00:00:07 #42 [Debug] _2 │
│ 00:00:07 #43 [Debug] 4 │
│ 00:00:07 #44 [Warning] moveFileAsync / oldPath: test.txt / newPath: │
│ test2.txt / ex: System.IO.IOException: The process cannot access the file │
│ because it is being used by another process. │
│ 00:00:09 #45 [Warning] moveFileAsync / oldPath: test.txt / newPath: │
│ test2.txt / ex: System.IO.IOException: The process cannot access the file │
│ because it is being used by another process. │
│ 00:00:09 #46 [Debug] _3 │
│ 00:00:09 #47 [Debug] 5 │
│ 00:00:09 #48 [Debug] 6 │
│ 00:00:09 #49 [Debug] 7 │
│ 00:00:09 #50 [Debug] 8 │
│ 129 │
│ 129 │
│ 129 │
│ 0 │
│ 0 │
│ 0 │
│ 0 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## watchDirectory │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type FileSystemChangeType =
| Failure
| Changed
| Created
| Deleted
| Renamed
[[<RequireQualifiedAccess>]]
type FileSystemChange =
| Failure of exn: exn
| Changed of path: string * content: string option
| Created of path: string * content: string option
| Deleted of path: string
| Renamed of oldPath: string * (string * string option)
let inline watchDirectoryWithFilter filter shouldReadContent path =
let fullPath = path |> System.IO.Path.GetFullPath
let getLocals () = $"filter: {filter} / {getLocals ()}"
let watcher =
new System.IO.FileSystemWatcher (
Path = fullPath,
NotifyFilter = filter,
EnableRaisingEvents = true,
IncludeSubdirectories = true
)
let inline getEventPath (path : string) =
path |> String.trim |> String.replace fullPath "" |> String.trimStart
[[| '/'; '\\' |]]
let inline ticks () =
System.DateTime.UtcNow.Ticks
let changedStream =
AsyncSeq.subscribeEvent
watcher.Changed
(fun event ->
ticks (),
[[ FileSystemChange.Changed (getEventPath event.FullPath, None)
]]
)
let deletedStream =
AsyncSeq.subscribeEvent
watcher.Deleted
(fun event ->
ticks (),
[[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]
)
let createdStream =
AsyncSeq.subscribeEvent
watcher.Created
(fun event ->
let path = getEventPath event.FullPath
ticks (), [[
FileSystemChange.Created (path, None)
if Runtime.isWindows () then
FileSystemChange.Changed (path, None)
]])
let renamedStream =
AsyncSeq.subscribeEvent
watcher.Renamed
(fun event ->
ticks (), [[
FileSystemChange.Renamed (
getEventPath event.OldFullPath,
(getEventPath event.FullPath, None)
)
]]
)
let failureStream =
AsyncSeq.subscribeEvent
watcher.Error
(fun event -> ticks (), [[ FileSystemChange.Failure
(event.GetException ()) ]])
let stream =
[[
changedStream
deletedStream
createdStream
renamedStream
failureStream
]]
|> FSharp.Control.AsyncSeq.mergeAll
|> FSharp.Control.AsyncSeq.map (fun (t, events) ->
events
|> List.fold
(fun (i, events) event ->
i + 1L,
(t + i, event) :: events)
(0L, [[]])
|> snd
|> List.rev
)
|> FSharp.Control.AsyncSeq.concatSeq
|> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {
match shouldReadContent event, event with
| true, FileSystemChange.Changed (path, _) ->
do! Async.Sleep 5
let! content = fullPath </> path |> readAllTextRetryAsync
return t, FileSystemChange.Changed (path, content)
| true, FileSystemChange.Created (path, _) ->
do! Async.Sleep 5
let! content = fullPath </> path |> readAllTextRetryAsync
return t, FileSystemChange.Created (path, content)
| true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->
let! content = fullPath </> newPath |> readAllTextRetryAsync
return t, FileSystemChange.Renamed (oldPath, (newPath, content))
| _ -> return t, event
})
let disposable =
new_disposable (fun () ->
trace Debug (fun () -> "watchWithFilter / Disposing watch stream")
getLocals
watcher.EnableRaisingEvents <- false
watcher.Dispose ()
)
stream, disposable
let inline watchDirectory path =
watchDirectoryWithFilter
(System.IO.NotifyFilters.FileName
// ||| System.IO.NotifyFilters.DirectoryName
// ||| System.IO.NotifyFilters.Attributes
//// ||| System.IO.NotifyFilters.Size
||| System.IO.NotifyFilters.LastWrite
//// ||| System.IO.NotifyFilters.LastAccess
// ||| System.IO.NotifyFilters.CreationTime
// ||| System.IO.NotifyFilters.Security
)
path
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### testEventsRaw (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline testEventsRaw
(watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 *
FileSystemChange> * IDisposable)
write
=
let tempDirectory = createTempDirectory ()
let stream, disposable = watchFn (fun _ -> true) tempDirectory
let events = System.Collections.Concurrent.ConcurrentBag ()
let inline iter () =
stream
|> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
events.Add event })
let run = async {
let! _ = iter () |> Async.StartChild
do! Async.Sleep 250
return! write tempDirectory
}
try
run
|> Async.runWithTimeout 60000
|> _assertEqual (Some ())
finally
disposable.Dispose ()
deleteDirectoryAsync tempDirectory |> Async.Ignore |>
Async.RunSynchronously
let eventsLog =
events
|> Seq.toList
|> List.sortBy fst
|> List.fold
(fun (prev, acc) (ticks, event) ->
ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event)
:: acc
)
(0L, [[]])
|> snd
|> List.rev
|> List.map (fun (diff, n, event) ->
let text = $"{n} / {diff} / {event}"
if text |> String.length <= 100
then text
else text |> String.substring 0 100 |> String.replace "\n" ""
)
|> String.concat "\n"
let getLocals () = $"eventsLog: \n{eventsLog} / {getLocals ()}"
trace Debug (fun () -> "testEventsRaw") getLocals
events
|> Seq.toList
|> List.sortBy fst
|> List.map snd
|> List.fold
(fun acc event ->
match acc, event with
| FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent
:: acc,
FileSystemChange.Changed (path, Some content)
when lastPath = path && content |> String.startsWith lastContent
->
event :: acc
| _ -> event :: acc
)
[[]]
|> List.rev
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### fast (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"a{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
do! Async.Sleep 250
for i = 1 to n do
do! $"b{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
do! Async.Sleep 250
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
do! Async.Sleep 250
for i = 1 to n do
do! $"c{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")
do! Async.Sleep 250
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 250
}
let inline run () =
let events = testEventsRaw watchDirectory write
events
|> _sequenceEqual [[
FileSystemChange.Created ("file1.txt", Some "a1")
FileSystemChange.Changed ("file1.txt", Some "a1")
FileSystemChange.Created ("file2.txt", Some "a2")
FileSystemChange.Changed ("file2.txt", Some "a2")
FileSystemChange.Changed ("file1.txt", Some "b1")
FileSystemChange.Changed ("file2.txt", Some "b2")
FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))
FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))
FileSystemChange.Changed ("file_1.txt", Some "c1")
FileSystemChange.Changed ("file_2.txt", Some "c2")
FileSystemChange.Deleted "file_1.txt"
FileSystemChange.Deleted "file_2.txt"
]]
run
|> retry_fn 3
|> _assertEqual (Some ())
╭─[ 5.88s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:17 #51 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ 00:00:17 #52 [Debug] testEventsRaw / eventsLog: │
│ 0 / 638473173823236100 / Created ("file1.txt", Some "a1") │
│ 1 / 638473173823236101 / Changed ("file1.txt", Some "a1") │
│ 62602 / 638473173823298703 / Changed ("file1.txt", Some "a1") │
│ 2426 / 638473173823301129 / Created ("file2.txt", Some "a2") │
│ 1 / 638473173823301130 / Changed ("file2.txt", Some "a2") │
│ 165 / 638473173823301295 / Changed ("file2.txt", Some "a2") │
│ 2622879 / 638473173825924174 / Changed ("file1.txt", Some "b1") │
│ 1973 / 638473173825926147 / Changed ("file1.txt", Some "b1") │
│ 7002 / 638473173825933149 / Changed ("file2.txt", Some "b2") │
│ 1271 / 638473173825934420 / Changed ("file2.txt", Some "b2") │
│ 2672520 / 638473173828606940 / Renamed ("file1.txt", ("file_1.txt", Some │
│ "b1")) │
│ 4650 / 638473173828611590 / Renamed ("file2.txt", ("file_2.txt", Some "b2")) │
│ 2585087 / 638473173831196677 / Changed ("file_1.txt", Some "c1") │
│ 1542 / 638473173831198219 / Changed ("file_1.txt", Some "c1") │
│ 8198 / 638473173831206417 / Changed ("file_2.txt", Some "c2") │
│ 1793 / 638473173831208210 / Changed ("file_2.txt", Some "c2") │
│ 2611809 / 638473173833820019 / Deleted "file_1.txt" │
│ 4232 / 638473173833824251 / Deleted "file_2.txt" │
│ FSharpList<FileSystemChange> │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: a1 │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: a1 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: a2 │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: a2 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: b1 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: b2 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - oldPath: file1.txt │
│ Item2: - file_1.txt │
│ - FSharpOption<String> │
│ Value: b1 │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - oldPath: file2.txt │
│ Item2: - file_2.txt │
│ - FSharpOption<String> │
│ Value: b2 │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - path: file_1.txt │
│ content: FSharpOption<String> │
│ Value: c1 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_2.txt │
│ content: FSharpOption<String> │
│ Value: c2 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_1.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ - path: file_2.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### slow (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
let contents =
[[ 1 .. n ]]
|> List.map (string >> String.replicate 1_000_000)
for i = 1 to n do
do! $"{contents.[[i - 1]]}a" |> writeAllTextAsync (path </>
$"file{i}.txt")
do! Async.Sleep 1500
for i = 1 to n do
do! $"{contents.[[i - 1]]}b" |> writeAllTextAsync (path </>
$"file{i}.txt")
do! Async.Sleep 1500
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
do! Async.Sleep 1500
for i = 1 to n do
do! $"{contents.[[i - 1]]}c" |> writeAllTextAsync (path </>
$"file_{i}.txt")
do! Async.Sleep 1500
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 1500
}
let inline run () =
let events =
testEventsRaw watchDirectory write
|> List.map (function
| FileSystemChange.Changed (path, Some content) ->
FileSystemChange.Changed (path, content |> Seq.distinct |>
Seq.map string |> String.concat "" |> Some)
| FileSystemChange.Created (path, Some content) ->
FileSystemChange.Created (path, content |> Seq.distinct |>
Seq.map string |> String.concat "" |> Some)
| FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->
FileSystemChange.Renamed (
oldPath,
(newPath, content |> Seq.distinct |> Seq.map string |>
String.concat "" |> Some)
)
| event -> event
)
events
|> _sequenceEqual [[
FileSystemChange.Created ("file1.txt", Some "1a")
FileSystemChange.Changed ("file1.txt", Some "1a")
FileSystemChange.Created ("file2.txt", Some "2a")
FileSystemChange.Changed ("file2.txt", Some "2a")
FileSystemChange.Changed ("file1.txt", Some "1b")
FileSystemChange.Changed ("file2.txt", Some "2b")
FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))
FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))
FileSystemChange.Changed ("file_1.txt", Some "1c")
FileSystemChange.Changed ("file_2.txt", Some "2c")
FileSystemChange.Deleted "file_1.txt"
FileSystemChange.Deleted "file_2.txt"
]]
run
|> retry_fn 5
|> _assertEqual (Some ())
╭─[ 13.36s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:24 #53 [Debug] watchWithFilter / readContent / retry: 0 / ex: │
│ System.AggregateException: One or more errors occurred. (The process cannot │
│ access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-2877-7742-742fa │
│ eec84f9\file1.txt' because it is being used by another process.) │
│ 00:00:27 #54 [Debug] watchWithFilter / readContent / retry: 0 / ex: │
│ System.AggregateException: One or more errors occurred. (The process cannot │
│ access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-2877-7742-742fa │
│ eec84f9\file_1.txt' because it is being used by another process.) │
│ 00:00:27 #55 [Debug] waitForFileAccess / path: file_1.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0956-2877-7742-742fa │
│ eec84f9\file_1.txt' because it is being used by another process. │
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:30 #56 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ 00:00:30 #57 [Debug] testEventsRaw / eventsLog: │
│ 0 / 638473173890428047 / Created ("file1.txt", Some │
│ "1111111111111111111111111111111111111 │
│ 1 / 638473173890428048 / Changed ("file1.txt", Some │
│ "1111111111111111111111111111111111111 │
│ 71410 / 638473173890499458 / Changed ("file1.txt", Some │
│ "111111111111111111111111111111111 │
│ 16485 / 638473173890515943 / Created ("file2.txt", Some │
│ "222222222222222222222222222222222 │
│ 1 / 638473173890515944 / Changed ("file2.txt", Some │
│ "2222222222222222222222222222222222222 │
│ 71946 / 638473173890587890 / Changed ("file2.txt", Some │
│ "222222222222222222222222222222222 │
│ 15164572 / 638473173905752462 / Changed ("file1.txt", Some │
│ "111111111111111111111111111111 │
│ 255475 / 638473173906007937 / Changed ("file1.txt", Some │
│ "11111111111111111111111111111111 │
│ 96950 / 638473173906104887 / Changed ("file2.txt", Some │
│ "222222222222222222222222222222222 │
│ 108687 / 638473173906213574 / Changed ("file2.txt", Some │
│ "22222222222222222222222222222222 │
│ 15432297 / 638473173921645871 / Renamed ("file1.txt", ("file_1.txt", │
│ Some "1111111111 │
│ 9020 / 638473173921654891 / Renamed ("file2.txt", ("file_2.txt", Some │
│ "22222222222222 │
│ 15162314 / 638473173936817205 / Changed ("file_1.txt", Some │
│ "11111111111111111111111111111 │
│ 128232 / 638473173936945437 / Changed ("file_1.txt", Some │
│ "1111111111111111111111111111111 │
│ 75963 / 638473173937021400 / Changed ("file_2.txt", Some │
│ "22222222222222222222222222222222 │
│ 89418 / 638473173937110818 / Changed ("file_2.txt", Some │
│ "22222222222222222222222222222222 │
│ 15148933 / 638473173952259751 / Deleted "file_1.txt" │
│ 3842 / 638473173952263593 / Deleted "file_2.txt" │
│ FSharpList<FileSystemChange> │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: 1a │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: 1a │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: 2a │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: 2a │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: 1b │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: 2b │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - oldPath: file1.txt │
│ Item2: - file_1.txt │
│ - FSharpOption<String> │
│ Value: 1b │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - oldPath: file2.txt │
│ Item2: - file_2.txt │
│ - FSharpOption<String> │
│ Value: 2b │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - path: file_1.txt │
│ content: FSharpOption<String> │
│ Value: 1c │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_2.txt │
│ content: FSharpOption<String> │
│ Value: 2c │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_1.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ - path: file_2.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### testEventsSorted (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline sortEvent event =
match event with
| FileSystemChange.Failure _ -> 0
| FileSystemChange.Created _ -> 1
| FileSystemChange.Changed _ -> 2
| FileSystemChange.Renamed (_oldPath, _) -> 3
| FileSystemChange.Deleted _ -> 4
let inline formatEvents events =
events
|> Seq.toList
|> List.sortBy (snd >> sortEvent)
|> List.choose (fun (ticks, event) ->
match event with
| FileSystemChange.Failure _ ->
None
| FileSystemChange.Changed (path, _) ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Changed)
| FileSystemChange.Created (path, _) ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Created)
| FileSystemChange.Deleted path ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Deleted)
| FileSystemChange.Renamed (_oldPath, (path, _)) ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Renamed)
)
|> List.sortBy (fun (_, path, _) -> path)
|> List.distinctBy (fun (_, path, event) -> path, event)
let inline testEventsSorted
(watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> *
IDisposable)
write
=
let path = createTempDirectory ()
let stream, disposable = watchFn path
let events = System.Collections.Concurrent.ConcurrentBag ()
let inline iter () =
stream
|> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
events.Add event })
let run = async {
let! _ = iter () |> Async.StartChild
do! Async.Sleep 250
return! write path
}
try
run
|> Async.runWithTimeout 5000
|> _assertEqual (Some ())
finally
disposable.Dispose ()
deleteDirectoryAsync path |> Async.Ignore |> Async.RunSynchronously
let events = formatEvents events
let eventMap =
events
|> List.map (fun (ticks, path, event) -> path, (event, ticks))
|> List.groupBy fst
|> List.map (fun (path, events) ->
let event, _ticks =
events
|> List.map snd
|> List.sortByDescending snd
|> List.head
path, event
)
|> Map.ofList
let eventList =
events
|> List.map (fun (_ticks, path, event) -> path, event)
eventMap, eventList
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### create and delete (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 3
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Deleted
"file3.txt", nameof FileSystemChangeType.Created
"file3.txt", nameof FileSystemChangeType.Changed
"file3.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Deleted
"file3.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retry_fn 3
|> _assertEqual (Some ())
╭─[ 4.39s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:35 #58 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file1.txt, Deleted ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file2.txt, Deleted ) │
│ ( file3.txt, Created ) │
│ ( file3.txt, Changed ) │
│ ( file3.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Deleted │
│ - Key: file2.txt │
│ Value: Deleted │
│ - Key: file3.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### change (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! "" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retry_fn 3
|> _assertEqual (Some ())
╭─[ 4.77s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:40 #59 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file1.txt, Deleted ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file2.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Deleted │
│ - Key: file2.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### rename (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Renamed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Renamed
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retry_fn 3
|> _assertEqual (Some ())
╭─[ 5.68s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:46 #60 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file_1.txt, Renamed ) │
│ ( file_1.txt, Deleted ) │
│ ( file_2.txt, Renamed ) │
│ ( file_2.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Changed │
│ - Key: file2.txt │
│ Value: Changed │
│ - Key: file_1.txt │
│ Value: Deleted │
│ - Key: file_2.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### full (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! "" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Renamed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Changed
"file_2.txt", nameof FileSystemChangeType.Renamed
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retry_fn 3
|> _assertEqual (Some ())
╭─[ 6.77s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:53 #61 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file_1.txt, Changed ) │
│ ( file_1.txt, Renamed ) │
│ ( file_1.txt, Deleted ) │
│ ( file_2.txt, Changed ) │
│ ( file_2.txt, Renamed ) │
│ ( file_2.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Changed │
│ - Key: file2.txt │
│ Value: Changed │
│ - Key: file_1.txt │
│ Value: Deleted │
│ - Key: file_2.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook FileSystem.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 466796 bytes to FileSystem.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Networking (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/Runtime.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## testPortOpen │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |> formatException}")
getLocals
return false
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
testPortOpen 65536
|> Async.runWithTimeout 120
|> _assertEqual (Some false)
╭─[ 205.44ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Verbose] testPortOpen / ex: System.ArgumentOutOfRangeException: │
│ Specified argument was out of the range of valid values. (Parameter 'port') │
│ FSharpOption<Boolean> │
│ Value: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
| Some result -> result
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
testPortOpenTimeout 120 65535
|> Async.RunSynchronously
|> _assertEqual false
╭─[ 255.77ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 120 │
│ False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## waitForPortAccess │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline waitForPortAccess timeout status port =
let rec loop retry = async {
let! isPortOpen =
match timeout with
| None -> testPortOpen port
| Some timeout -> testPortOpenTimeout timeout port
if isPortOpen = status
then return retry
else
if retry % 100 = 0 then
let getLocals () = $"port: {port} / retry: {retry} / {getLocals
()}"
trace Verbose (fun () -> "waitForPortAccess") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPort () = async {
trace Debug (fun () -> "_1") getLocals
do! Async.Sleep 5000
use listener = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
trace Debug (fun () -> "_2") getLocals
listener.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_4") getLocals
listener.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPort () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "3") getLocals
let! retries1 = waitForPortAccess None true port
trace Debug (fun () -> "4") getLocals
let! retries2 = waitForPortAccess None false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries1, retries2
}
|> Async.runWithTimeout 20000
|> function
| Some (retries1, retries2) ->
retries1
|> _isBetween
(if Runtime.isWindows () then 2 else 2)
(if Runtime.isWindows () then 5 else 1500)
retries2
|> _isBetween
(if Runtime.isWindows () then 80 else 80)
(if Runtime.isWindows () then 150 else 600)
true
| _ -> false
|> _assertEqual true
╭─[ 9.62s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:01 #3 [Debug] 1 │
│ 00:00:01 #4 [Debug] _1 │
│ 00:00:01 #5 [Debug] 2 │
│ 00:00:01 #6 [Debug] 3 │
│ 00:00:03 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:03 #8 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:05 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:06 #10 [Debug] _2 │
│ 00:00:06 #11 [Debug] _3 │
│ 00:00:06 #12 [Debug] 4 │
│ 00:00:06 #13 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:07 #14 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │
│ 00:00:08 #15 [Debug] _4 │
│ 00:00:08 #16 [Debug] _5 │
│ 00:00:10 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:10 #18 [Debug] 5 │
│ 00:00:10 #19 [Debug] 6 │
│ 2 │
│ 2 │
│ 2 │
│ 120 │
│ 120 │
│ 120 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPort () = async {
trace Debug (fun () -> "_1") getLocals
do! Async.Sleep 500
use listener = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
trace Debug (fun () -> "_2") getLocals
listener.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 200
trace Debug (fun () -> "_4") getLocals
listener.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPort () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "3") getLocals
let! retries1 = waitForPortAccess (Some 60) true port
trace Debug (fun () -> "4") getLocals
let! retries2 = waitForPortAccess (Some 60) false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries1, retries2
}
|> Async.runWithTimeout 2000
|> function
| Some (retries1, retries2) ->
retries1
|> _isBetween
(if Runtime.isWindows () then 4 else 2)
(if Runtime.isWindows () then 15 else 150)
retries2
|> _isBetween
(if Runtime.isWindows () then 5 else 0)
(if Runtime.isWindows () then 20 else 60)
true
| _ -> false
|> _assertEqual true
╭─[ 1.50s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:10 #20 [Debug] 1 │
│ 00:00:10 #21 [Debug] 2 │
│ 00:00:10 #22 [Debug] _1 │
│ 00:00:10 #23 [Debug] 3 │
│ 00:00:11 #24 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #25 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:11 #26 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #27 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #28 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #29 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #30 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #31 [Debug] _2 │
│ 00:00:11 #32 [Debug] _3 │
│ 00:00:11 #33 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #34 [Debug] 4 │
│ 00:00:11 #35 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:11 #36 [Debug] _4 │
│ 00:00:11 #37 [Debug] _5 │
│ 00:00:11 #38 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #39 [Debug] 5 │
│ 00:00:11 #40 [Debug] 6 │
│ 7 │
│ 7 │
│ 7 │
│ 6 │
│ 6 │
│ 6 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getAvailablePort │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getAvailablePort timeout initialPort =
let rec loop port = async {
let! isPortOpen =
match timeout with
| None -> testPortOpen port
| Some timeout -> testPortOpenTimeout timeout port
if not isPortOpen
then return port
else return! loop (port + 1)
}
loop initialPort
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPorts () = async {
trace Debug (fun () -> "_1") getLocals
use listener1 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
use listener2 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port + 1)
trace Debug (fun () -> "_2") getLocals
listener1.Start ()
listener2.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 4000
trace Debug (fun () -> "_4") getLocals
listener1.Stop ()
listener2.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPorts () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 240
trace Debug (fun () -> "3") getLocals
let! availablePort = getAvailablePort None port
trace Debug (fun () -> "4") getLocals
let! retries = waitForPortAccess None false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return availablePort, retries
}
|> Async.runWithTimeout 15000
|> function
| Some (availablePort, retries) ->
availablePort |> _assertEqual (port + 2)
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 100)
(if Runtime.isWindows () then 150 else 1200)
true
| _ -> false
|> _assertEqual true
╭─[ 6.56s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:12 #41 [Debug] 1 │
│ 00:00:12 #42 [Debug] 2 │
│ 00:00:12 #43 [Debug] _1 │
│ 00:00:12 #44 [Debug] _2 │
│ 00:00:12 #45 [Debug] _3 │
│ 00:00:12 #46 [Debug] 3 │
│ 00:00:14 #47 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:14 #48 [Debug] 4 │
│ 00:00:14 #49 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:16 #50 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │
│ 00:00:16 #51 [Debug] _4 │
│ 00:00:16 #52 [Debug] _5 │
│ 00:00:18 #53 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:18 #54 [Debug] 5 │
│ 00:00:18 #55 [Debug] 6 │
│ 5557 │
│ 110 │
│ 110 │
│ 110 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPorts () = async {
trace Debug (fun () -> "_1") getLocals
use listener1 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
use listener2 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port + 1)
trace Debug (fun () -> "_2") getLocals
listener1.Start ()
listener2.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 400
trace Debug (fun () -> "_4") getLocals
listener1.Stop ()
listener2.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPorts () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 240
trace Debug (fun () -> "3") getLocals
let! availablePort = getAvailablePort (Some 60) port
trace Debug (fun () -> "4") getLocals
let! retries = waitForPortAccess (Some 60) false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return availablePort, retries
}
|> Async.runWithTimeout 1500
|> function
| Some (availablePort, retries) ->
availablePort |> _assertEqual (port + 2)
retries
|> _isBetween
(if Runtime.isWindows () then 2 else 1)
(if Runtime.isWindows () then 10 else 120)
true
| _ -> false
|> _assertEqual true
╭─[ 1.16s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:19 #56 [Debug] 1 │
│ 00:00:19 #57 [Debug] 2 │
│ 00:00:19 #58 [Debug] _1 │
│ 00:00:19 #59 [Debug] _2 │
│ 00:00:19 #60 [Debug] _3 │
│ 00:00:19 #61 [Debug] 3 │
│ 00:00:19 #62 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:19 #63 [Debug] 4 │
│ 00:00:19 #64 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:19 #65 [Debug] _4 │
│ 00:00:19 #66 [Debug] _5 │
│ 00:00:19 #67 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:19 #68 [Debug] 5 │
│ 00:00:19 #69 [Debug] 6 │
│ 5557 │
│ 4 │
│ 4 │
│ 4 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Networking.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 325358 bytes to Networking.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Runtime (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
open FileSystem.Operators
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## isWindows │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
isWindows ()
╭─[ 80.20ms - return value ]───────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>True</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getExecutableSuffix │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getExecutableSuffix ()
╭─[ 17.35ms - return value ]───────────────────────────────────────────────────╮
│ .exe │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## splitCommand │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (path, args) tail (Path
true)
| ('"' | '\'') :: tail, Path true -> loop (path, args) tail (Path false)
| ' ' :: tail, Path true -> loop ($"{path} ", args) tail (Path true)
| ' ' :: tail, (Start | Path _) -> loop (path, args) tail Arguments
| char :: tail, Arguments -> loop (path, $"{args}{char}") tail Arguments
| char :: tail, _ -> loop ($"{path}{char}", args) tail step
| _, _ -> path |> String.replace @"\" "/", args
loop ("", "") (command |> Seq.toList) Start
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
splitCommand ""
|> _assertEqual ("", "")
splitCommand "/a/b/c"
|> _assertEqual ("/a/b/c", "")
splitCommand "cat file.txt"
|> _assertEqual ("cat", "file.txt")
splitCommand """..\..\file.exe file1.txt file2.txt"""
|> _assertEqual ("../../file.exe", "file1.txt file2.txt")
splitCommand @"c:\dir\file.exe ""file1.txt file2.txt"""
|> _assertEqual ("c:/dir/file.exe", @"""file1.txt file2.txt""")
splitCommand @"""..\..\dir name\file.exe"" ""file 1.txt"" file2.txt"
|> _assertEqual ("../../dir name/file.exe", @"""file 1.txt"" file2.txt")
splitCommand @"""..\..\file 1.exe"" -c \\""echo 1\\"""
|> _assertEqual ("../../file 1.exe", @"-c \\""echo 1\\""")
splitCommand @"..\..\file 1.exe -c \\""echo 1\\"""
|> _assertEqual ("../../file", @"1.exe -c \\""echo 1\\""")
╭─[ 88.12ms - stdout ]─────────────────────────────────────────────────────────╮
│ ( , ) │
│ ( /a/b/c, ) │
│ ( cat, file.txt ) │
│ ( ../../file.exe, file1.txt file2.txt ) │
│ ( c:/dir/file.exe, "file1.txt file2.txt" ) │
│ ( ../../dir name/file.exe, "file 1.txt" file2.txt ) │
│ ( ../../file 1.exe, -c \\"echo 1\\" ) │
│ ( ../../file, 1.exe -c \\"echo 1\\" ) │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## executeAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type ExecutionLine =
{
ProcessId : int
Line : string
Error : bool
}
type ExecutionOptions =
{
Command : string
WorkingDirectory : string option
CancellationToken : System.Threading.CancellationToken option
OnLine : (ExecutionLine -> Async<unit>) option
}
let inline executeWithOptionsAsync (options : ExecutionOptions) = async {
let fileName, arguments = options.Command |> splitCommand
let workingDirectory = options.WorkingDirectory |> Option.defaultValue ""
trace Debug (fun () -> $"executeAsync / options: {options}") getLocals
let startInfo = System.Diagnostics.ProcessStartInfo (
Arguments = arguments,
CreateNoWindow = true,
FileName = fileName,
RedirectStandardError = true,
RedirectStandardOutput = true,
StandardOutputEncoding = System.Text.Encoding.UTF8,
UseShellExecute = false,
WorkingDirectory = workingDirectory
)
use proc = new System.Diagnostics.Process (StartInfo = startInfo)
let output = System.Collections.Concurrent.ConcurrentStack<string> ()
let inline event error (e: System.Diagnostics.DataReceivedEventArgs) = async
{
if e.Data <> null then
match options.OnLine with
| Some onLine ->
do!
onLine
{
ProcessId = proc.Id
Line = e.Data
Error = error
}
| None -> ()
trace
Verbose
(fun () -> $"> {e.Data}")
Common.getLocals
output.Push
$"{
if error then '[['.ToString() else System.String.Empty
}{
e.Data
}{
if error then ']]'.ToString() else System.String.Empty
}"
}
proc.OutputDataReceived.Add (event false >> Async.StartImmediate)
proc.ErrorDataReceived.Add (event true >> Async.StartImmediate)
if proc.Start () |> not
then failwith $"executeAsync / proc.Start () error"
proc.BeginErrorReadLine ()
proc.BeginOutputReadLine ()
let! ct =
options.CancellationToken
|> Option.defaultValue System.Threading.CancellationToken.None
|> Async.mergeCancellationTokenWithDefaultAsync
use reg = ct.Register (fun _ ->
if not proc.HasExited then proc.Kill ()
)
let! exitCode = async {
try
do! proc.WaitForExitAsync ct |> Async.AwaitTask
return proc.ExitCode
with :? System.Threading.Tasks.TaskCanceledException as ex ->
trace Warning (fun () -> $"executeAsync / WaitForExitAsync / ex: {ex
|> formatException}") getLocals
ex |> formatException |> output.Push
return System.Int32.MinValue
}
let output = output |> Seq.rev |> String.concat "\n"
trace Debug (fun () ->
$"executeAsync / exitCode: {exitCode} / output.Length: {output.Length}"
) getLocals
return exitCode, output
}
let inline executeAsync command =
executeWithOptionsAsync
{
Command = command
CancellationToken = None
OnLine = None
WorkingDirectory = None
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = FileSystem.createTempDirectory ()
let fileName = "test.txt"
let path = tempFolder </> fileName
async {
let! exitCode, result = executeAsync @$"pwsh -c ""Get-Content {path}"""
exitCode |> _assertEqual 1
result |> _stringContains "not exist"
do! "0" |> FileSystem.writeAllTextAsync path
return!
executeWithOptionsAsync
{
Command = @$"pwsh -c ""Get-Content {fileName}"""
CancellationToken = None
OnLine = None
WorkingDirectory = Some tempFolder
}
}
|> Async.runWithTimeout 10000
|> function
| Some (exitCode, output) ->
exitCode |> _assertEqual 0
output |> _assertEqual "0"
true
| _ -> false
|> _assertEqual true
╭─[ 2.62s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] executeAsync / options: { Command = │
│ "pwsh -c "Get-Content │
│ C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0957-5058-5875-571e54 │
│ e5fad0\test.txt"" │
│ WorkingDirectory = None │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:00 #2 [Verbose] > Get-Content: Cannot find path │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0957-5058-5875-571e5 │
│ 4e5fad0\test.txt' because it does not exist. │
│ 00:00:01 #3 [Debug] executeAsync / exitCode: 1 / output.Length: 170 │
│ 1 │
│ [Get-Content: Cannot find path │
│ 'C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0957-5058-5875-571e5 │
│ 4e5fad0\test.txt' because it does not exist.] │
│ 00:00:01 #4 [Debug] executeAsync / options: { Command = "pwsh -c │
│ "Get-Content test.txt"" │
│ WorkingDirectory = │
│ Some │
│ │
│ "C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0957-5058-5875-571e5 │
│ 4e5fad0" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:01 #5 [Verbose] > 0 │
│ 00:00:01 #6 [Debug] executeAsync / exitCode: 0 / output.Length: 1 │
│ 0 │
│ 0 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = FileSystem.createTempDirectory ()
let path = tempFolder </> "test.txt"
let command = @$"pwsh -c ""Get-Content {path}"""
async {
do! "0" |> FileSystem.writeAllTextAsync path
let cts = new System.Threading.CancellationTokenSource ()
trace Debug (fun () -> "1") getLocals
let! result =
executeWithOptionsAsync
{
Command = command
CancellationToken = Some cts.Token
OnLine = None
WorkingDirectory = None
}
|> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 100
trace Debug (fun () -> "3") getLocals
cts.Cancel ()
trace Debug (fun () -> "4") getLocals
let! exitCode, output = result
trace Debug (fun () -> "5") getLocals
return exitCode, output
}
|> Async.runWithTimeout 10000
|> function
| Some (exitCode, output) ->
exitCode |> _assertEqual -2147483648
output |> _assertEqual "System.Threading.Tasks.TaskCanceledException: A
task was canceled."
true
| _ -> false
|> _assertEqual true
╭─[ 759.36ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:02 #7 [Debug] 1 │
│ 00:00:02 #9 [Debug] 2 │
│ 00:00:02 #8 [Debug] executeAsync / options: { Command = │
│ "pwsh -c "Get-Content │
│ C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0957-5309-0935-0ffd15 │
│ 13c630\test.txt"" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = None } │
│ 00:00:02 #10 [Debug] 3 │
│ 00:00:02 #11 [Debug] 4 │
│ 00:00:02 #12 [Warning] executeAsync / WaitForExitAsync / ex: │
│ System.Threading.Tasks.TaskCanceledException: A task was canceled. │
│ 00:00:02 #13 [Debug] executeAsync / exitCode: -2147483648 / output.Length: │
│ 66 │
│ 00:00:02 #14 [Debug] 5 │
│ -2147483648 │
│ System.Threading.Tasks.TaskCanceledException: A task was canceled. │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## splitArgs │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline splitArgs commandLine =
commandLine
|> System.CommandLine.Parsing.CommandLineStringSplitter.Instance.Split
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""a b "c d" e"""
|> splitArgs
|> Seq.toArray
|> _assertEqual [[| "a"; "b"; "c d"; "e" |]]
╭─[ 31.70ms - stdout ]─────────────────────────────────────────────────────────╮
│ [ a, b, c d, e ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseArgs │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =
let assemblyName =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let errorHandler : Argu.IExiter =
if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |>
List.contains assemblyName
then Argu.ExceptionExiter ()
else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->
Some System.ConsoleColor.Red)
let parser =
Argu.ArgumentParser.Create<'T> (
programName = $"{assemblyName}{getExecutableSuffix ()}",
errorHandler = errorHandler
)
parser.ParseCommandLine args
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
Argu.ArguAttributes.Last>]]
Paths of paths : string list
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Paths _ -> nameof Paths
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 135.34ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] <paths>... │
│ │
│ PATHS: │
│ │
│ <paths>... Paths │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fun () -> parseArgs<Arguments> [[||]] |> ignore
|> _throwsC (fun ex _ ->
formatException ex
|> _stringContains "Argu.ArguParseException: ERROR: missing parameter
'<paths>...'."
)
╭─[ 68.72ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSI_0033+it@3-246 │
│ Argu.ArguParseException: ERROR: missing parameter '<paths>...'. │
│ USAGE: dotnet-repl.exe [--help] <paths>... │
│ │
│ PATHS: │
│ │
│ <paths>... Paths │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =
args
|> parseArgs<'T>
|> fun results -> results.GetAllResults ()
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
Argu.ArguAttributes.Last>]]
Paths of paths : string list
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Paths _ -> nameof Paths
parseAllArgs<Arguments> [[| "a b"; "c" |]]
|> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]
╭─[ 83.84ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpList<Arguments> │
│ - paths: [ a b, c ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =
args
|> parseAllArgs<'T>
|> List.groupBy CommonFSharp.getUnionCaseName<'T>
|> Map.ofList
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
parseArgsMap<Arguments> [[| "a b"; "c" |]]
|> _assertEqual (
[[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]
|> Map.ofList
)
╭─[ 118.10ms - stdout ]────────────────────────────────────────────────────────╮
│ FSharpMap<String,FSharpList<Arguments>> │
│ - Key: Paths │
│ Value: FSharpList<Arguments> │
│ - paths: [ a b, c ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Runtime.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 340116 bytes to Runtime.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Toml (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/tomlyn/0.17.0/lib/net7.0/Tomlyn.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (/./) (table: Tomlyn.Model.TomlTable) (key: string) :
Tomlyn.Model.TomlTable =
table.[[key]] :?> Tomlyn.Model.TomlTable
let inline (/../) (table: Tomlyn.Model.TomlTable) (key: string) : 'T seq =
table.[[key]] :?> Tomlyn.Model.TomlArray |> Seq.cast<'T>
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tomlContent =
"""
[[extension]]
paths = [["/a", "/b"]]
"""
let toml = Tomlyn.Toml.Parse tomlContent
let tomlModel = Tomlyn.Toml.ToModel toml
let paths : string seq = tomlModel /./ "extension" /../ "paths"
paths
|> Seq.toList
|> _assertEqual [[ "/a"; "/b" ]]
╭─[ 119.08ms - stdout ]────────────────────────────────────────────────────────╮
│ [ /a, /b ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Toml.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 278115 bytes to Toml.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: AsyncSeq.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Crypto.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Networking.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: FileSystem.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Common.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Async.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: CommonFSharp.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Threading.dib
00:00:00 #7 [Debug] parseDibCode / output: Fs / file: Common.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Crypto.dib
00:00:00 #8 [Debug] parseDibCode / output: Fs / file: Threading.dib
00:00:00 #4 [Debug] parseDibCode / output: Fs / file: FileSystem.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Networking.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Async.dib
00:00:00 #5 [Debug] parseDibCode / output: Fs / file: AsyncSeq.dib
00:00:00 #7 [Debug] parseDibCode / output: Fs / file: CommonFSharp.dib
00:00:00 #9 [Debug] writeDibCode / output: Fs / path: Runtime.dib
00:00:00 #9 [Debug] writeDibCode / output: Fs / path: Toml.dib
00:00:00 #10 [Debug] parseDibCode / output: Fs / file: Runtime.dib
00:00:00 #11 [Debug] parseDibCode / output: Fs / file: Toml.dib
In [ ]:
{ . "$ScriptDir/../lib/rust/fable/build.ps1" } | Invoke-Block
── pwsh ──────────────────────────────────────────────────────────────────────── . ../../../scripts/nbs_header.ps1 . ../../../scripts/core.ps1 ── pwsh ──────────────────────────────────────────────────────────────────────── dotnet fable --optimize --lang rs --extension .rs ╭─[ 955.25ms - stdout ]────────────────────────────────────────────────────────╮ │ Fable 4.14.0: F# to Rust compiler (status: alpha) │ │ │ │ Thanks to the contributor! @kerams │ │ Stand with Ukraine! https://standwithukraine.com.ua/ │ │ │ │ Parsing fable-library-rust.fsproj... │ │ Retrieving project options from cache, in case of issues run `dotnet fable │ │ clean` or try `--noCache` option. │ │ Project and references (1 source files) parsed in 183ms │ │ │ │ Skipped compilation because all generated files are up-to-date! │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook build.dib.ipynb to html C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 272478 bytes to build.dib.html
In [ ]:
{ . "$ScriptDir/../apps/spiral/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Supervisor (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
#r
@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
rp.Json.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Threading.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Threading =
open Common
/// ## newDisposableToken
let inline newDisposableToken (mergeToken:
System.Threading.CancellationToken option) =
let cts = new System.Threading.CancellationTokenSource ()
let cts =
match mergeToken with
| None -> cts
| Some mergeToken ->
System.Threading.CancellationTokenSource.CreateLinkedTokenSource
[[| cts.Token; mergeToken |]]
let disposable = new_disposable cts.Cancel
cts.Token, disposable
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
formatException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FileSystem.Operators
open Microsoft.AspNetCore.SignalR.Client
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## sendJson │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sendJson (port : int) (json : string) = async {
let! portOpen = Networking.testPortOpen port
if portOpen then
try
let connection =
HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()
do! connection.StartAsync () |> Async.AwaitTask
let! result = connection.InvokeAsync<string>("ClientToServerMsg",
json) |> Async.AwaitTask
do! connection.StopAsync () |> Async.AwaitTask
trace Debug (fun () -> $"sendJson / port: {port} / json: {json} /
result.Length: {result |> Option.ofObj |> Option.map String.length}") getLocals
return Some result
with ex ->
trace Critical (fun () -> $"sendJson / port: {port} / json: {json} /
ex: {ex |> formatException}") getLocals
return None
else
trace Debug (fun () -> "sendJson / error: port not open") getLocals
return None
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## sendObj │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sendObj port obj =
obj
|> System.Text.Json.JsonSerializer.Serialize
|> sendJson port
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## awaitCompiler │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type VSCPos = {| line : int; character : int |}
type VSCRange = VSCPos * VSCPos
type RString = VSCRange * string
type TracedError = {| trace : string list; message : string |}
type ClientErrorsRes =
| FatalError of string
| TracedError of TracedError
| PackageErrors of {| uri : string; errors : RString list |}
| TokenizerErrors of {| uri : string; errors : RString list |}
| ParserErrors of {| uri : string; errors : RString list |}
| TypeErrors of {| uri : string; errors : RString list |}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline awaitCompiler port cancellationToken = async {
let! ct =
cancellationToken
|> Option.defaultValue System.Threading.CancellationToken.None
|> Async.mergeCancellationTokenWithDefaultAsync
let cts = new System.Threading.CancellationTokenSource ()
let compiler = MailboxProcessor.Start (fun inbox -> async {
let! availablePort = Networking.getAvailablePort (Some 60) port
if availablePort <> port then
inbox.Post port
else
let repositoryRoot = FileSystem.getSourceDirectory () |>
FileSystem.findParent ".paket" false
let compilerPath =
repositoryRoot </> "deps/The-Spiral-Language/The Spiral Language
2/artifacts/bin/The Spiral Language 2/release"
|> System.IO.Path.GetFullPath
let dllPath = compilerPath </> "Spiral.dll"
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = $@"dotnet ""{dllPath}"" --port {availablePort}
--default-int i32 --default-float f64"
CancellationToken = Some ct
WorkingDirectory = None
OnLine = Some <| fun { Line = line } -> async {
if line |> String.contains $"Server bound to:
http://localhost:{availablePort}" then
do! Networking.waitForPortAccess (Some 500) true
availablePort |> Async.Ignore
let rec loop retry = async {
let getLocals () = $"port: {availablePort} /
retry: {retry} / {getLocals ()}"
try
let pingObj = {| Ping = true |}
let! pingResult = pingObj |> sendObj
availablePort
trace Verbose (fun () -> $"awaitCompiler
/ Ping / result: {pingResult}") getLocals
with ex ->
trace Verbose (fun () -> $"awaitCompiler
/ Ping / ex: {ex |> formatException}") getLocals
do! Async.Sleep 10
do! loop (retry + 1)
}
do! loop 0
inbox.Post availablePort
}
}
trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} /
result: {result}") getLocals
cts.Cancel ()
}, ct)
let! serverPort = compiler.Receive ()
let connection =
HubConnectionBuilder().WithUrl($"http://127.0.0.1:{serverPort}").Build ()
do! connection.StartAsync () |> Async.AwaitTask
let event = Event<_> ()
let disposable = connection.On<string> ("ServerToClientMsg", event.Trigger)
let stream =
FSharp.Control.AsyncSeq.unfoldAsync
(fun () -> async {
let! msg = event.Publish |> Async.AwaitEvent
return Some (msg |>
FSharp.Json.Json.deserialize<ClientErrorsRes>, ())
})
()
let disposable =
new_disposable (fun () ->
disposable.Dispose ()
connection.StopAsync () |> Async.AwaitTask |> Async.StartImmediate
)
return
serverPort,
stream,
cts.Token,
disposable
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getFileUri │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getFileUri (path : string) =
let path =
if Runtime.isWindows () |> not
then path
else $"{path.[[0]] |> System.Char.ToLower}{path.[[1..]]}" |>
String.replace "\\" "/"
$"file:///{path |> String.trimStart [[| '/' |]]}"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getFilePathFromUri uri =
match System.Uri.TryCreate (uri, System.UriKind.Absolute) with
| true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath
| _ -> failwith "invalid uri"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getCompilerPort () =
13805
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## serialize_obj │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let serializeObj obj =
obj
|> FSharp.Json.Json.serialize
|> String.replace "\\\\" "\\"
|> String.replace "\\r\\n" "\n"
|> String.replace "\\n" "\n"
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildFile timeout port cancellationToken path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let fileDir = fullPath |> System.IO.Path.GetDirectoryName
let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension
let! code = fullPath |> FileSystem.readAllTextAsync
let eventFilter = function
| FileSystem.FileSystemChange.Changed (path, _) when path =
$"{fileName}.fsx" -> true
| _ -> false
let stream, disposable = fileDir |> FileSystem.watchDirectory eventFilter
use _ = disposable
let token, disposable = Threading.newDisposableToken cancellationToken
use _ = disposable
let! serverPort, errors, ct, disposable = awaitCompiler port (Some token)
use _ = disposable
let fsxContentSeq =
stream
|> FSharp.Control.AsyncSeq.choose (function
| _, (FileSystem.FileSystemChange.Changed (path, Some content) as
event)
when event |> eventFilter
->
Some content
| _ -> None
)
|> FSharp.Control.AsyncSeq.map (fun content ->
Some (content |> String.replace "\r\n" "\n"), None
)
let inline printErrorData (data : {| uri : string; errors : RString list |})
=
let fileName = data.uri |> System.IO.Path.GetFileName
let errors =
data.errors
|> List.map snd
|> String.concat "\n"
$"{fileName}:\n{errors}"
let errorsSeq =
errors
|> FSharp.Control.AsyncSeq.choose (fun error ->
match error with
| FatalError message ->
Some (message, error)
| TracedError data ->
Some (data.message, error)
| PackageErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| TokenizerErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| ParserErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| TypeErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| _ -> None
)
|> FSharp.Control.AsyncSeq.map (fun (message, error) ->
None, Some (message, error)
)
let timerSeq =
1000
|> FSharp.Control.AsyncSeq.intervalMs
|> FSharp.Control.AsyncSeq.map (fun _ -> None, None)
let outputSeq =
[[ fsxContentSeq; errorsSeq; timerSeq ]]
|> FSharp.Control.AsyncSeq.mergeAll
let! outputChild =
((None, [[]], 0), outputSeq)
||> FSharp.Control.AsyncSeq.scan (
fun (fsxContentResult, errors, typeErrorCount) (fsxContent, error)
->
match fsxContent, error with
| Some fsxContent, None -> Some fsxContent, errors,
typeErrorCount
| None, Some (_, FatalError "File main has a type error
somewhere in its path.") ->
fsxContentResult, errors, typeErrorCount + 1
| None, Some error -> fsxContentResult, error :: errors,
typeErrorCount
| None, None when typeErrorCount >= 1 ->
fsxContentResult, errors, typeErrorCount + 1
| _ -> fsxContentResult, errors, typeErrorCount
)
|> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (fsxContent, errors,
typeErrorCount) ->
trace Debug (fun () -> $"buildFile / takeWhileInclusive /
fsxContent: {fsxContent |> Option.defaultValue System.String.Empty |>
String.ellipsis 750} / errors: {errors |> serializeObj} / typeErrorCount:
{typeErrorCount}") getLocals
match fsxContent, errors with
| None, [[]] when typeErrorCount > 2 -> false
| None, [[]] -> true
| _ -> false
)
|> FSharp.Control.AsyncSeq.tryLast
|> Async.withCancellationToken ct
|> Async.catch
|> Async.runWithTimeoutAsync timeout
|> Async.StartChild
let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText =
code |} |}
let! _fileOpenResult = fileOpenObj |> sendObj serverPort
do! Async.Sleep 60
let buildFileObj = {| BuildFile = {| uri = fullPath |> getFileUri; backend =
"Fsharp" |} |}
let! _buildFileResult = buildFileObj |> sendObj serverPort
return!
outputChild
|> Async.map (function
| Some (Ok (Some (message, errors, _))) ->
message, errors |> List.distinct |> List.rev
| Some (Error ex) ->
trace Critical (fun () -> $"buildFile / error: {ex |>
serializeObj}") getLocals
None, [[]]
| _ -> None, [[]]
)
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## persistCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline persistCode code = async {
let tempDir = FileSystem.createTempDirectory ()
let mainPath = tempDir </> "main.spi"
do! code |> FileSystem.writeAllTextAsync mainPath
let repositoryRoot = FileSystem.getSourceDirectory () |>
FileSystem.findParent ".paket" false
let spiprojPath = tempDir </> "package.spiproj"
let spiprojCode =
$"""packageDir: {repositoryRoot </> "lib"}
packages:
|core-
spiral-
modules:
main
"""
do! spiprojCode |> FileSystem.writeAllTextAsync spiprojPath
let disposable = new_disposable (fun () ->
()
// tempDir |> FileSystem.deleteDirectoryAsync |> Async.Ignore |>
Async.RunSynchronously
)
return mainPath, disposable
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildCode timeout cancellationToken code = async {
let! mainPath, disposable = persistCode code
use _ = disposable
let port = getCompilerPort ()
return! mainPath |> buildFile timeout port cancellationToken
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let buildCode timeout cancellationToken code = buildCode timeout
cancellationToken code
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl app () =
console.write_line "text"
1i32
inl main () =
app
|> dyn
|> ignore
"""
|> buildCode 15000 None
|> Async.runWithTimeout 15000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
Some """let rec closure0 () () : int32 =
let v0 : string = "text"
System.Console.WriteLine v0
1
let v0 : (unit -> int32) = closure0()
()
""",
[[]]
)
)
╭─[ 1.33s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:00 #2 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:00 #3 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:00 #4 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl app () =\n console.write_line │
│ \u0022text\u0022\n 1i32\n\ninl main () =\n app\n |\u003E dyn\n │
│ |\u003E │
│ ignore\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240 │
│ 329-0958-4708-0836-04704819d955/main.spi"}} / result.Length: │
│ 00:00:00 #5 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0958-4708-0836-04704819d955/main.spi"}} / │
│ result.Length: │
│ 00:00:00 #6 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec │
│ closure0 () () : int32 = │
│ let v0 : string = "text" │
│ System.Console.WriteLine v0 │
│ 1 │
│ let v0 : (unit -> int32) = closure0() │
│ () │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:00 #7 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - FSharpOption<String> │
│ Value: let rec closure0 () () : int32 = │
│ let v0 : string = "text" │
│ System.Console.WriteLine v0 │
│ 1 │
│ let v0 : (unit -> int32) = closure0() │
│ () │
│ │
│ - [ ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> _assertEqual None
╭─[ 10.29s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:01 #8 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:01 #9 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:01 #10 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:01 #11 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"","uri":"file:///c:/Users/i574n/AppData/Local/Temp/d │
│ otnet-repl/20240329-0958-4837-3746-3e6bca4dd4db/main.spi"}} / result.Length: │
│ 00:00:01 #12 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0958-4837-3746-3e6bca4dd4db/main.spi"}} / │
│ result.Length: │
│ 00:00:02 #13 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:03 #14 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:04 #15 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:05 #16 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:06 #17 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:07 #18 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:08 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:09 #20 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:10 #21 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:11 #22 [Debug] runWithTimeoutAsync / timeout: 10000 │
│ 00:00:11 #23 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"inl app () =
0i32
inl a = 1
inl main () =
app
|> dyn
|> ignore
"
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "main.spi:
Global inl/let statements should all return functions known at parse time." ]]
)
)
╭─[ 411.66ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:11 #26 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #27 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:11 #28 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:11 #29 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl app () =\n 0i32\n\ninl a = 1\n\ninl main () │
│ =\n app\n |\u003E dyn\n |\u003E │
│ ignore\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240 │
│ 329-0958-5865-6575-6329268eeb6c/main.spi"}} / result.Length: │
│ 00:00:11 #30 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "main.spi: │
│ Global inl/let statements should all return functions known at parse time.", │
│ { │
│ "ParserErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 0, │
│ "line": 3 │
│ }, │
│ { │
│ "character": 9, │
│ "line": 3 │
│ } │
│ ], │
│ "Global inl/let statements should all return functions known at │
│ parse time." │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0958-5865-65 │
│ 75-6329268eeb6c\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:11 #31 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0958-5865-6575-6329268eeb6c/main.spi"}} / │
│ result.Length: │
│ 00:00:11 #32 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Global inl/let statements should all return functions known at parse time. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () =
1i32 / 0i32
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "An attempt to divide by zero has been detected at compile time." ]]
)
)
╭─[ 502.75ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:11 #33 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #34 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:11 #35 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:11 #36 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () =\n 1i32 / │
│ 0i32\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/2024032 │
│ 9-0958-5910-1015-1e3062292a0b/main.spi"}} / result.Length: │
│ 00:00:12 #37 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0958-5910-1015-1e3062292a0b/main.spi"}} / │
│ result.Length: │
│ 00:00:12 #38 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "An attempt to divide by zero has been detected at compile time.", │
│ { │
│ "TracedError": { │
│ "message": "An attempt to divide by zero has been detected at │
│ compile time.", │
│ "trace": [ │
│ "Error trace on line: 1, column: 10 in module: │
│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0958-5910-1015-1e3062 │
│ 292a0b\main.spi. │
│ inl main () = │
│ ^ │
│ ", │
│ "Error trace on line: 2, column: 5 in module: │
│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0958-5910-1015-1e3062 │
│ 292a0b\main.spi. │
│ 1i32 / 0i32 │
│ ^ │
│ " │
│ ] │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:12 #39 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ An attempt to divide by zero has been detected at compile time. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () =
1 + ""
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[
"main.spi:
Constraint satisfaction error.
Got: string
Fails to satisfy: number"
]]
)
)
╭─[ 428.75ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:12 #41 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:12 #42 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:12 #43 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:12 #44 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () =\n 1 \u002B │
│ \u0022\u0022\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl │
│ /20240329-0958-5964-6414-6cd9185714ec/main.spi"}} / result.Length: │
│ 00:00:12 #45 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "main.spi: │
│ Constraint satisfaction error. │
│ Got: string │
│ Fails to satisfy: number", │
│ { │
│ "TypeErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 8, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 10, │
│ "line": 1 │
│ } │
│ ], │
│ "Constraint satisfaction error. │
│ Got: string │
│ Fails to satisfy: number" │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0958-5964-64 │
│ 14-6cd9185714ec\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:12 #46 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0958-5964-6414-6cd9185714ec/main.spi"}} / │
│ result.Length: │
│ 00:00:12 #47 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Constraint satisfaction error. │
│ Got: string │
│ Fails to satisfy: number ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () =
x + y
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[
"main.spi:
Unbound variable: x.
Unbound variable: y."
]]
)
)
╭─[ 487.28ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:12 #48 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:12 #49 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:12 #50 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:13 #51 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () =\n x \u002B │
│ y\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329-0 │
│ 959-0013-1360-1c0a1b562769/main.spi"}} / result.Length: │
│ 00:00:13 #52 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "main.spi: │
│ Unbound variable: x. │
│ Unbound variable: y.", │
│ { │
│ "TypeErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 4, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 5, │
│ "line": 1 │
│ } │
│ ], │
│ "Unbound variable: x." │
│ ], │
│ [ │
│ [ │
│ { │
│ "character": 8, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 9, │
│ "line": 1 │
│ } │
│ ], │
│ "Unbound variable: y." │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0959-0013-13 │
│ 60-1c0a1b562769\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:13 #53 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0013-1360-1c0a1b562769/main.spi"}} / │
│ result.Length: │
│ 00:00:13 #54 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Unbound variable: x. │
│ Unbound variable: y. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""union a =
| B
| c
inl main () =
()
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "main.spi:
Expected: uppercase variable" ]]
)
)
╭─[ 550.39ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:13 #56 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:13 #57 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:13 #58 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:13 #59 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"union a =\n | B\n | c\n\ninl main () =\n │
│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329- │
│ 0959-0075-7597-77a12145aa75/main.spi"}} / result.Length: │
│ 00:00:13 #60 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "main.spi: │
│ Expected: uppercase variable", │
│ { │
│ "ParserErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 6, │
│ "line": 2 │
│ }, │
│ { │
│ "character": 7, │
│ "line": 2 │
│ } │
│ ], │
│ "Expected: uppercase variable" │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0959-0075-75 │
│ 97-77a12145aa75\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:13 #61 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0075-7597-77a12145aa75/main.spi"}} / │
│ result.Length: │
│ 00:00:13 #62 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Expected: uppercase variable ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
/// abc
inl main () =
()
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "main.spi:
Expected: whitespace" ]]
)
)
╭─[ 712.65ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:14 #63 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:14 #64 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:14 #65 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:14 #66 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\n/// abc\ninl main () =\n │
│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329- │
│ 0959-0143-4373-474eeded6750/main.spi"}} / result.Length: │
│ 00:00:14 #67 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "main.spi: │
│ Expected: whitespace", │
│ { │
│ "TokenizerErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 2, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 3, │
│ "line": 1 │
│ } │
│ ], │
│ "Expected: whitespace" │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0959-0143-43 │
│ 73-474eeded6750\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:14 #68 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0143-4373-474eeded6750/main.spi"}} / │
│ result.Length: │
│ 00:00:14 #69 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Expected: whitespace ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl main () =
real
inl real_unbox forall a. (obj : a) : a =
typecase obj with
| _ => obj
real_unbox ()
()
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "Cannot apply a forall with a term." ]]
)
)
╭─[ 579.64ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:14 #71 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:14 #72 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:14 #73 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:14 #74 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl main () =\n real\n inl real_unbox │
│ forall a. (obj : a) : a =\n typecase obj with\n | _ │
│ =\u003E obj\n real_unbox ()\n │
│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329- │
│ 0959-0202-0224-0f57bcf83b0f/main.spi"}} / result.Length: │
│ 00:00:14 #75 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0202-0224-0f57bcf83b0f/main.spi"}} / │
│ result.Length: │
│ 00:00:15 #76 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "Cannot apply a forall with a term.", │
│ { │
│ "TracedError": { │
│ "message": "Cannot apply a forall with a term.", │
│ "trace": [ │
│ "Error trace on line: 2, column: 10 in module: │
│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0959-0202-0224-0f57bc │
│ f83b0f\main.spi. │
│ inl main () = │
│ ^ │
│ ", │
│ "Error trace on line: 4, column: 9 in module: │
│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0959-0202-0224-0f57bc │
│ f83b0f\main.spi. │
│ inl real_unbox forall a. (obj : a) : a = │
│ ^ │
│ ", │
│ "Error trace on line: 7, column: 9 in module: │
│ c:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-0959-0202-0224-0f57bc │
│ f83b0f\main.spi. │
│ real_unbox () │
│ ^ │
│ " │
│ ] │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:15 #77 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ Cannot apply a forall with a term. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl main () =
real
inl real_unbox forall a. (obj : a) : a =
typecase obj with
| _ => obj
real_unbox `i32 1
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "The main function should not have a forall." ]]
)
)
╭─[ 522.26ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:15 #78 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:15 #79 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:15 #80 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:15 #81 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl main () =\n real\n inl real_unbox │
│ forall a. (obj : a) : a =\n typecase obj with\n | _ │
│ =\u003E obj\n real_unbox \u0060i32 │
│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329-0 │
│ 959-0257-5731-5ccd7c048700/main.spi"}} / result.Length: │
│ 00:00:15 #83 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0257-5731-5ccd7c048700/main.spi"}} / │
│ result.Length: │
│ 00:00:15 #84 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "The main function should not have a forall.", │
│ { │
│ "TracedError": { │
│ "message": "The main function should not have a forall.", │
│ "trace": [] │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:15 #85 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ The main function should not have a forall. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl init_series start end inc =
inl total : f64 = conv ((end - start) / inc) + 1
listm.init total (conv >> (*) inc >> (+) start) : list f64
type integration = (f64 -> f64) -> f64 -> f64 -> f64
inl integral dt : integration =
fun f a b =>
init_series (a + dt / 2) (b - dt / 2) dt
|> listm.map (f >> (*) dt)
|> listm.fold (+) 0
inl main () =
integral 0.1 (fun x => x ** 2) 0 1
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
Some "0.3325000000000001\n",
[[]]
)
)
╭─[ 504.93ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:15 #86 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:15 #87 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:15 #88 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:15 #89 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n inl total : │
│ f64 = conv ((end - start) / inc) \u002B 1\n listm.init total (conv │
│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype │
│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl │
│ integral dt : integration =\n fun f a b =\u003E\n init_series (a │
│ \u002B dt / 2) (b - dt / 2) dt\n |\u003E listm.map (f \u003E\u003E │
│ (*) dt)\n |\u003E listm.fold (\u002B) 0\n\ninl main () =\n │
│ integral 0.1 (fun x =\u003E x ** 2) 0 │
│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329-0 │
│ 959-0308-0830-0599613bf18a/main.spi"}} / result.Length: │
│ 00:00:16 #90 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0308-0830-0599613bf18a/main.spi"}} / │
│ result.Length: │
│ 00:00:16 #91 [Debug] buildFile / takeWhileInclusive / fsxContent: │
│ 0.3325000000000001 │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:16 #92 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - FSharpOption<String> │
│ Value: 0.3325000000000001 │
│ │
│ - [ ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl init_series start end inc =
inl total : f64 = conv ((end - start) / inc) + 1
listm.init total (conv >> (*) inc >> (+) start) : list f64
type integration = (f64 -> f64) -> f64 -> f64 -> f64
inl integral dt : integration =
fun f a b =>
init_series (a + dt / 2) (b - dt / 2) dt
|> listm.map (f >> (*) dt)
|> listm.fold (+) 0
inl main () =
integral 0.01 (fun x => x ** 2) 0 1
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
Some "0.33332500000000004\n",
[[]]
)
)
// |> _assertEqual None
// |> fun x -> printfn $"{x.ToDisplayString ()}"
╭─[ 601.53ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:16 #93 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:16 #95 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:16 #96 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:16 #97 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n inl total : │
│ f64 = conv ((end - start) / inc) \u002B 1\n listm.init total (conv │
│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype │
│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl │
│ integral dt : integration =\n fun f a b =\u003E\n init_series (a │
│ \u002B dt / 2) (b - dt / 2) dt\n |\u003E listm.map (f \u003E\u003E │
│ (*) dt)\n |\u003E listm.fold (\u002B) 0\n\ninl main () =\n │
│ integral 0.01 (fun x =\u003E x ** 2) 0 │
│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329-0 │
│ 959-0357-5798-5bc69ee1e422/main.spi"}} / result.Length: │
│ 00:00:16 #98 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/dotnet-repl/20240329-0959-0357-5798-5bc69ee1e422/main.spi"}} / │
│ result.Length: │
│ 00:00:16 #99 [Debug] buildFile / takeWhileInclusive / fsxContent: │
│ 0.33332500000000004 │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:16 #100 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - FSharpOption<String> │
│ Value: 0.33332500000000004 │
│ │
│ - [ ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getFileTokenRange │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getFileTokenRange port cancellationToken path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let! code = fullPath |> FileSystem.readAllTextAsync
let lines = code |> String.split [[| '\n' |]]
let token, disposable = Threading.newDisposableToken cancellationToken
use _ = disposable
let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)
use _ = disposable
let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText =
code |} |}
let! _fileOpenResult = fileOpenObj |> sendObj serverPort
let fileTokenRangeObj =
{|
FileTokenRange =
{|
uri = fullPath |> getFileUri
range =
[[|
{| line = 0; character = 0 |}
{| line = lines.Length - 1; character =
lines.[[lines.Length - 1]].Length |}
|]]
|}
|}
let! fileTokenRangeResult =
fileTokenRangeObj
|> sendObj serverPort
|> Async.withCancellationToken ct
return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int
array>
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getCodeTokenRange │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getCodeTokenRange cancellationToken code = async {
let! mainPath, disposable = persistCode code
use _ = disposable
let port = getCompilerPort ()
return! mainPath |> getFileTokenRange port cancellationToken
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () = ()"""
|> getCodeTokenRange None
|> Async.runWithTimeout 10000
|> Option.flatten
|> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1;
8; 0; 0; 2; 1; 4; 0; 0;
2; 1; 8; 0; 0; 1; 1; 8; 0 |]])
╭─[ 3.87s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:26 #110 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:26 #111 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () = │
│ ()","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329-09 │
│ 59-1398-9836-9abc5e7aa639/main.spi"}} / result.Length: │
│ 00:00:27 #112 [Debug] sendJson / port: 13805 / json: │
│ {"FileTokenRange":{"range":[ │
│ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/Users/ │
│ i574n/AppData/Local/Temp/dotnet-repl/20240329-0959-1398-9836-9abc5e7aa639/ma │
│ in.spi"}} / result.Length: Some(213) │
│ FSharpOption<Int32[]> │
│ Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0, │
│ 0, 2, 1, 4, 0, 0, 2, 1, 8, 0, 0, 1, 1, 8, 0 ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () = 1i32"""
|> getCodeTokenRange None
|> Async.runWithTimeout 10000
|> Option.flatten
|> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1;
8; 0; 0; 2; 1; 4; 0; 0;
2; 1; 3; 0; 0; 1; 3; 12; 0 |]])
╭─[ 4.06s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:31 #116 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:31 #118 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () = │
│ 1i32","uri":"file:///c:/Users/i574n/AppData/Local/Temp/dotnet-repl/20240329- │
│ 0959-1814-1498-15ee956a1aab/main.spi"}} / result.Length: │
│ 00:00:31 #119 [Debug] sendJson / port: 13805 / json: │
│ {"FileTokenRange":{"range":[ │
│ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/Users/ │
│ i574n/AppData/Local/Temp/dotnet-repl/20240329-0959-1814-1498-15ee956a1aab/ma │
│ in.spi"}} / result.Length: Some(214) │
│ FSharpOption<Int32[]> │
│ Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0, │
│ 0, 2, 1, 4, 0, 0, 2, 1, 3, 0, 0, 1, 3, 12, 0 ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| Build_File of string * string
| File_Token_Range of string * string
| Execute_Command of string
| Timeout of int
| Port of int
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Build_File _ -> nameof Build_File
| File_Token_Range _ -> nameof File_Token_Range
| Execute_Command _ -> nameof Execute_Command
| Timeout _ -> nameof Timeout
| Port _ -> nameof Port
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 134.86ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] [--build-file <string> <string>] │
│ [--file-token-range <string> <string>] │
│ [--execute-command <string>] [--timeout <int>] [--port │
│ <int>] │
│ │
│ OPTIONS: │
│ │
│ --build-file <string> <string> │
│ Build_File │
│ --file-token-range <string> <string> │
│ File_Token_Range │
│ --execute-command <string> │
│ Execute_Command │
│ --timeout <int> Timeout │
│ --port <int> Port │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let buildFileActions =
argsMap
|> Map.tryFind (nameof Arguments.Build_File)
|> Option.defaultValue [[]]
|> List.choose (function
| Arguments.Build_File (inputPath, outputPath) -> Some (inputPath,
outputPath)
| _ -> None
)
let fileTokenRangeActions =
argsMap
|> Map.tryFind (nameof Arguments.File_Token_Range)
|> Option.defaultValue [[]]
|> List.choose (function
| Arguments.File_Token_Range (inputPath, outputPath) -> Some
(inputPath, outputPath)
| _ -> None
)
let executeCommandActions =
argsMap
|> Map.tryFind (nameof Arguments.Execute_Command)
|> Option.defaultValue [[]]
|> List.choose (function
| Arguments.Execute_Command command -> Some command
| _ -> None
)
let timeout =
match argsMap |> Map.tryFind (nameof Arguments.Timeout) with
| Some [[ Arguments.Timeout timeout ]] -> timeout
| _ -> 60000 * 60
let port =
match argsMap |> Map.tryFind (nameof Arguments.Port) with
| Some [[ Arguments.Port port ]] -> Some port
| _ -> None
async {
let! buildFileResult =
buildFileActions
|> List.map (fun (inputPath, outputPath) -> async {
let port = port |> Option.defaultWith getCompilerPort
let! outputCode, errors = inputPath |> buildFile timeout port
None
errors
|> List.map snd
|> List.iter (fun error ->
trace Critical (fun () -> $"main / error: {error |>
serializeObj}") getLocals
)
match outputCode with
| Some outputCode ->
do! outputCode |> FileSystem.writeAllTextAsync outputPath
return 0
| None ->
return 1
})
|> Async.Sequential
let! fileTokenRangeResult =
fileTokenRangeActions
|> List.map (fun (inputPath, outputPath) -> async {
let port = port |> Option.defaultWith getCompilerPort
let! tokenRange = inputPath |> getFileTokenRange port None
match tokenRange with
| Some tokenRange ->
do! tokenRange |> FSharp.Json.Json.serialize |>
FileSystem.writeAllTextAsync outputPath
return 0
| None ->
return 1
})
|> Async.Sequential
let! executeCommandResult =
executeCommandActions
|> List.map (fun command -> async {
let port = port |> Option.defaultWith getCompilerPort
let localToken, disposable = Threading.newDisposableToken None
use _ = disposable
let! serverPort, _errors, compilerToken, disposable =
awaitCompiler port (Some localToken)
use _ = disposable
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = command
CancellationToken = Some compilerToken
WorkingDirectory = None
OnLine = None
}
trace Debug (fun () -> $"main / executeCommand / exitCode:
{exitCode}") getLocals
return exitCode
})
|> Async.Sequential
return
[[| buildFileResult; fileTokenRangeResult; executeCommandResult |]]
|> Array.collect id
|> Array.sum
}
|> Async.runWithTimeout timeout
|> Option.defaultValue 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 69.05ms - return value ]───────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Supervisor.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 431142 bytes to Supervisor.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Supervisor.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Supervisor.dib
00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/date_time.fsx; lib/spiral/file_system.fsx; ... ] / name: Supervisor / code.Length: 19290
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\Supervisor"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:02 #6 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj (in 493 ms).
00:00:02 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj]
00:00:16 #8 [Verbose] > Supervisor -> C:\home\git\polyglot\target\polyglot\builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll
00:00:18 #9 [Verbose] > Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:18 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 715
00:00:18 #11 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\Supervisor"
CancellationToken = None
OnLine = None }
00:00:19 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:19 #13 [Verbose] > Determining projects to restore...
00:00:20 #14 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj (in 430 ms).
00:00:20 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj]
00:00:34 #16 [Verbose] > Supervisor -> C:\home\git\polyglot\target\polyglot\builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll
00:00:43 #17 [Verbose] > Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:43 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 713
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Eval (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
#r
@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
rp.Json.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Threading.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
#!import ../../apps/builder/Builder.fs
#!import ../../apps/spiral/Supervisor.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Threading =
open Common
/// ## newDisposableToken
let inline newDisposableToken (mergeToken:
System.Threading.CancellationToken option) =
let cts = new System.Threading.CancellationTokenSource ()
let cts =
match mergeToken with
| None -> cts
| Some mergeToken ->
System.Threading.CancellationTokenSource.CreateLinkedTokenSource
[[| cts.Token; mergeToken |]]
let disposable = new_disposable cts.Cancel
cts.Token, disposable
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
formatException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Builder =
open Common
open FileSystem.Operators
/// ## buildProject
let inline buildProject runtime outputDir path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let fileDir = fullPath |> System.IO.Path.GetDirectoryName
let extension = fullPath |> System.IO.Path.GetExtension
let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"
trace Debug (fun () -> "buildProject") getLocals
match extension with
| ".fsproj" -> ()
| _ -> failwith "Invalid project file"
let runtimes =
runtime
|> Option.map List.singleton
|> Option.defaultValue [[ "linux-x64"; "wi...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Supervisor =
open Common
open FileSystem.Operators
open Microsoft.AspNetCore.SignalR.Client
/// ## sendJson
let inline sendJson (port : int) (json : string) = async {
let! portOpen = Networking.testPortOpen port
if portOpen then
try
let connection =
HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()
do! connection.StartAsync () |> Async.AwaitTask
let! result =
connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask
do! connection.StopAsync () |> Async.AwaitTask
trace Debug (fun () -> $"sendJson / port: {port} / json: {json}
/...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FileSystem.Operators
── fsharp ──────────────────────────────────────────────────────────────────────
open System
open System.Collections.Generic
open System.IO
open System.Text
open System.Threading
// open FSharp.Compiler
// open FSharp.Compiler.Interactive.Shell
// open FSharp.Compiler.Diagnostics
// open FSharp.Compiler.EditorServices
── fsharp ──────────────────────────────────────────────────────────────────────
let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =
let allCodeLineLength =
allCode |> String.split [[| '\n' |]] |> Array.length
errors
|> List.map (fun (_, error) ->
match error with
| Supervisor.FatalError message ->
(
severity, message, 0, ("", (0, 0), (0, 0))
)
|> List.singleton
| Supervisor.TracedError data ->
data.trace
|> List.truncate 5
|> List.append [[ data.message ]]
|> List.map (fun message ->
(
severity, message, 0, ("", (0, 0), (0, 0))
)
)
| Supervisor.PackageErrors data
| Supervisor.TokenizerErrors data
| Supervisor.ParserErrors data
| Supervisor.TypeErrors data ->
data.errors
|> List.filter (fun ((rangeStart, _), _) ->
trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line:
{rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength:
{allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}")
getLocals
rangeStart.line > allCodeLineLength
)
|> List.map (fun ((rangeStart, rangeEnd), message) ->
(
severity,
message,
0,
(
(data.uri |> System.IO.Path.GetFileName),
(
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeStart.line - allCodeLineLength - 2
| _ -> rangeStart.line - allCodeLineLength),
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeStart.character - 4
| _ -> rangeStart.character)
),
(
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeEnd.line - allCodeLineLength - 2
| _ -> rangeEnd.line - allCodeLineLength),
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeEnd.character - 4
| _ -> rangeEnd.character)
)
)
)
)
)
|> List.collect id
|> List.toArray
── fsharp ──────────────────────────────────────────────────────────────────────
let spiralExDir = Path.GetTempPath () </> "!spiral-ex"
let maxTermCountPath = spiralExDir </> "max_term_count.txt"
let mutable allCode = ""
── fsharp ──────────────────────────────────────────────────────────────────────
let log2 (text : string) =
if traceLevel = TraceLevel.Verbose then
try
let tmpPath = Path.GetTempPath ()
let logDir = Path.Combine (tmpPath, "_log_spiral_kernel")
Directory.CreateDirectory logDir |> ignore
let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH-mm-ss-fff"
let logFile = Path.Combine (logDir,
$"log_{dateTimeStr}_{Random().Next()}.txt")
let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff"
let fileName = "SpiralScriptHelpers"
File.AppendAllText (logFile, $"{dateTimeStr} {fileName}
{text}{Environment.NewLine}") |> ignore
with ex ->
trace Debug (fun () -> $"V.log / ex: {ex |> formatException}")
getLocals
── fsharp ──────────────────────────────────────────────────────────────────────
let log (text : string) =
if traceLevel = TraceLevel.Verbose then
try
let tmpPath = Path.GetTempPath ()
let logDir = Path.Combine (tmpPath, "_log_spiral_kernel")
Directory.CreateDirectory logDir |> ignore
let logFile = Path.Combine (logDir, "log.txt")
let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff"
let fileName = "SpiralScriptHelpers"
File.AppendAllText (logFile, $"{dateTimeStr} {fileName}
{text}{Environment.NewLine}") |> ignore
with ex ->
trace Debug (fun () -> $"SpiralScriptHelpers.log / ex: {ex |>
formatException}") getLocals
log2 text
── fsharp ──────────────────────────────────────────────────────────────────────
let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name
let inline startTokenRangeWatcher () =
if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then
let tmpSpiralDir = Path.GetTempPath () </> "!dotnet-interactive-spiral"
let tmpCodeDir = tmpSpiralDir </> "code"
let tmpTokensDir = tmpSpiralDir </> "tokens"
[[ tmpSpiralDir; tmpCodeDir; tmpTokensDir ]]
|> List.iter (fun dir -> if Directory.Exists dir |> not then
Directory.CreateDirectory dir |> ignore)
let stream, disposable = FileSystem.watchDirectory (fun _ -> false)
tmpCodeDir
try
let port = Supervisor.getCompilerPort () + 2
let existingFilesChild =
tmpCodeDir
|> System.IO.Directory.GetFiles
|> Array.map (fun codePath -> async {
try
let tokensPath = tmpTokensDir </> (codePath |>
System.IO.Path.GetFileName)
if File.Exists tokensPath |> not then
let! tokens = codePath |>
Supervisor.getFileTokenRange port None
match tokens with
| Some tokens ->
do!
tokens
|> FSharp.Json.Json.serialize
|> FileSystem.writeAllTextAsync tokensPath
| None ->
log $"Eval.watchDirectory / GetFiles / tokens:
None / {getLocals ()}"
with ex ->
log $"Eval.watchDirectory / GetFiles / ex: {ex |>
formatException} / {getLocals ()}"
})
|> Async.Sequential
|> Async.Ignore
let streamAsyncChild =
stream
|> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)
-> async {
try
let getLocals () = $"ticks: {ticks} / event: {event} /
{getLocals ()}"
match event with
| FileSystem.FileSystemChange.Changed (path, _) ->
let codePath = tmpCodeDir </> path
do!
codePath
|> FileSystem.waitForFileAccess (Some (
System.IO.FileAccess.Read,
System.IO.FileShare.Read
))
|> Async.runWithTimeoutAsync 1000
|> Async.Ignore
let! tokens = codePath |>
Supervisor.getFileTokenRange port None
match tokens with
| Some tokens ->
do!
tokens
|> FSharp.Json.Json.serialize
|> FileSystem.writeAllTextAsync
(tmpTokensDir </> path)
| None ->
log $"Eval.watchDirectory / iterAsyncParallel /
tokens: None / {getLocals ()}"
| _ -> ()
with ex ->
log $"Eval.watchDirectory / iterAsyncParallel / ex: {ex
|> formatException} / {getLocals ()}"
})
async {
do! Async.Sleep 3000
existingFilesChild |> Async.StartImmediate
streamAsyncChild |> Async.Start
}
|> Async.Start
with ex ->
log $"Eval / ex: {ex |> formatException}"
disposable
else new_disposable (fun () -> ())
── fsharp ──────────────────────────────────────────────────────────────────────
let inline eval
(fsi_eval:
string
-> System.Threading.CancellationToken
-> Choice<'a,Exception> * (TraceLevel * string * int * (string * (int *
int) * (int * int))) array)
(cancellationToken: Option<System.Threading.CancellationToken>)
(code: string)
=
log $"Eval / code: %A{code}"
let rawCellCode =
if code |> String.trim <> "// // trace"
then code |> String.replace "\r\n" "\n"
else
if traceLevel = Info
then traceLevel <- Verbose
else traceLevel <- Info
traceDump <- traceLevel = Verbose
"inl main () = ()"
let lines = rawCellCode |> String.split [[| '\n' |]]
if lines |> Array.exists (fun line -> line |> String.startsWith "#r " &&
line |> String.endsWith "\"") then
let cancellationToken = defaultArg cancellationToken
System.Threading.CancellationToken.None
let ch, errors = fsi_eval code cancellationToken
match ch with
| Choice1Of2 v -> Ok(v), errors
| Choice2Of2 ex -> Error(ex), errors
else
try
let lastBlock =
lines
|> Array.tryFindBack (fun line ->
line |> String.length > 0
&& line.[[0]] <> ' '
)
let hasMain =
lastBlock
|> Option.exists (fun line ->
line |> String.startsWith "inl main "
|| line |> String.startsWith "let main "
)
let cellCode, lastTopLevelIndex =
if hasMain
then rawCellCode, None
else
let lastTopLevelIndex, _ =
(lines |> Array.indexed, (None, false))
||> Array.foldBack (fun (i, line) (lastTopLevelIndex,
finished) ->
trace Debug (fun () -> $"i: {i} / line: '{line}' /
lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}") getLocals
match line with
| _ when finished -> lastTopLevelIndex, true
| "" -> lastTopLevelIndex, false
| line when
line |> String.startsWith " "
|| line |> String.startsWith "// " ->
lastTopLevelIndex, false
| line when
line |> String.startsWith "open "
|| line |> String.startsWith "prototype "
|| line |> String.startsWith "instance "
|| line |> String.startsWith "type "
|| line |> String.startsWith "union "
|| line |> String.startsWith "nominal " ->
lastTopLevelIndex, true
| line when
line |> String.startsWith "inl "
|| line |> String.startsWith "let " ->
let m =
System.Text.RegularExpressions.Regex.Match (
line,
@"^(inl|let) +([[~\(\w]][[\w\d']]*(?:|
*[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]]"
)
trace Debug (fun () -> $"m: '{m}' /
m.Groups.Count: {m.Groups.Count}") getLocals
if m.Groups.Count = 3
then Some i, false
else lastTopLevelIndex, true
| _ -> Some i, false
)
let code =
match lastTopLevelIndex with
| Some lastTopLevelIndex ->
lines
|> Array.mapi (fun i line ->
match i with
| i when i < lastTopLevelIndex -> line
| i when i = lastTopLevelIndex -> $"\nlet main
() =\n {line}"
| _ when line |> String.trim = "" -> ""
| _ -> $" {line}"
)
|> String.concat "\n"
| None -> $"{rawCellCode}\n\ninl main () = ()\n"
code, lastTopLevelIndex
let newAllCode = $"{allCode}\n\n{cellCode}"
let rustArgs =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // rust="
then line |> String.split [[| '=' |]] |> Array.tryItem 1
else None
)
let timeout =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // timeout="
then line |> String.split [[| '=' |]] |> Array.tryItem 1 |>
Option.map int
else None
)
|> Option.defaultValue (60000 * 60)
let printCode =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // print_code="
then line |> String.split [[| '=' |]] |> Array.tryItem 1 |>
Option.map ((=) "true")
else None
)
|> Option.defaultValue true
let maxTermCount =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // max_term_count="
then line |> String.split [[| '=' |]] |> Array.tryItem 1 |>
Option.map int
else None
)
async {
try
let! mainPath, disposable = newAllCode |>
Supervisor.persistCode
use _ = disposable
match maxTermCount with
| Some maxTermCount ->
do! maxTermCount |> string |>
FileSystem.writeAllTextAsync maxTermCountPath
| None -> ()
let port = Supervisor.getCompilerPort ()
let! codeChoice =
mainPath
|> Supervisor.buildFile timeout port cancellationToken
|> Async.catch
|> Async.runWithTimeoutAsync timeout
match maxTermCount with
| Some _ -> do! FileSystem.deleteFileAsync maxTermCountPath
|> Async.Ignore
| None -> ()
let code =
match codeChoice with
| Some (Ok code) -> Some code
| Some (Error ex) ->
log $"Eval / errors: {ex |> formatException}"
None
| _ -> None
match code with
| Some (Some code, spiralErrors) ->
let spiralErrors =
mapErrors (Warning, spiralErrors, lastTopLevelIndex)
allCode
let inline _trace (fn : unit -> string) =
if traceLevel = Info
then fn () |> System.Console.WriteLine
else trace Info (fun () ->
$"SpiralScriptHelpers.Eval / {fn ()}") getLocals
if printCode
then _trace (fun () -> if rustArgs |> Option.isSome then
$"\n.fsx:\n{code}" else code)
let! rustResult =
if rustArgs |> Option.isNone || lastTopLevelIndex =
None
then None |> Async.init
else
async {
// let hash = $"repl_{code |>
Crypto.hashText}"
let hash = $"spiral_eval"
let! fsprojPath = code |>
Builder.persistCodeProject [["Fable.Core"]] [[]] hash
let projectDir = fsprojPath |>
Path.GetDirectoryName
let outDir = projectDir </> $"target/{hash}"
let libLinkTargetPath = projectDir </>
"target/fable-library-rust"
let libLinkPath = outDir </>
$"fable_modules/fable-library-rust"
if Directory.Exists libLinkTargetPath |> not
then libLinkTargetPath |>
Directory.CreateDirectory |> ignore
libLinkPath |> Path.GetDirectoryName |>
Directory.CreateDirectory |> ignore
let libLinkPathInfo = DirectoryInfo
libLinkPath
if libLinkPathInfo.Exists &&
libLinkPathInfo.LinkTarget = null then
Directory.Delete (libLinkPath, true)
if libLinkPath |> Directory.Exists |> not
then
Directory.CreateSymbolicLink
(libLinkPath, libLinkTargetPath)
|> ignore
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = $@"dotnet fable
{fsprojPath} --optimize --lang rs --extension .rs --outDir {outDir}"
CancellationToken =
cancellationToken
WorkingDirectory = None
OnLine = None
}
if exitCode <> 0
then return Some (Error result)
else
let rsPath = outDir </> $"{hash}.rs"
let! rsCode = rsPath |>
FileSystem.readAllTextAsync
let mainCode = "pub fn main() ->
Result<(), String> { Ok(()) }"
let cached = rsCode |> String.contains
mainCode
let rsCode =
if cached
then rsCode
else rsCode |> String.replace "),);"
"));"
if printCode
then _trace (fun () ->
$"\n.rs:\n{rsCode}")
if not cached
then do!
$"{rsCode}\n\n{mainCode}\n"
|> FileSystem.writeAllTextAsync
rsPath
let cargoTomlPath = outDir </>
$"Cargo.toml"
let cargoTomlContent = $"""[[package]]
name = "{hash}"
version = "0.0.1"
edition = "2021"
[[workspace]]
[[dependencies]]
fable_library_rust = {{ path = "fable_modules/fable-library-rust", optional =
true, default-features = false }}
clap = {{}}
num-complex = {{}}
pyo3 = "~0.21.0-beta.0"
[[features]]
default = [["fable_library_rust/default",
"fable_library_rust/static_do_bindings"]]
[[[[bin]]]]
name = "{hash}"
path = "{hash}.rs"
"""
do! cargoTomlContent |>
FileSystem.writeAllTextExists cargoTomlPath
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = $@"cargo run
--release --manifest-path {cargoTomlPath}"
CancellationToken =
cancellationToken
WorkingDirectory = None
OnLine = None
}
if exitCode = 0 then
try
let result =
result
|> String.split [[| '\n' |]]
|> Array.skipWhile (fun line
->
line |> String.contains
@"[[optimized]] target" |> not
)
|> Array.skip 2
|> String.concat "\n"
return Some (Ok result)
with ex ->
return $"ex:
{ex}\nresult:\n{result}" |> Error |> Some
else
return Some (Error result)
}
let cancellationToken = defaultArg cancellationToken
System.Threading.CancellationToken.None
let fsxResult =
if rustArgs |> Option.isSome
then None
else
try
let ch, errors = fsi_eval code
cancellationToken
let errors =
errors
|> Array.map (fun (e1, e2, e3, _) ->
(e1, e2, e3, ("", (0, 0), (0, 0)))
)
Some (ch, errors)
with ex ->
trace Critical (fun () ->
$"SpiralScriptHelpers.Eval / ex: {ex |> formatException}") getLocals
None
match fsxResult, rustResult with
| Some (ch, errors), None ->
let errors = errors |> Array.append spiralErrors
match ch with
| Choice1Of2 v ->
allCode <- newAllCode
return Ok(v), errors
| Choice2Of2 ex -> return Error ex, errors
| _, Some result ->
let result, errors =
match result with
| Ok result -> result, [[||]]
| Error error ->
"",
[[|
(
TraceLevel.Critical, error, 0, ("",
(0, 0), (0, 0))
)
|]]
let header = if printCode then ".rs output:\n" else
""
let ch, errors2 = fsi_eval
$"\"\"\"{header}{result}\n\"\"\"" cancellationToken
let errors =
errors
|> Array.append spiralErrors
|> Array.append errors2
match ch with
| Choice1Of2 v ->
allCode <- newAllCode
return Ok(v), errors
| Choice2Of2 ex ->
return Error ex, errors
| _ ->
let ch, errors = fsi_eval "()" cancellationToken
match ch with
| Choice1Of2 v ->
allCode <- newAllCode
return Ok(v), errors
| Choice2Of2 ex ->
return Error ex, errors
| Some (None, errors) when errors |> List.isEmpty |> not ->
return errors.[[0]] |> fst |> Exception |> Error,
mapErrors (TraceLevel.Critical, errors,
lastTopLevelIndex) allCode
| _ ->
return Error (Exception "Spiral error or timeout"),
[[|
(
TraceLevel.Critical, "Diag: Spiral error or
timeout", 0, ("", (0, 0), (0, 0))
)
|]]
with ex ->
log $"Eval / ex: {ex |> formatException}"
return Error (Exception $"Spiral error or timeout (4_) / ex:
{ex |> formatException}"),
[[|
(
TraceLevel.Critical, $"Diag: Spiral error or timeout
(4) / ex: {ex |> formatException}", 0, ("", (0, 0), (0, 0))
)
|]]
}
|> Async.runWithTimeoutStrict timeout
|> Option.defaultValue (
Error (Exception "Spiral error or timeout (2)"),
[[|
(
TraceLevel.Critical, "Diag: Spiral error or timeout
(2)", 0, ("", (0, 0), (0, 0))
)
|]]
)
with ex ->
log $"Eval / ex: {ex |> formatException}"
Error (Exception $"Spiral error or timeout (3) / ex: {ex |>
formatException}"),
[[|
(
TraceLevel.Critical, $"Diag: Spiral error or timeout (3) /
ex: {ex |> formatException}", 0, ("", (0, 0), (0, 0))
)
|]]
[NbConvertApp] Converting notebook Eval.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 373321 bytes to Eval.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Eval.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ . "$ScriptDir/../apps/scheduler/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Tasks.dib -Retries 3""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ ## Tasks (Polyglot) │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > // // test
00:00:02 #11 [Verbose] >
00:00:02 #12 [Verbose] > open testing
00:00:06 #13 [Verbose] >
00:00:06 #14 [Verbose] > ╭─[ 3.91s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #15 [Verbose] > │ () │
00:00:06 #16 [Verbose] > │ │
00:00:06 #17 [Verbose] > │ │
00:00:06 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #19 [Verbose] >
00:00:06 #20 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #21 [Verbose] > inl types () =
00:00:06 #22 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]
00:00:06 #23 [Verbose] > type std_string_String = class end"
00:00:06 #24 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =
00:00:06 #25 [Verbose] > class end"
00:00:06 #26 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class
00:00:06 #27 [Verbose] > end"
00:00:06 #28 [Verbose] >
00:00:06 #29 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =
00:00:06 #30 [Verbose] > real
00:00:06 #31 [Verbose] > $"Fable.Core.RustInterop.emitRustExpr !args !code" : t
00:00:06 #32 [Verbose] >
00:00:06 #33 [Verbose] >
00:00:06 #34 [Verbose] > nominal std_string = $"std_string_String"
00:00:06 #35 [Verbose] > nominal ref' t = $"Ref<`t>"
00:00:06 #36 [Verbose] > nominal str = $"Str"
00:00:06 #37 [Verbose] >
00:00:06 #38 [Verbose] > inl format_debug forall t. (x : t) : std_string =
00:00:06 #39 [Verbose] > real
00:00:06 #40 [Verbose] > emit_expr `t `std_string x "format!(\"{:?}\", $0)"
00:00:06 #41 [Verbose] >
00:00:06 #42 [Verbose] > inl format_pretty forall t. (x : t) : std_string =
00:00:06 #43 [Verbose] > real
00:00:06 #44 [Verbose] > emit_expr `t `std_string x "format!(\"{:#?}\", $0)"
00:00:06 #45 [Verbose] >
00:00:06 #46 [Verbose] > inl to_std_string (str : ref' str) : std_string =
00:00:06 #47 [Verbose] > // inl str = join str
00:00:06 #48 [Verbose] > // // emit_expr () $"\"!str.to_string()\""
00:00:06 #49 [Verbose] > // // emit_expr () $"\"alloc::string::to_string(!str)\""
00:00:06 #50 [Verbose] > // emit_expr str "($0).to_string()"
00:00:06 #51 [Verbose] > emit_expr str $"\"String::from(core::ops::Deref::deref($0))\""
00:00:06 #52 [Verbose] > // emit_expr str $"\"String::from(*$0)\""
00:00:06 #53 [Verbose] > // emit_expr () $"\"String::from(!str)\""
00:00:06 #54 [Verbose] >
00:00:06 #55 [Verbose] > inl format forall t. (x : t) : std_string =
00:00:06 #56 [Verbose] > real
00:00:06 #57 [Verbose] > inl result : std_string =
00:00:06 #58 [Verbose] > typecase t with
00:00:06 #59 [Verbose] > | string => to_std_string x
00:00:06 #60 [Verbose] > | std_string => x
00:00:06 #61 [Verbose] > | _ => format_pretty `t x
00:00:06 #62 [Verbose] > result
00:00:06 #63 [Verbose] >
00:00:06 #64 [Verbose] > inl raw_string_literal (s : string) : ref' str =
00:00:06 #65 [Verbose] > emit_expr () $"\"r#\\\"\" + !s + \"\\\"#\""
00:00:06 #66 [Verbose] >
00:00:06 #67 [Verbose] > inl (~#) (s : string) : ref' str =
00:00:06 #68 [Verbose] > raw_string_literal s
00:00:07 #69 [Verbose] >
00:00:07 #70 [Verbose] > ╭─[ 274.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #71 [Verbose] > │ () │
00:00:07 #72 [Verbose] > │ │
00:00:07 #73 [Verbose] > │ │
00:00:07 #74 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #75 [Verbose] >
00:00:07 #76 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #77 [Verbose] > nominal task_name = string
00:00:07 #78 [Verbose] >
00:00:07 #79 [Verbose] > union manual_scheduling =
00:00:07 #80 [Verbose] > | WithSuggestion
00:00:07 #81 [Verbose] > | WithoutSuggestion
00:00:07 #82 [Verbose] >
00:00:07 #83 [Verbose] > union recurrency_offset =
00:00:07 #84 [Verbose] > | Days : i32
00:00:07 #85 [Verbose] > | Weeks : i32
00:00:07 #86 [Verbose] > | Months : i32
00:00:07 #87 [Verbose] >
00:00:07 #88 [Verbose] > union day_of_week =
00:00:07 #89 [Verbose] > | Sunday
00:00:07 #90 [Verbose] > | Monday
00:00:07 #91 [Verbose] > | Tuesday
00:00:07 #92 [Verbose] > | Wednesday
00:00:07 #93 [Verbose] > | Thursday
00:00:07 #94 [Verbose] > | Friday
00:00:07 #95 [Verbose] > | Saturday
00:00:07 #96 [Verbose] >
00:00:07 #97 [Verbose] > union month =
00:00:07 #98 [Verbose] > | January
00:00:07 #99 [Verbose] > | February
00:00:07 #100 [Verbose] > | March
00:00:07 #101 [Verbose] > | April
00:00:07 #102 [Verbose] > | May
00:00:07 #103 [Verbose] > | June
00:00:07 #104 [Verbose] > | July
00:00:07 #105 [Verbose] > | August
00:00:07 #106 [Verbose] > | September
00:00:07 #107 [Verbose] > | October
00:00:07 #108 [Verbose] > | November
00:00:07 #109 [Verbose] > | December
00:00:07 #110 [Verbose] >
00:00:07 #111 [Verbose] > nominal day = i32
00:00:07 #112 [Verbose] > nominal year = i32
00:00:07 #113 [Verbose] >
00:00:07 #114 [Verbose] > union fixed_recurrency =
00:00:07 #115 [Verbose] > | Weekly : day_of_week
00:00:07 #116 [Verbose] > | Monthly : day
00:00:07 #117 [Verbose] > | Yearly : day * month
00:00:07 #118 [Verbose] >
00:00:07 #119 [Verbose] > union recurrency =
00:00:07 #120 [Verbose] > | Offset : recurrency_offset
00:00:07 #121 [Verbose] > | Fixed : list fixed_recurrency
00:00:07 #122 [Verbose] >
00:00:07 #123 [Verbose] > union scheduling =
00:00:07 #124 [Verbose] > | Manual : manual_scheduling
00:00:07 #125 [Verbose] > | Recurrent : recurrency
00:00:07 #126 [Verbose] >
00:00:07 #127 [Verbose] > type task =
00:00:07 #128 [Verbose] > {
00:00:07 #129 [Verbose] > name : task_name
00:00:07 #130 [Verbose] > scheduling : scheduling
00:00:07 #131 [Verbose] > }
00:00:07 #132 [Verbose] >
00:00:07 #133 [Verbose] > type date =
00:00:07 #134 [Verbose] > {
00:00:07 #135 [Verbose] > year : year
00:00:07 #136 [Verbose] > month : month
00:00:07 #137 [Verbose] > day : day
00:00:07 #138 [Verbose] > }
00:00:07 #139 [Verbose] >
00:00:07 #140 [Verbose] > union status =
00:00:07 #141 [Verbose] > | Postponed : option ()
00:00:07 #142 [Verbose] >
00:00:07 #143 [Verbose] > type event =
00:00:07 #144 [Verbose] > {
00:00:07 #145 [Verbose] > date : date
00:00:07 #146 [Verbose] > status : status
00:00:07 #147 [Verbose] > }
00:00:07 #148 [Verbose] >
00:00:07 #149 [Verbose] > type task_template =
00:00:07 #150 [Verbose] > {
00:00:07 #151 [Verbose] > task : task
00:00:07 #152 [Verbose] > events : list event
00:00:07 #153 [Verbose] > }
00:00:07 #154 [Verbose] >
00:00:07 #155 [Verbose] > ╭─[ 228.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #156 [Verbose] > │ () │
00:00:07 #157 [Verbose] > │ │
00:00:07 #158 [Verbose] > │ │
00:00:07 #159 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #160 [Verbose] >
00:00:07 #161 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #162 [Verbose] > // // test
00:00:07 #163 [Verbose] > // // rust=
00:00:07 #164 [Verbose] >
00:00:07 #165 [Verbose] > types ()
00:00:41 #166 [Verbose] >
00:00:41 #167 [Verbose] > ╭─[ 33.93s - return value ]────────────────────────────────────────────────────╮
00:00:41 #168 [Verbose] > │ .rs output: │
00:00:41 #169 [Verbose] > │ │
00:00:41 #170 [Verbose] > │ │
00:00:41 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #172 [Verbose] >
00:00:41 #173 [Verbose] > ╭─[ 33.96s - stdout ]──────────────────────────────────────────────────────────╮
00:00:41 #174 [Verbose] > │ │
00:00:41 #175 [Verbose] > │ .fsx: │
00:00:41 #176 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:41 #177 [Verbose] > │ std_string_String = class end │
00:00:41 #178 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:41 #179 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:41 #180 [Verbose] > │ let rec method0 () : unit = │
00:00:41 #181 [Verbose] > │ () │
00:00:41 #182 [Verbose] > │ method0() │
00:00:41 #183 [Verbose] > │ │
00:00:41 #184 [Verbose] > │ │
00:00:41 #185 [Verbose] > │ .rs: │
00:00:41 #186 [Verbose] > │ #![allow(dead_code,)] │
00:00:41 #187 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:41 #188 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:41 #189 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:41 #190 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:41 #191 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:41 #192 [Verbose] > │ #![allow(unused_imports,)] │
00:00:41 #193 [Verbose] > │ #![allow(unused_macros,)] │
00:00:41 #194 [Verbose] > │ #![allow(unused_parens,)] │
00:00:41 #195 [Verbose] > │ #![allow(unused_variables,)] │
00:00:41 #196 [Verbose] > │ mod module_ccfa04bf { │
00:00:41 #197 [Verbose] > │ pub mod Spiral_eval { │
00:00:41 #198 [Verbose] > │ use super::*; │
00:00:41 #199 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:41 #200 [Verbose] > │ pub fn method0() { (); } │
00:00:41 #201 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:41 #202 [Verbose] > │ } │
00:00:41 #203 [Verbose] > │ } │
00:00:41 #204 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:41 #205 [Verbose] > │ │
00:00:41 #206 [Verbose] > │ │
00:00:41 #207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #208 [Verbose] >
00:00:41 #209 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #210 [Verbose] > // // test
00:00:41 #211 [Verbose] > // // rust=
00:00:41 #212 [Verbose] >
00:00:41 #213 [Verbose] > inl get_tasks () : list task_template =
00:00:41 #214 [Verbose] > [[
00:00:41 #215 [Verbose] > {
00:00:41 #216 [Verbose] > task =
00:00:41 #217 [Verbose] > {
00:00:41 #218 [Verbose] > name = task_name "01"
00:00:41 #219 [Verbose] > scheduling = Manual WithSuggestion
00:00:41 #220 [Verbose] > }
00:00:41 #221 [Verbose] > events = [[]]
00:00:41 #222 [Verbose] > }
00:00:41 #223 [Verbose] > {
00:00:41 #224 [Verbose] > task =
00:00:41 #225 [Verbose] > {
00:00:41 #226 [Verbose] > name = task_name "02"
00:00:41 #227 [Verbose] > scheduling = Manual WithSuggestion
00:00:41 #228 [Verbose] > }
00:00:41 #229 [Verbose] > events = [[]]
00:00:41 #230 [Verbose] > }
00:00:41 #231 [Verbose] > {
00:00:41 #232 [Verbose] > task =
00:00:41 #233 [Verbose] > {
00:00:41 #234 [Verbose] > name = task_name "03"
00:00:41 #235 [Verbose] > scheduling = Manual WithSuggestion
00:00:41 #236 [Verbose] > }
00:00:41 #237 [Verbose] > events = [[]]
00:00:41 #238 [Verbose] > }
00:00:41 #239 [Verbose] > ]]
00:00:41 #240 [Verbose] >
00:00:41 #241 [Verbose] > types ()
00:00:41 #242 [Verbose] > get_tasks () |> format_pretty |> console.write_line
00:00:49 #243 [Verbose] >
00:00:49 #244 [Verbose] > ╭─[ 8.72s - return value ]─────────────────────────────────────────────────────╮
00:00:49 #245 [Verbose] > │ .rs output: │
00:00:49 #246 [Verbose] > │ UH2_0( │
00:00:49 #247 [Verbose] > │ UH0_1, │
00:00:49 #248 [Verbose] > │ "01", │
00:00:49 #249 [Verbose] > │ US4_0( │
00:00:49 #250 [Verbose] > │ US3_0, │
00:00:49 #251 [Verbose] > │ ), │
00:00:49 #252 [Verbose] > │ UH2_0( │
00:00:49 #253 [Verbose] > │ UH0_1, │
00:00:49 #254 [Verbose] > │ "02", │
00:00:49 #255 [Verbose] > │ US4_0( │
00:00:49 #256 [Verbose] > │ US3_0, │
00:00:49 #257 [Verbose] > │ ), │
00:00:49 #258 [Verbose] > │ UH2_0( │
00:00:49 #259 [Verbose] > │ UH0_1, │
00:00:49 #260 [Verbose] > │ "03", │
00:00:49 #261 [Verbose] > │ US4_0( │
00:00:49 #262 [Verbose] > │ US3_0, │
00:00:49 #263 [Verbose] > │ ), │
00:00:49 #264 [Verbose] > │ UH2_1, │
00:00:49 #265 [Verbose] > │ ), │
00:00:49 #266 [Verbose] > │ ), │
00:00:49 #267 [Verbose] > │ ) │
00:00:49 #268 [Verbose] > │ │
00:00:49 #269 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 #270 [Verbose] >
00:00:49 #271 [Verbose] > ╭─[ 8.74s - stdout ]───────────────────────────────────────────────────────────╮
00:00:49 #272 [Verbose] > │ │
00:00:49 #273 [Verbose] > │ .fsx: │
00:00:49 #274 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:49 #275 [Verbose] > │ std_string_String = class end │
00:00:49 #276 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:49 #277 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:49 #278 [Verbose] > │ type [<Struct>] US0 = │
00:00:49 #279 [Verbose] > │ | US0_0 │
00:00:49 #280 [Verbose] > │ | US0_1 │
00:00:49 #281 [Verbose] > │ | US0_2 │
00:00:49 #282 [Verbose] > │ | US0_3 │
00:00:49 #283 [Verbose] > │ | US0_4 │
00:00:49 #284 [Verbose] > │ | US0_5 │
00:00:49 #285 [Verbose] > │ | US0_6 │
00:00:49 #286 [Verbose] > │ | US0_7 │
00:00:49 #287 [Verbose] > │ | US0_8 │
00:00:49 #288 [Verbose] > │ | US0_9 │
00:00:49 #289 [Verbose] > │ | US0_10 │
00:00:49 #290 [Verbose] > │ | US0_11 │
00:00:49 #291 [Verbose] > │ and [<Struct>] US2 = │
00:00:49 #292 [Verbose] > │ | US2_0 │
00:00:49 #293 [Verbose] > │ | US2_1 │
00:00:49 #294 [Verbose] > │ and [<Struct>] US1 = │
00:00:49 #295 [Verbose] > │ | US1_0 of f0_0 : US2 │
00:00:49 #296 [Verbose] > │ and UH0 = │
00:00:50 #297 [Verbose] > │ | UH0_0 of int32 * US0 * int32 * US1 * UH0 │
00:00:50 #298 [Verbose] > │ | UH0_1 │
00:00:50 #299 [Verbose] > │ and [<Struct>] US3 = │
00:00:50 #300 [Verbose] > │ | US3_0 │
00:00:50 #301 [Verbose] > │ | US3_1 │
00:00:50 #302 [Verbose] > │ and [<Struct>] US7 = │
00:00:50 #303 [Verbose] > │ | US7_0 │
00:00:50 #304 [Verbose] > │ | US7_1 │
00:00:50 #305 [Verbose] > │ | US7_2 │
00:00:50 #306 [Verbose] > │ | US7_3 │
00:00:50 #307 [Verbose] > │ | US7_4 │
00:00:50 #308 [Verbose] > │ | US7_5 │
00:00:50 #309 [Verbose] > │ | US7_6 │
00:00:50 #310 [Verbose] > │ and [<Struct>] US6 = │
00:00:50 #311 [Verbose] > │ | US6_0 of f0_0 : int32 │
00:00:50 #312 [Verbose] > │ | US6_1 of f1_0 : US7 │
00:00:50 #313 [Verbose] > │ | US6_2 of f2_0 : int32 * f2_1 : US0 │
00:00:50 #314 [Verbose] > │ and UH1 = │
00:00:50 #315 [Verbose] > │ | UH1_0 of US6 * UH1 │
00:00:50 #316 [Verbose] > │ | UH1_1 │
00:00:50 #317 [Verbose] > │ and [<Struct>] US8 = │
00:00:50 #318 [Verbose] > │ | US8_0 of f0_0 : int32 │
00:00:50 #319 [Verbose] > │ | US8_1 of f1_0 : int32 │
00:00:50 #320 [Verbose] > │ | US8_2 of f2_0 : int32 │
00:00:50 #321 [Verbose] > │ and [<Struct>] US5 = │
00:00:50 #322 [Verbose] > │ | US5_0 of f0_0 : UH1 │
00:00:50 #323 [Verbose] > │ | US5_1 of f1_0 : US8 │
00:00:50 #324 [Verbose] > │ and [<Struct>] US4 = │
00:00:50 #325 [Verbose] > │ | US4_0 of f0_0 : US3 │
00:00:50 #326 [Verbose] > │ | US4_1 of f1_0 : US5 │
00:00:50 #327 [Verbose] > │ and UH2 = │
00:00:50 #328 [Verbose] > │ | UH2_0 of UH0 * string * US4 * UH2 │
00:00:50 #329 [Verbose] > │ | UH2_1 │
00:00:50 #330 [Verbose] > │ let rec method0 () : unit = │
00:00:50 #331 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:50 #332 [Verbose] > │ let v1 : string = "01" │
00:00:50 #333 [Verbose] > │ let v2 : US3 = US3_0 │
00:00:50 #334 [Verbose] > │ let v3 : US4 = US4_0(v2) │
00:00:50 #335 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:50 #336 [Verbose] > │ let v5 : string = "02" │
00:00:50 #337 [Verbose] > │ let v6 : US3 = US3_0 │
00:00:50 #338 [Verbose] > │ let v7 : US4 = US4_0(v6) │
00:00:50 #339 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:50 #340 [Verbose] > │ let v9 : string = "03" │
00:00:50 #341 [Verbose] > │ let v10 : US3 = US3_0 │
00:00:50 #342 [Verbose] > │ let v11 : US4 = US4_0(v10) │
00:00:50 #343 [Verbose] > │ let v12 : UH2 = UH2_1 │
00:00:50 #344 [Verbose] > │ let v13 : UH2 = UH2_0(v8, v9, v11, v12) │
00:00:50 #345 [Verbose] > │ let v14 : UH2 = UH2_0(v4, v5, v7, v13) │
00:00:50 #346 [Verbose] > │ let v15 : UH2 = UH2_0(v0, v1, v3, v14) │
00:00:50 #347 [Verbose] > │ let v16 : string = "format!(\"{:#?}\", $0)" │
00:00:50 #348 [Verbose] > │ let v17 : std_string_String = Fable.Core.RustInterop.emitRustExpr v15 │
00:00:50 #349 [Verbose] > │ v16 │
00:00:50 #350 [Verbose] > │ System.Console.WriteLine v17 │
00:00:50 #351 [Verbose] > │ () │
00:00:50 #352 [Verbose] > │ method0() │
00:00:50 #353 [Verbose] > │ │
00:00:50 #354 [Verbose] > │ │
00:00:50 #355 [Verbose] > │ .rs: │
00:00:50 #356 [Verbose] > │ #![allow(dead_code,)] │
00:00:50 #357 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:50 #358 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:50 #359 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:50 #360 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:50 #361 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:50 #362 [Verbose] > │ #![allow(unused_imports,)] │
00:00:50 #363 [Verbose] > │ #![allow(unused_macros,)] │
00:00:50 #364 [Verbose] > │ #![allow(unused_parens,)] │
00:00:50 #365 [Verbose] > │ #![allow(unused_variables,)] │
00:00:50 #366 [Verbose] > │ mod module_ccfa04bf { │
00:00:50 #367 [Verbose] > │ pub mod Spiral_eval { │
00:00:50 #368 [Verbose] > │ use super::*; │
00:00:50 #369 [Verbose] > │ use fable_library_rust::Native_::LrcPtr; │
00:00:50 #370 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:50 #371 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:50 #372 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:50 #373 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:50 #374 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #375 [Verbose] > │ pub enum US0 { │
00:00:50 #376 [Verbose] > │ US0_0, │
00:00:50 #377 [Verbose] > │ US0_1, │
00:00:50 #378 [Verbose] > │ US0_2, │
00:00:50 #379 [Verbose] > │ US0_3, │
00:00:50 #380 [Verbose] > │ US0_4, │
00:00:50 #381 [Verbose] > │ US0_5, │
00:00:50 #382 [Verbose] > │ US0_6, │
00:00:50 #383 [Verbose] > │ US0_7, │
00:00:50 #384 [Verbose] > │ US0_8, │
00:00:50 #385 [Verbose] > │ US0_9, │
00:00:50 #386 [Verbose] > │ US0_10, │
00:00:50 #387 [Verbose] > │ US0_11, │
00:00:50 #388 [Verbose] > │ } │
00:00:50 #389 [Verbose] > │ impl Spiral_eval::US0 { │
00:00:50 #390 [Verbose] > │ pub fn get_IsUS0_0(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #391 [Verbose] > │ ()) │
00:00:50 #392 [Verbose] > │ -> bool { │
00:00:50 #393 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #394 [Verbose] > │ } │
00:00:50 #395 [Verbose] > │ pub fn get_IsUS0_1(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #396 [Verbose] > │ ()) │
00:00:50 #397 [Verbose] > │ -> bool { │
00:00:50 #398 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #399 [Verbose] > │ } │
00:00:50 #400 [Verbose] > │ pub fn get_IsUS0_2(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #401 [Verbose] > │ ()) │
00:00:50 #402 [Verbose] > │ -> bool { │
00:00:50 #403 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #404 [Verbose] > │ } │
00:00:50 #405 [Verbose] > │ pub fn get_IsUS0_3(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #406 [Verbose] > │ ()) │
00:00:50 #407 [Verbose] > │ -> bool { │
00:00:50 #408 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #409 [Verbose] > │ } │
00:00:50 #410 [Verbose] > │ pub fn get_IsUS0_4(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #411 [Verbose] > │ ()) │
00:00:50 #412 [Verbose] > │ -> bool { │
00:00:50 #413 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #414 [Verbose] > │ } │
00:00:50 #415 [Verbose] > │ pub fn get_IsUS0_5(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #416 [Verbose] > │ ()) │
00:00:50 #417 [Verbose] > │ -> bool { │
00:00:50 #418 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #419 [Verbose] > │ } │
00:00:50 #420 [Verbose] > │ pub fn get_IsUS0_6(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #421 [Verbose] > │ ()) │
00:00:50 #422 [Verbose] > │ -> bool { │
00:00:50 #423 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #424 [Verbose] > │ } │
00:00:50 #425 [Verbose] > │ pub fn get_IsUS0_7(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #426 [Verbose] > │ ()) │
00:00:50 #427 [Verbose] > │ -> bool { │
00:00:50 #428 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #429 [Verbose] > │ } │
00:00:50 #430 [Verbose] > │ pub fn get_IsUS0_8(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #431 [Verbose] > │ ()) │
00:00:50 #432 [Verbose] > │ -> bool { │
00:00:50 #433 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #434 [Verbose] > │ } │
00:00:50 #435 [Verbose] > │ pub fn get_IsUS0_9(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:50 #436 [Verbose] > │ ()) │
00:00:50 #437 [Verbose] > │ -> bool { │
00:00:50 #438 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #439 [Verbose] > │ } │
00:00:50 #440 [Verbose] > │ pub fn get_IsUS0_10(this_: &MutCell<Spiral_eval::US0>, │
00:00:50 #441 [Verbose] > │ unitArg: ()) -> bool { │
00:00:50 #442 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #443 [Verbose] > │ } │
00:00:50 #444 [Verbose] > │ pub fn get_IsUS0_11(this_: &MutCell<Spiral_eval::US0>, │
00:00:50 #445 [Verbose] > │ unitArg: ()) -> bool { │
00:00:50 #446 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #447 [Verbose] > │ } │
00:00:50 #448 [Verbose] > │ } │
00:00:50 #449 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US0 { │
00:00:50 #450 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #451 [Verbose] > │ { │
00:00:50 #452 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #453 [Verbose] > │ } │
00:00:50 #454 [Verbose] > │ } │
00:00:50 #455 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #456 [Verbose] > │ pub enum US2 { US2_0, US2_1, } │
00:00:50 #457 [Verbose] > │ impl Spiral_eval::US2 { │
00:00:50 #458 [Verbose] > │ pub fn get_IsUS2_0(this_: &MutCell<Spiral_eval::US2>, unitArg: │
00:00:50 #459 [Verbose] > │ ()) │
00:00:50 #460 [Verbose] > │ -> bool { │
00:00:50 #461 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #462 [Verbose] > │ } │
00:00:50 #463 [Verbose] > │ pub fn get_IsUS2_1(this_: &MutCell<Spiral_eval::US2>, unitArg: │
00:00:50 #464 [Verbose] > │ ()) │
00:00:50 #465 [Verbose] > │ -> bool { │
00:00:50 #466 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #467 [Verbose] > │ } │
00:00:50 #468 [Verbose] > │ } │
00:00:50 #469 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US2 { │
00:00:50 #470 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #471 [Verbose] > │ { │
00:00:50 #472 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #473 [Verbose] > │ } │
00:00:50 #474 [Verbose] > │ } │
00:00:50 #475 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #476 [Verbose] > │ pub enum US1 { US1_0(Spiral_eval::US2), } │
00:00:50 #477 [Verbose] > │ impl Spiral_eval::US1 { │
00:00:50 #478 [Verbose] > │ pub fn get_IsUS1_0(this_: &MutCell<Spiral_eval::US1>, unitArg: │
00:00:50 #479 [Verbose] > │ ()) │
00:00:50 #480 [Verbose] > │ -> bool { │
00:00:50 #481 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #482 [Verbose] > │ } │
00:00:50 #483 [Verbose] > │ } │
00:00:50 #484 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US1 { │
00:00:50 #485 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #486 [Verbose] > │ { │
00:00:50 #487 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #488 [Verbose] > │ } │
00:00:50 #489 [Verbose] > │ } │
00:00:50 #490 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #491 [Verbose] > │ pub enum UH0 { │
00:00:50 #492 [Verbose] > │ UH0_0(i32, Spiral_eval::US0, i32, Spiral_eval::US1, │
00:00:50 #493 [Verbose] > │ LrcPtr<Spiral_eval::UH0>), │
00:00:50 #494 [Verbose] > │ UH0_1, │
00:00:50 #495 [Verbose] > │ } │
00:00:50 #496 [Verbose] > │ impl Spiral_eval::UH0 { │
00:00:50 #497 [Verbose] > │ pub fn get_IsUH0_0(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │
00:00:50 #498 [Verbose] > │ -> bool { │
00:00:50 #499 [Verbose] > │ if let Spiral_eval::UH0::UH0_0(this__0_0, this__0_1, │
00:00:50 #500 [Verbose] > │ this__0_2, this__0_3, │
00:00:50 #501 [Verbose] > │ this__0_4) = this_.as_ref() { │
00:00:50 #502 [Verbose] > │ true │
00:00:50 #503 [Verbose] > │ } else { false } │
00:00:50 #504 [Verbose] > │ } │
00:00:50 #505 [Verbose] > │ pub fn get_IsUH0_1(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │
00:00:50 #506 [Verbose] > │ -> bool { │
00:00:50 #507 [Verbose] > │ if let Spiral_eval::UH0::UH0_1 = this_.as_ref() { │
00:00:50 #508 [Verbose] > │ true │
00:00:50 #509 [Verbose] > │ } else { false } │
00:00:50 #510 [Verbose] > │ } │
00:00:50 #511 [Verbose] > │ } │
00:00:50 #512 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH0 { │
00:00:50 #513 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #514 [Verbose] > │ { │
00:00:50 #515 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #516 [Verbose] > │ } │
00:00:50 #517 [Verbose] > │ } │
00:00:50 #518 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #519 [Verbose] > │ pub enum US3 { US3_0, US3_1, } │
00:00:50 #520 [Verbose] > │ impl Spiral_eval::US3 { │
00:00:50 #521 [Verbose] > │ pub fn get_IsUS3_0(this_: &MutCell<Spiral_eval::US3>, unitArg: │
00:00:50 #522 [Verbose] > │ ()) │
00:00:50 #523 [Verbose] > │ -> bool { │
00:00:50 #524 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #525 [Verbose] > │ } │
00:00:50 #526 [Verbose] > │ pub fn get_IsUS3_1(this_: &MutCell<Spiral_eval::US3>, unitArg: │
00:00:50 #527 [Verbose] > │ ()) │
00:00:50 #528 [Verbose] > │ -> bool { │
00:00:50 #529 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #530 [Verbose] > │ } │
00:00:50 #531 [Verbose] > │ } │
00:00:50 #532 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US3 { │
00:00:50 #533 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #534 [Verbose] > │ { │
00:00:50 #535 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #536 [Verbose] > │ } │
00:00:50 #537 [Verbose] > │ } │
00:00:50 #538 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #539 [Verbose] > │ pub enum US7 { US7_0, US7_1, US7_2, US7_3, US7_4, US7_5, US7_6, } │
00:00:50 #540 [Verbose] > │ impl Spiral_eval::US7 { │
00:00:50 #541 [Verbose] > │ pub fn get_IsUS7_0(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #542 [Verbose] > │ ()) │
00:00:50 #543 [Verbose] > │ -> bool { │
00:00:50 #544 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #545 [Verbose] > │ } │
00:00:50 #546 [Verbose] > │ pub fn get_IsUS7_1(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #547 [Verbose] > │ ()) │
00:00:50 #548 [Verbose] > │ -> bool { │
00:00:50 #549 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #550 [Verbose] > │ } │
00:00:50 #551 [Verbose] > │ pub fn get_IsUS7_2(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #552 [Verbose] > │ ()) │
00:00:50 #553 [Verbose] > │ -> bool { │
00:00:50 #554 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #555 [Verbose] > │ } │
00:00:50 #556 [Verbose] > │ pub fn get_IsUS7_3(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #557 [Verbose] > │ ()) │
00:00:50 #558 [Verbose] > │ -> bool { │
00:00:50 #559 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #560 [Verbose] > │ } │
00:00:50 #561 [Verbose] > │ pub fn get_IsUS7_4(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #562 [Verbose] > │ ()) │
00:00:50 #563 [Verbose] > │ -> bool { │
00:00:50 #564 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #565 [Verbose] > │ } │
00:00:50 #566 [Verbose] > │ pub fn get_IsUS7_5(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #567 [Verbose] > │ ()) │
00:00:50 #568 [Verbose] > │ -> bool { │
00:00:50 #569 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #570 [Verbose] > │ } │
00:00:50 #571 [Verbose] > │ pub fn get_IsUS7_6(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:50 #572 [Verbose] > │ ()) │
00:00:50 #573 [Verbose] > │ -> bool { │
00:00:50 #574 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #575 [Verbose] > │ } │
00:00:50 #576 [Verbose] > │ } │
00:00:50 #577 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US7 { │
00:00:50 #578 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #579 [Verbose] > │ { │
00:00:50 #580 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #581 [Verbose] > │ } │
00:00:50 #582 [Verbose] > │ } │
00:00:50 #583 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #584 [Verbose] > │ pub enum US6 { │
00:00:50 #585 [Verbose] > │ US6_0(i32), │
00:00:50 #586 [Verbose] > │ US6_1(Spiral_eval::US7), │
00:00:50 #587 [Verbose] > │ US6_2(i32, Spiral_eval::US0), │
00:00:50 #588 [Verbose] > │ } │
00:00:50 #589 [Verbose] > │ impl Spiral_eval::US6 { │
00:00:50 #590 [Verbose] > │ pub fn get_IsUS6_0(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:50 #591 [Verbose] > │ ()) │
00:00:50 #592 [Verbose] > │ -> bool { │
00:00:50 #593 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #594 [Verbose] > │ } │
00:00:50 #595 [Verbose] > │ pub fn get_IsUS6_1(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:50 #596 [Verbose] > │ ()) │
00:00:50 #597 [Verbose] > │ -> bool { │
00:00:50 #598 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #599 [Verbose] > │ } │
00:00:50 #600 [Verbose] > │ pub fn get_IsUS6_2(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:50 #601 [Verbose] > │ ()) │
00:00:50 #602 [Verbose] > │ -> bool { │
00:00:50 #603 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #604 [Verbose] > │ } │
00:00:50 #605 [Verbose] > │ } │
00:00:50 #606 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US6 { │
00:00:50 #607 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #608 [Verbose] > │ { │
00:00:50 #609 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #610 [Verbose] > │ } │
00:00:50 #611 [Verbose] > │ } │
00:00:50 #612 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #613 [Verbose] > │ pub enum UH1 { │
00:00:50 #614 [Verbose] > │ UH1_0(Spiral_eval::US6, LrcPtr<Spiral_eval::UH1>), │
00:00:50 #615 [Verbose] > │ UH1_1, │
00:00:50 #616 [Verbose] > │ } │
00:00:50 #617 [Verbose] > │ impl Spiral_eval::UH1 { │
00:00:50 #618 [Verbose] > │ pub fn get_IsUH1_0(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │
00:00:50 #619 [Verbose] > │ -> bool { │
00:00:50 #620 [Verbose] > │ if let Spiral_eval::UH1::UH1_0(this__0_0, this__0_1) = │
00:00:50 #621 [Verbose] > │ this_.as_ref() { │
00:00:50 #622 [Verbose] > │ true │
00:00:50 #623 [Verbose] > │ } else { false } │
00:00:50 #624 [Verbose] > │ } │
00:00:50 #625 [Verbose] > │ pub fn get_IsUH1_1(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │
00:00:50 #626 [Verbose] > │ -> bool { │
00:00:50 #627 [Verbose] > │ if let Spiral_eval::UH1::UH1_1 = this_.as_ref() { │
00:00:50 #628 [Verbose] > │ true │
00:00:50 #629 [Verbose] > │ } else { false } │
00:00:50 #630 [Verbose] > │ } │
00:00:50 #631 [Verbose] > │ } │
00:00:50 #632 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH1 { │
00:00:50 #633 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #634 [Verbose] > │ { │
00:00:50 #635 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #636 [Verbose] > │ } │
00:00:50 #637 [Verbose] > │ } │
00:00:50 #638 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #639 [Verbose] > │ pub enum US8 { US8_0(i32), US8_1(i32), US8_2(i32), } │
00:00:50 #640 [Verbose] > │ impl Spiral_eval::US8 { │
00:00:50 #641 [Verbose] > │ pub fn get_IsUS8_0(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:50 #642 [Verbose] > │ ()) │
00:00:50 #643 [Verbose] > │ -> bool { │
00:00:50 #644 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #645 [Verbose] > │ } │
00:00:50 #646 [Verbose] > │ pub fn get_IsUS8_1(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:50 #647 [Verbose] > │ ()) │
00:00:50 #648 [Verbose] > │ -> bool { │
00:00:50 #649 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #650 [Verbose] > │ } │
00:00:50 #651 [Verbose] > │ pub fn get_IsUS8_2(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:50 #652 [Verbose] > │ ()) │
00:00:50 #653 [Verbose] > │ -> bool { │
00:00:50 #654 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #655 [Verbose] > │ } │
00:00:50 #656 [Verbose] > │ } │
00:00:50 #657 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US8 { │
00:00:50 #658 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #659 [Verbose] > │ { │
00:00:50 #660 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #661 [Verbose] > │ } │
00:00:50 #662 [Verbose] > │ } │
00:00:50 #663 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #664 [Verbose] > │ pub enum US5 { │
00:00:50 #665 [Verbose] > │ US5_0(LrcPtr<Spiral_eval::UH1>), │
00:00:50 #666 [Verbose] > │ US5_1(Spiral_eval::US8), │
00:00:50 #667 [Verbose] > │ } │
00:00:50 #668 [Verbose] > │ impl Spiral_eval::US5 { │
00:00:50 #669 [Verbose] > │ pub fn get_IsUS5_0(this_: &MutCell<Spiral_eval::US5>, unitArg: │
00:00:50 #670 [Verbose] > │ ()) │
00:00:50 #671 [Verbose] > │ -> bool { │
00:00:50 #672 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #673 [Verbose] > │ } │
00:00:50 #674 [Verbose] > │ pub fn get_IsUS5_1(this_: &MutCell<Spiral_eval::US5>, unitArg: │
00:00:50 #675 [Verbose] > │ ()) │
00:00:50 #676 [Verbose] > │ -> bool { │
00:00:50 #677 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #678 [Verbose] > │ } │
00:00:50 #679 [Verbose] > │ } │
00:00:50 #680 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US5 { │
00:00:50 #681 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #682 [Verbose] > │ { │
00:00:50 #683 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #684 [Verbose] > │ } │
00:00:50 #685 [Verbose] > │ } │
00:00:50 #686 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #687 [Verbose] > │ pub enum US4 { US4_0(Spiral_eval::US3), US4_1(Spiral_eval::US5), } │
00:00:50 #688 [Verbose] > │ impl Spiral_eval::US4 { │
00:00:50 #689 [Verbose] > │ pub fn get_IsUS4_0(this_: &MutCell<Spiral_eval::US4>, unitArg: │
00:00:50 #690 [Verbose] > │ ()) │
00:00:50 #691 [Verbose] > │ -> bool { │
00:00:50 #692 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #693 [Verbose] > │ } │
00:00:50 #694 [Verbose] > │ pub fn get_IsUS4_1(this_: &MutCell<Spiral_eval::US4>, unitArg: │
00:00:50 #695 [Verbose] > │ ()) │
00:00:50 #696 [Verbose] > │ -> bool { │
00:00:50 #697 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:50 #698 [Verbose] > │ } │
00:00:50 #699 [Verbose] > │ } │
00:00:50 #700 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US4 { │
00:00:50 #701 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #702 [Verbose] > │ { │
00:00:50 #703 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #704 [Verbose] > │ } │
00:00:50 #705 [Verbose] > │ } │
00:00:50 #706 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:50 #707 [Verbose] > │ pub enum UH2 { │
00:00:50 #708 [Verbose] > │ UH2_0(LrcPtr<Spiral_eval::UH0>, string, Spiral_eval::US4, │
00:00:50 #709 [Verbose] > │ LrcPtr<Spiral_eval::UH2>), │
00:00:50 #710 [Verbose] > │ UH2_1, │
00:00:50 #711 [Verbose] > │ } │
00:00:50 #712 [Verbose] > │ impl Spiral_eval::UH2 { │
00:00:50 #713 [Verbose] > │ pub fn get_IsUH2_0(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │
00:00:50 #714 [Verbose] > │ -> bool { │
00:00:50 #715 [Verbose] > │ if let Spiral_eval::UH2::UH2_0(this__0_0, this__0_1, │
00:00:50 #716 [Verbose] > │ this__0_2, this__0_3) = │
00:00:50 #717 [Verbose] > │ this_.as_ref() { │
00:00:50 #718 [Verbose] > │ true │
00:00:50 #719 [Verbose] > │ } else { false } │
00:00:50 #720 [Verbose] > │ } │
00:00:50 #721 [Verbose] > │ pub fn get_IsUH2_1(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │
00:00:50 #722 [Verbose] > │ -> bool { │
00:00:50 #723 [Verbose] > │ if let Spiral_eval::UH2::UH2_1 = this_.as_ref() { │
00:00:50 #724 [Verbose] > │ true │
00:00:50 #725 [Verbose] > │ } else { false } │
00:00:50 #726 [Verbose] > │ } │
00:00:50 #727 [Verbose] > │ } │
00:00:50 #728 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH2 { │
00:00:50 #729 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:50 #730 [Verbose] > │ { │
00:00:50 #731 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:50 #732 [Verbose] > │ } │
00:00:50 #733 [Verbose] > │ } │
00:00:50 #734 [Verbose] > │ pub fn method0() { │
00:00:50 #735 [Verbose] > │ let v17: std::string::String = │
00:00:50 #736 [Verbose] > │ format!("{:#?}", │
00:00:50 #737 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:50 #738 [Verbose] > │ │
00:00:50 #739 [Verbose] > │ string("01"), │
00:00:50 #740 [Verbose] > │ │
00:00:50 #741 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:50 #742 [Verbose] > │ │
00:00:50 #743 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:50 #744 [Verbose] > │ │
00:00:50 #745 [Verbose] > │ string("02"), │
00:00:50 #746 [Verbose] > │ │
00:00:50 #747 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:50 #748 [Verbose] > │ │
00:00:50 #749 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:50 #750 [Verbose] > │ │
00:00:50 #751 [Verbose] > │ string("03"), │
00:00:50 #752 [Verbose] > │ │
00:00:50 #753 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:50 #754 [Verbose] > │ │
00:00:50 #755 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_1)))))))); │
00:00:50 #756 [Verbose] > │ printfn!("{0}", v17); │
00:00:50 #757 [Verbose] > │ () │
00:00:50 #758 [Verbose] > │ } │
00:00:50 #759 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:50 #760 [Verbose] > │ } │
00:00:50 #761 [Verbose] > │ } │
00:00:50 #762 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:50 #763 [Verbose] > │ │
00:00:50 #764 [Verbose] > │ │
00:00:50 #765 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #766 [Verbose] >
00:00:50 #767 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 #768 [Verbose] > // // test
00:00:50 #769 [Verbose] > // // rust=
00:00:50 #770 [Verbose] >
00:00:50 #771 [Verbose] > get_tasks ()
00:00:50 #772 [Verbose] > |> listm'.try_item 0i32
00:00:50 #773 [Verbose] > |> fun (Some task) => task.task.name
00:00:50 #774 [Verbose] > |> _assert_eq (task_name "01")
00:00:55 #775 [Verbose] >
00:00:55 #776 [Verbose] > ╭─[ 5.52s - return value ]─────────────────────────────────────────────────────╮
00:00:55 #777 [Verbose] > │ .rs output: │
00:00:55 #778 [Verbose] > │ "01" │
00:00:55 #779 [Verbose] > │ │
00:00:55 #780 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 #781 [Verbose] >
00:00:55 #782 [Verbose] > ╭─[ 5.52s - stdout ]───────────────────────────────────────────────────────────╮
00:00:55 #783 [Verbose] > │ │
00:00:55 #784 [Verbose] > │ .fsx: │
00:00:55 #785 [Verbose] > │ let rec method0 () : unit = │
00:00:55 #786 [Verbose] > │ let v0 : string = "01" │
00:00:55 #787 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:55 #788 [Verbose] > │ System.Console.WriteLine v1 │
00:00:55 #789 [Verbose] > │ let v2 : string = $"__expect / actual: %A{v0} / expected: %A{v0}" │
00:00:55 #790 [Verbose] > │ () │
00:00:55 #791 [Verbose] > │ method0() │
00:00:55 #792 [Verbose] > │ │
00:00:55 #793 [Verbose] > │ │
00:00:55 #794 [Verbose] > │ .rs: │
00:00:55 #795 [Verbose] > │ #![allow(dead_code,)] │
00:00:55 #796 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:55 #797 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:55 #798 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:55 #799 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:55 #800 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:55 #801 [Verbose] > │ #![allow(unused_imports,)] │
00:00:55 #802 [Verbose] > │ #![allow(unused_macros,)] │
00:00:55 #803 [Verbose] > │ #![allow(unused_parens,)] │
00:00:55 #804 [Verbose] > │ #![allow(unused_variables,)] │
00:00:55 #805 [Verbose] > │ mod module_ccfa04bf { │
00:00:55 #806 [Verbose] > │ pub mod Spiral_eval { │
00:00:55 #807 [Verbose] > │ use super::*; │
00:00:55 #808 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:55 #809 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:55 #810 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:55 #811 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:55 #812 [Verbose] > │ pub fn method0() { │
00:00:55 #813 [Verbose] > │ let v1: string = sprintf!("{:?}", string("01")); │
00:00:55 #814 [Verbose] > │ printfn!("{0}", v1); │
00:00:55 #815 [Verbose] > │ { │
00:00:55 #816 [Verbose] > │ let v2: string = │
00:00:55 #817 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:55 #818 [Verbose] > │ string("01"), string("01")); │
00:00:55 #819 [Verbose] > │ () │
00:00:55 #820 [Verbose] > │ } │
00:00:55 #821 [Verbose] > │ } │
00:00:55 #822 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:55 #823 [Verbose] > │ } │
00:00:55 #824 [Verbose] > │ } │
00:00:55 #825 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:55 #826 [Verbose] > │ │
00:00:55 #827 [Verbose] > │ │
00:00:55 #828 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 #829 [Verbose] >
00:00:55 #830 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 #831 [Verbose] > // // test
00:00:55 #832 [Verbose] >
00:00:55 #833 [Verbose] > ()
00:00:56 #834 [Verbose] >
00:00:56 #835 [Verbose] > ╭─[ 539.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:56 #836 [Verbose] > │ let rec method0 () : unit = │
00:00:56 #837 [Verbose] > │ () │
00:00:56 #838 [Verbose] > │ method0() │
00:00:56 #839 [Verbose] > │ │
00:00:56 #840 [Verbose] > │ │
00:00:56 #841 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 #842 [Verbose] > [NbConvertApp] Converting notebook Tasks.dib.ipynb to html
00:00:58 #843 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:58 #844 [Verbose] > validate(nb)
00:00:59 #845 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:59 #846 [Verbose] > return _pygments_highlight(
00:00:59 #847 [Verbose] > [NbConvertApp] Writing 313974 bytes to Tasks.dib.html
00:01:00 #848 [Debug] executeAsync / exitCode: 0 / output.Length: 56712
00:01:00 #849 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: Tasks.dib
00:00:00 #2 [Debug] parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/test/build.ps1" } | Invoke-Block
── pwsh ────────────────────────────────────────────────────────────────────────
. ../../../../scripts/nbs_header.ps1
. ../../../../scripts/core.ps1
── pwsh ────────────────────────────────────────────────────────────────────────
{ . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix)
--execute-command "pwsh -c `"../../../../scripts/invoke-dib.ps1 test.dib`"" } |
Invoke-Block -Retries 5
╭─[ 18.85s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c │
│ "../../../../scripts/invoke-dib.ps1 test.dib"" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = None } │
│ 00:00:04 #3 [Verbose] > │
│ 00:00:04 #4 [Verbose] > ── markdown │
│ ──────────────────────────────────────────────────────────────────── │
│ 00:00:04 #5 [Verbose] > │
│ ╭─────────────────────────────────────────────────────────────────────────── │
│ ───╮ │
│ 00:00:04 #6 [Verbose] > │ # test (Polyglot) │
│ │ │
│ 00:00:04 #7 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:04 #8 [Verbose] > │
│ 00:00:04 #9 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:04 #10 [Verbose] > // // test │
│ 00:00:04 #11 [Verbose] > │
│ 00:00:04 #12 [Verbose] > open testing │
│ 00:00:09 #13 [Verbose] > │
│ 00:00:09 #14 [Verbose] > ╭─[ 4.44s - stdout │
│ ]───────────────────────────────────────────────────────────╮ │
│ 00:00:09 #15 [Verbose] > │ () │
│ │ │
│ 00:00:09 #16 [Verbose] > │ │
│ │
│ │ │
│ 00:00:09 #17 [Verbose] > │ │
│ │
│ │ │
│ 00:00:09 #18 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:09 #19 [Verbose] > │
│ 00:00:09 #20 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:09 #21 [Verbose] > nominal i = () │
│ 00:00:09 #22 [Verbose] > nominal e = () │
│ 00:00:09 #23 [Verbose] > nominal s = () │
│ 00:00:09 #24 [Verbose] > nominal n = () │
│ 00:00:09 #25 [Verbose] > nominal t = () │
│ 00:00:09 #26 [Verbose] > nominal f = () │
│ 00:00:09 #27 [Verbose] > nominal j = () │
│ 00:00:09 #28 [Verbose] > nominal p = () │
│ 00:00:09 #29 [Verbose] > │
│ 00:00:09 #30 [Verbose] > union sensing = │
│ 00:00:09 #31 [Verbose] > | Si : s * i │
│ 00:00:09 #32 [Verbose] > | Se : s * e │
│ 00:00:09 #33 [Verbose] > │
│ 00:00:09 #34 [Verbose] > union intuition = │
│ 00:00:09 #35 [Verbose] > | Ni : n * i │
│ 00:00:09 #36 [Verbose] > | Ne : n * e │
│ 00:00:09 #37 [Verbose] > │
│ 00:00:09 #38 [Verbose] > union thinking = │
│ 00:00:09 #39 [Verbose] > | Ti : t * i │
│ 00:00:09 #40 [Verbose] > | Te : t * e │
│ 00:00:09 #41 [Verbose] > │
│ 00:00:09 #42 [Verbose] > union feeling = │
│ 00:00:09 #43 [Verbose] > | Fi : f * i │
│ 00:00:09 #44 [Verbose] > | Fe : f * e │
│ 00:00:09 #45 [Verbose] > │
│ 00:00:09 #46 [Verbose] > union function_stack = │
│ 00:00:09 #47 [Verbose] > | FS : sensing * intuition * thinking * feeling │
│ 00:00:09 #48 [Verbose] > │
│ 00:00:09 #49 [Verbose] > union personality_type = │
│ 00:00:09 #50 [Verbose] > | ISTJ : i * s * t * j * function_stack │
│ 00:00:09 #51 [Verbose] > | ISFJ : i * s * f * j * function_stack │
│ 00:00:09 #52 [Verbose] > | INFJ : i * n * f * j * function_stack │
│ 00:00:09 #53 [Verbose] > | INTJ : i * n * t * j * function_stack │
│ 00:00:09 #54 [Verbose] > | ISTP : i * s * t * p * function_stack │
│ 00:00:09 #55 [Verbose] > | ISFP : i * s * f * p * function_stack │
│ 00:00:09 #56 [Verbose] > | INFP : i * n * f * p * function_stack │
│ 00:00:09 #57 [Verbose] > | INTP : i * n * t * p * function_stack │
│ 00:00:09 #58 [Verbose] > | ESTP : e * s * t * p * function_stack │
│ 00:00:09 #59 [Verbose] > | ESFP : e * s * f * p * function_stack │
│ 00:00:09 #60 [Verbose] > | ENFP : e * n * f * p * function_stack │
│ 00:00:09 #61 [Verbose] > | ENTP : e * n * t * p * function_stack │
│ 00:00:09 #62 [Verbose] > | ESTJ : e * s * t * j * function_stack │
│ 00:00:09 #63 [Verbose] > | ESFJ : e * s * f * j * function_stack │
│ 00:00:09 #64 [Verbose] > | ENFJ : e * n * f * j * function_stack │
│ 00:00:09 #65 [Verbose] > | ENTJ : e * n * t * j * function_stack │
│ 00:00:09 #66 [Verbose] > │
│ 00:00:09 #67 [Verbose] > │
│ 00:00:09 #68 [Verbose] > inl main () = │
│ 00:00:09 #69 [Verbose] > inl istj_stack = FS ((Si (s, i)), Ne (n, e), │
│ (Te (t, e)), (Fi (f, i))) │
│ 00:00:09 #70 [Verbose] > inl istj_personality = ISTJ (i, s, t, j, │
│ istj_stack) │
│ 00:00:09 #71 [Verbose] > // inl isfj_stack = FS ((Si (s, i)), Ne (n, e), │
│ (Fe (f, e)), (Ti (t, i))) │
│ 00:00:09 #72 [Verbose] > // inl isfj_personality = ISFJ (i, s, f, j, │
│ isfj_stack) │
│ 00:00:09 #73 [Verbose] > │
│ 00:00:09 #74 [Verbose] > ;[[ │
│ 00:00:09 #75 [Verbose] > istj_personality │
│ 00:00:09 #76 [Verbose] > ]] │
│ 00:00:09 #77 [Verbose] > |> fun x => $'$"%A{!x}"' : string │
│ 00:00:09 #78 [Verbose] > |> console.write_line │
│ 00:00:09 #79 [Verbose] > │
│ 00:00:09 #80 [Verbose] > inl main () = │
│ 00:00:09 #81 [Verbose] > $"!main ()" : () │
│ 00:00:10 #82 [Verbose] > │
│ 00:00:10 #83 [Verbose] > ╭─[ 1.57s - stdout │
│ ]───────────────────────────────────────────────────────────╮ │
│ 00:00:10 #84 [Verbose] > │ type [<Struct>] US0 = │
│ │ │
│ 00:00:10 #85 [Verbose] > │ | US0_0 │
│ │ │
│ 00:00:10 #86 [Verbose] > │ | US0_1 │
│ │ │
│ 00:00:10 #87 [Verbose] > │ and [<Struct>] US1 = │
│ │ │
│ 00:00:10 #88 [Verbose] > │ | US1_0 │
│ │ │
│ 00:00:10 #89 [Verbose] > │ | US1_1 │
│ │ │
│ 00:00:10 #90 [Verbose] > │ and [<Struct>] US2 = │
│ │ │
│ 00:00:10 #91 [Verbose] > │ | US2_0 │
│ │ │
│ 00:00:10 #92 [Verbose] > │ | US2_1 │
│ │ │
│ 00:00:10 #93 [Verbose] > │ and [<Struct>] US3 = │
│ │ │
│ 00:00:10 #94 [Verbose] > │ | US3_0 │
│ │ │
│ 00:00:10 #95 [Verbose] > │ | US3_1 │
│ │ │
│ 00:00:10 #96 [Verbose] > │ and [<Struct>] US4 = │
│ │ │
│ 00:00:10 #97 [Verbose] > │ | US4_0 of f0_0 : US0 * f0_1 : US1 * f0_2 : │
│ US2 * f0_3 : US3 │ │
│ 00:00:10 #98 [Verbose] > │ and [<Struct>] US5 = │
│ │ │
│ 00:00:10 #99 [Verbose] > │ | US5_0 of f0_0 : US4 │
│ │ │
│ 00:00:10 #100 [Verbose] > │ | US5_1 of f1_0 : US4 │
│ │ │
│ 00:00:10 #101 [Verbose] > │ | US5_2 of f2_0 : US4 │
│ │ │
│ 00:00:10 #102 [Verbose] > │ | US5_3 of f3_0 : US4 │
│ │ │
│ 00:00:10 #103 [Verbose] > │ | US5_4 of f4_0 : US4 │
│ │ │
│ 00:00:10 #104 [Verbose] > │ | US5_5 of f5_0 : US4 │
│ │ │
│ 00:00:10 #105 [Verbose] > │ | US5_6 of f6_0 : US4 │
│ │ │
│ 00:00:10 #106 [Verbose] > │ | US5_7 of f7_0 : US4 │
│ │ │
│ 00:00:10 #107 [Verbose] > │ | US5_8 of f8_0 : US4 │
│ │ │
│ 00:00:10 #108 [Verbose] > │ | US5_9 of f9_0 : US4 │
│ │ │
│ 00:00:10 #109 [Verbose] > │ | US5_10 of f10_0 : US4 │
│ │ │
│ 00:00:10 #110 [Verbose] > │ | US5_11 of f11_0 : US4 │
│ │ │
│ 00:00:10 #111 [Verbose] > │ | US5_12 of f12_0 : US4 │
│ │ │
│ 00:00:10 #112 [Verbose] > │ | US5_13 of f13_0 : US4 │
│ │ │
│ 00:00:10 #113 [Verbose] > │ | US5_14 of f14_0 : US4 │
│ │ │
│ 00:00:10 #114 [Verbose] > │ | US5_15 of f15_0 : US4 │
│ │ │
│ 00:00:10 #115 [Verbose] > │ let rec method0 (v0 : (US5 [])) : (US5 []) = │
│ │ │
│ 00:00:10 #116 [Verbose] > │ v0 │
│ │ │
│ 00:00:10 #117 [Verbose] > │ and closure0 () () : unit = │
│ │ │
│ 00:00:10 #118 [Verbose] > │ let v0 : US0 = US0_1 │
│ │ │
│ 00:00:10 #119 [Verbose] > │ let v1 : US1 = US1_0 │
│ │ │
│ 00:00:10 #120 [Verbose] > │ let v2 : US2 = US2_0 │
│ │ │
│ 00:00:10 #121 [Verbose] > │ let v3 : US3 = US3_1 │
│ │ │
│ 00:00:10 #122 [Verbose] > │ let v4 : US4 = US4_0(v0, v1, v2, v3) │
│ │ │
│ 00:00:10 #123 [Verbose] > │ let v5 : US5 = US5_14(v4) │
│ │ │
│ 00:00:10 #124 [Verbose] > │ let v6 : (US5 []) = [|v5|] │
│ │ │
│ 00:00:10 #125 [Verbose] > │ let v7 : (US5 []) = method0(v6) │
│ │ │
│ 00:00:10 #126 [Verbose] > │ let v8 : string = $"%A{v7}" │
│ │ │
│ 00:00:10 #127 [Verbose] > │ System.Console.WriteLine v8 │
│ │ │
│ 00:00:10 #128 [Verbose] > │ () │
│ │ │
│ 00:00:10 #129 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
│ │ │
│ 00:00:10 #130 [Verbose] > │ v0 () │
│ │ │
│ 00:00:10 #131 [Verbose] > │ () │
│ │ │
│ 00:00:10 #132 [Verbose] > │ │
│ │
│ │ │
│ 00:00:10 #133 [Verbose] > │ [|US5_14 (US4_0 (US0_1, US1_0, US2_0, US3_1))|] │
│ │ │
│ 00:00:10 #134 [Verbose] > │ │
│ │
│ │ │
│ 00:00:10 #135 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:10 #136 [Verbose] > │
│ 00:00:10 #137 [Verbose] > ── fsharp │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:10 #138 [Verbose] > type PhonologicalFeature = │
│ 00:00:10 #139 [Verbose] > | VowelFeature of │
│ 00:00:10 #140 [Verbose] > height: Height │
│ 00:00:10 #141 [Verbose] > * backness: Backness │
│ 00:00:10 #142 [Verbose] > * roundedness: Roundedness │
│ 00:00:10 #143 [Verbose] > * tone: Option<Tone> │
│ 00:00:10 #144 [Verbose] > * stress: Option<Stress> │
│ 00:00:10 #145 [Verbose] > * length: Option<Length> │
│ 00:00:10 #146 [Verbose] > | ConsonantFeature of │
│ 00:00:10 #147 [Verbose] > place: PlaceOfArticulation │
│ 00:00:10 #148 [Verbose] > * manner: MannerOfArticulation │
│ 00:00:10 #149 [Verbose] > * voicing: Voicing │
│ 00:00:10 #150 [Verbose] > * length: Option<Length> │
│ 00:00:10 #151 [Verbose] > | VowelHarmonyFeature │
│ 00:00:10 #152 [Verbose] > | PitchAccentFeature │
│ 00:00:10 #153 [Verbose] > │
│ 00:00:10 #154 [Verbose] > and Stress = Primary | Secondary │
│ 00:00:10 #155 [Verbose] > and Length = Long | Short | HalfLong │
│ 00:00:10 #156 [Verbose] > │
│ 00:00:10 #157 [Verbose] > and Height = │
│ 00:00:10 #158 [Verbose] > | High | NearHigh | HighMid │
│ 00:00:10 #159 [Verbose] > | Mid | LowMid | NearLow │
│ 00:00:10 #160 [Verbose] > | Low │
│ 00:00:10 #161 [Verbose] > │
│ 00:00:10 #162 [Verbose] > and Backness = Front | Central | Back │
│ 00:00:10 #163 [Verbose] > │
│ 00:00:10 #164 [Verbose] > and Roundedness = Rounded | Unrounded │
│ 00:00:10 #165 [Verbose] > │
│ 00:00:10 #166 [Verbose] > and PlaceOfArticulation = │
│ 00:00:10 #167 [Verbose] > | Bilabial | Labiodental | Dental │
│ 00:00:10 #168 [Verbose] > | Alveolar | Postalveolar | Retroflex │
│ 00:00:10 #169 [Verbose] > | Palatal | Velar | Uvular │
│ 00:00:10 #170 [Verbose] > | Pharyngeal | Epiglottal | Glottal │
│ 00:00:10 #171 [Verbose] > │
│ 00:00:10 #172 [Verbose] > and MannerOfArticulation = │
│ 00:00:10 #173 [Verbose] > | Plosive | Nasal | Trill │
│ 00:00:10 #174 [Verbose] > | TapOrFlap | Fricative | LateralFricative │
│ 00:00:10 #175 [Verbose] > | Approximant | LateralApproximant │
│ 00:00:10 #176 [Verbose] > │
│ 00:00:10 #177 [Verbose] > and Voicing = Voiced | Voiceless │
│ 00:00:10 #178 [Verbose] > │
│ 00:00:10 #179 [Verbose] > and SecondaryArticulation = │
│ 00:00:10 #180 [Verbose] > | Labialization | Palatalization | │
│ Velarization │
│ 00:00:10 #181 [Verbose] > | Pharyngealization | Aspiration │
│ 00:00:10 #182 [Verbose] > │
│ 00:00:10 #183 [Verbose] > and Tone = │
│ 00:00:10 #184 [Verbose] > | LevelTone of int │
│ 00:00:10 #185 [Verbose] > | ContourTone of int list │
│ 00:00:10 #186 [Verbose] > │
│ 00:00:10 #187 [Verbose] > and MorphologicalFeature = │
│ 00:00:10 #188 [Verbose] > | RootFeature of string │
│ 00:00:10 #189 [Verbose] > | AffixFeature of AffixType * string │
│ 00:00:10 #190 [Verbose] > | IncorporationFeature of string * │
│ MorphologicalFeature │
│ 00:00:10 #191 [Verbose] > | NonConcatenativePattern of string * string │
│ 00:00:10 #192 [Verbose] > | AgglutinativeAffixFeature of │
│ AgglutinativeAffixType * string │
│ 00:00:10 #193 [Verbose] > | HonorificFeature of HonorificType * string │
│ 00:00:10 #194 [Verbose] > │
│ 00:00:10 #195 [Verbose] > and AgglutinativeAffixType = Suffix | Prefix │
│ 00:00:10 #196 [Verbose] > │
│ 00:00:10 #197 [Verbose] > and HonorificType = VerbHonorific | NounHonorific │
│ 00:00:10 #198 [Verbose] > │
│ 00:00:10 #199 [Verbose] > and AffixType = │
│ 00:00:10 #200 [Verbose] > | Prefix | Suffix | Infix │
│ 00:00:10 #201 [Verbose] > | Circumfix │
│ 00:00:10 #202 [Verbose] > │
│ 00:00:10 #203 [Verbose] > type SyntacticFeature = │
│ 00:00:10 #204 [Verbose] > | WordFeature of MorphologicalFeature list * │
│ LexicalCategory │
│ 00:00:10 #205 [Verbose] > | PhraseFeature of PhraseType * │
│ SyntacticFeature list │
│ 00:00:10 #206 [Verbose] > | GrammaticalRelation of │
│ GrammaticalRelationType * SyntacticFeature list │
│ 00:00:10 #207 [Verbose] > | SOVOrderFeature │
│ 00:00:10 #208 [Verbose] > | TopicCommentFeature │
│ 00:00:10 #209 [Verbose] > │
│ 00:00:10 #210 [Verbose] > and GrammaticalRelationType = │
│ 00:00:10 #211 [Verbose] > | Ergative | Absolutive | Nominative │
│ 00:00:10 #212 [Verbose] > | Accusative │
│ 00:00:10 #213 [Verbose] > │
│ 00:00:10 #214 [Verbose] > and LexicalCategory = │
│ 00:00:10 #215 [Verbose] > | Noun | Verb | Adjective │
│ 00:00:10 #216 [Verbose] > | Adverb | Pronoun | Preposition │
│ 00:00:10 #217 [Verbose] > | Conjunction | Determiner | Interjection │
│ 00:00:10 #218 [Verbose] > │
│ 00:00:10 #219 [Verbose] > and PhraseType = │
│ 00:00:10 #220 [Verbose] > | NP | VP | AP │
│ 00:00:10 #221 [Verbose] > | PP | CP │
│ 00:00:10 #222 [Verbose] > │
│ 00:00:10 #223 [Verbose] > and SemanticFeature = │
│ 00:00:10 #224 [Verbose] > | Meaning of string │
│ 00:00:10 #225 [Verbose] > | SemanticRole of SemanticRoleType * │
│ SemanticFeature │
│ 00:00:10 #226 [Verbose] > │
│ 00:00:10 #227 [Verbose] > and SemanticRoleType = │
│ 00:00:10 #228 [Verbose] > | Agent | Patient | Instrument │
│ 00:00:10 #229 [Verbose] > | Location | Time | Cause │
│ 00:00:10 #230 [Verbose] > │
│ 00:00:10 #231 [Verbose] > and PragmaticFeature = │
│ 00:00:10 #232 [Verbose] > | UseContext of string │
│ 00:00:10 #233 [Verbose] > | PolitenessLevel of Politeness │
│ 00:00:10 #234 [Verbose] > | SpeechAct of SpeechActType │
│ 00:00:10 #235 [Verbose] > | SpeechLevel of SpeechLevelType │
│ 00:00:10 #236 [Verbose] > │
│ 00:00:10 #237 [Verbose] > and Politeness = Formal | Informal | Neutral │
│ 00:00:10 #238 [Verbose] > │
│ 00:00:10 #239 [Verbose] > and SpeechActType = │
│ 00:00:10 #240 [Verbose] > | Assertive | Directive | Commissive │
│ 00:00:10 #241 [Verbose] > | Expressive | Declarative │
│ 00:00:10 #242 [Verbose] > │
│ 00:00:10 #243 [Verbose] > and SpeechLevelType = │
│ 00:00:10 #244 [Verbose] > | FormalHigh | FormalLow | InformalHigh │
│ 00:00:10 #245 [Verbose] > | InformalLow | Neutral │
│ 00:00:10 #246 [Verbose] > │
│ 00:00:10 #247 [Verbose] > type LinguisticFeature = │
│ 00:00:10 #248 [Verbose] > | Phonological of PhonologicalFeature │
│ 00:00:10 #249 [Verbose] > | Morphological of MorphologicalFeature │
│ 00:00:10 #250 [Verbose] > | Syntactic of SyntacticFeature │
│ 00:00:10 #251 [Verbose] > | Semantic of SemanticFeature │
│ 00:00:10 #252 [Verbose] > | Pragmatic of PragmaticFeature │
│ 00:00:10 #253 [Verbose] > │
│ 00:00:10 #254 [Verbose] > type LanguageConstruct = │
│ 00:00:10 #255 [Verbose] > | LanguageElement of LinguisticFeature │
│ 00:00:10 #256 [Verbose] > | LanguageStructure of LanguageConstruct list │
│ 00:00:10 #257 [Verbose] > | TranslationElement of TranslationFeature │
│ 00:00:10 #258 [Verbose] > │
│ 00:00:10 #259 [Verbose] > and TranslationFeature = │
│ 00:00:10 #260 [Verbose] > | LinkedPhonological of PhonologicalFeature * │
│ PhonologicalFeature │
│ 00:00:10 #261 [Verbose] > | LinkedMorphological of MorphologicalFeature │
│ * MorphologicalFeature │
│ 00:00:10 #262 [Verbose] > | LinkedSyntactic of SyntacticFeature * │
│ SyntacticFeature │
│ 00:00:10 #263 [Verbose] > | LinkedSemantic of SemanticFeature * │
│ SemanticFeature │
│ 00:00:10 #264 [Verbose] > │
│ 00:00:10 #265 [Verbose] > type Discourse = DiscourseUnit of │
│ LanguageConstruct list │
│ 00:00:10 #266 [Verbose] > │
│ 00:00:10 #267 [Verbose] > type LanguageModel = │
│ 00:00:10 #268 [Verbose] > | Model of discourse: Discourse │
│ 00:00:10 #269 [Verbose] > │
│ 00:00:10 #270 [Verbose] > ── fsharp - import │
│ ───────────────────────────────────────────────────────────── │
│ 00:00:10 #271 [Verbose] > #r │
│ 00:00:10 #272 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.A │
│ 00:00:10 #273 [Verbose] > spNetCore.Html.Abstractions.dll" │
│ 00:00:10 #274 [Verbose] > #r │
│ 00:00:10 #275 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:10 #276 [Verbose] > otNet.Interactive.dll" │
│ 00:00:10 #277 [Verbose] > #r │
│ 00:00:10 #278 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:10 #279 [Verbose] > otNet.Interactive.FSharp.dll" │
│ 00:00:10 #280 [Verbose] > #r │
│ 00:00:10 #281 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:10 #282 [Verbose] > otNet.Interactive.Formatting.dll" │
│ 00:00:10 #283 [Verbose] > open System │
│ 00:00:10 #284 [Verbose] > open System.IO │
│ 00:00:10 #285 [Verbose] > open System.Text │
│ 00:00:10 #286 [Verbose] > open Microsoft.DotNet.Interactive.Formatting │
│ 00:00:12 #287 [Verbose] > │
│ 00:00:12 #288 [Verbose] > ── fsharp - import │
│ ───────────────────────────────────────────────────────────── │
│ 00:00:12 #289 [Verbose] > #r │
│ 00:00:12 #290 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:12 #291 [Verbose] > otNet.Interactive.FSharp.dll" │
│ 00:00:12 #292 [Verbose] > open │
│ Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers │
│ 00:00:12 #293 [Verbose] > #r │
│ 00:00:12 #294 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:12 #295 [Verbose] > otNet.Interactive.dll" │
│ 00:00:12 #296 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel │
│ 00:00:12 #297 [Verbose] > │
│ 00:00:12 #298 [Verbose] > ── fsharp - import │
│ ───────────────────────────────────────────────────────────── │
│ 00:00:12 #299 [Verbose] > type PhonologicalFeature = │
│ 00:00:12 #300 [Verbose] > | VowelFeature of │
│ 00:00:12 #301 [Verbose] > height: Height │
│ 00:00:12 #302 [Verbose] > * backness: Backness │
│ 00:00:12 #303 [Verbose] > * roundedness: Roundedness │
│ 00:00:12 #304 [Verbose] > * tone: Option<Tone> │
│ 00:00:12 #305 [Verbose] > * stress: Option<Stress> │
│ 00:00:12 #306 [Verbose] > * length: Option<Length> │
│ 00:00:12 #307 [Verbose] > | ConsonantFeature of │
│ 00:00:12 #308 [Verbose] > place: PlaceOfArticulation │
│ 00:00:12 #309 [Verbose] > * manner: MannerOfArticulation │
│ 00:00:12 #310 [Verbose] > * voicing: Voicing │
│ 00:00:12 #311 [Verbose] > * length: Option<Length> │
│ 00:00:12 #312 [Verbose] > | VowelHarmonyFeature │
│ 00:00:12 #313 [Verbose] > | PitchAccentFeature │
│ 00:00:12 #314 [Verbose] > │
│ 00:00:12 #315 [Verbose] > and Stress = Primary | Secondary │
│ 00:00:12 #316 [Verbose] > and Length = Long | Short | HalfLong │
│ 00:00:12 #317 [Verbose] > │
│ 00:00:12 #318 [Verbose] > and Height = │
│ 00:00:12 #319 [Verbose] > | High | NearHigh | HighMid │
│ 00:00:12 #320 [Verbose] > | Mid | LowMid | NearLow │
│ 00:00:12 #321 [Verbose] > | Low │
│ 00:00:12 #322 [Verbose] > │
│ 00:00:12 #323 [Verbose] > and Backness = Front | Central | Back │
│ 00:00:12 #324 [Verbose] > │
│ 00:00:12 #325 [Verbose] > and Roundedness = Rounded | Unrounded │
│ 00:00:12 #326 [Verbose] > │
│ 00:00:12 #327 [Verbose] > and PlaceOfArticulation = │
│ 00:00:12 #328 [Verbose] > | Bilabial | Labiodental | Dental │
│ 00:00:12 #329 [Verbose] > | Alv... │
│ 00:00:13 #330 [Verbose] > │
│ 00:00:13 #331 [Verbose] > ── fsharp │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:13 #332 [Verbose] > let testEnglish = │
│ 00:00:13 #333 [Verbose] > Model( │
│ 00:00:13 #334 [Verbose] > DiscourseUnit [[ │
│ 00:00:13 #335 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Alveolar, Nasal, │
│ 00:00:13 #336 [Verbose] > Voiced, Some(HalfLong)))); │
│ 00:00:13 #337 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (High, Front, Unrounded, │
│ 00:00:13 #338 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short)))); │
│ 00:00:13 #339 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Low, Front, Unrounded, │
│ 00:00:13 #340 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │
│ 00:00:13 #341 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Velar, Plosive, │
│ 00:00:13 #342 [Verbose] > Voiceless, Some(HalfLong)))); │
│ 00:00:13 #343 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "I")); │
│ 00:00:13 #344 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "see")); │
│ 00:00:13 #345 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "a")); │
│ 00:00:13 #346 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "cat")); │
│ 00:00:13 #347 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:13 #348 [Verbose] > ([[RootFeature "I"]], Pronoun)]]))); │
│ 00:00:13 #349 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (VP, [[WordFeature │
│ 00:00:13 #350 [Verbose] > ([[RootFeature "see"]], Verb)]]))); │
│ 00:00:13 #351 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:13 #352 [Verbose] > ([[RootFeature "a"; RootFeature "cat"]], │
│ Noun)]]))); │
│ 00:00:13 #353 [Verbose] > LanguageElement (Semantic (Meaning │
│ "Perception act of a feline by │
│ 00:00:13 #354 [Verbose] > the speaker")); │
│ 00:00:13 #355 [Verbose] > LanguageElement (Pragmatic (UseContext │
│ "Statement of an action being │
│ 00:00:13 #356 [Verbose] > observed")) │
│ 00:00:13 #357 [Verbose] > ]] │
│ 00:00:13 #358 [Verbose] > ) │
│ 00:00:13 #359 [Verbose] > │
│ 00:00:13 #360 [Verbose] > let testPortuguese = │
│ 00:00:13 #361 [Verbose] > Model( │
│ 00:00:13 #362 [Verbose] > DiscourseUnit [[ │
│ 00:00:13 #363 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (High, Front, Unrounded, │
│ 00:00:13 #364 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short)))); │
│ 00:00:13 #365 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Low, Front, Unrounded, │
│ 00:00:13 #366 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │
│ 00:00:13 #367 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Mid, Back, Rounded, │
│ 00:00:13 #368 [Verbose] > Some(LevelTone 3), Some(Primary), Some(Short)))); │
│ 00:00:13 #369 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Velar, Plosive, │
│ 00:00:13 #370 [Verbose] > Voiceless, Some(HalfLong)))); │
│ 00:00:13 #371 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "Eu")); │
│ 00:00:13 #372 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "ver" |> ignore; │
│ 00:00:13 #373 [Verbose] > AffixFeature (Suffix, "o"))); │
│ 00:00:13 #374 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "um")); │
│ 00:00:13 #375 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "gato")); │
│ 00:00:13 #376 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:13 #377 [Verbose] > ([[RootFeature "Eu"]], Pronoun)]]))); │
│ 00:00:13 #378 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (VP, [[WordFeature │
│ 00:00:13 #379 [Verbose] > ([[RootFeature "vejo"]], Verb)]]))); │
│ 00:00:13 #380 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:13 #381 [Verbose] > ([[RootFeature "um"; RootFeature "gato"]], │
│ Noun)]]))); │
│ 00:00:13 #382 [Verbose] > LanguageElement (Semantic (Meaning │
│ "Ação de percepção de um felino │
│ 00:00:13 #383 [Verbose] > pelo falante")); │
│ 00:00:13 #384 [Verbose] > LanguageElement (Pragmatic (UseContext │
│ "Declaração de uma ação sendo │
│ 00:00:13 #385 [Verbose] > observada")) │
│ 00:00:13 #386 [Verbose] > ]] │
│ 00:00:13 #387 [Verbose] > ) │
│ 00:00:13 #388 [Verbose] > │
│ 00:00:13 #389 [Verbose] > let testKorean = │
│ 00:00:13 #390 [Verbose] > Model( │
│ 00:00:13 #391 [Verbose] > DiscourseUnit [[ │
│ 00:00:13 #392 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Alveolar, Nasal, │
│ 00:00:13 #393 [Verbose] > Voiced, Some(Short)))); │
│ 00:00:13 #394 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (High, Back, Rounded, │
│ 00:00:13 #395 [Verbose] > None, None, Some(Short)))); │
│ 00:00:13 #396 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Mid, Front, Unrounded, │
│ 00:00:13 #397 [Verbose] > None, None, Some(Long)))); │
│ 00:00:13 #398 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Bilabial, Plosive, │
│ 00:00:13 #399 [Verbose] > Voiceless, Some(Short)))); │
│ 00:00:13 #400 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "나")); │
│ 00:00:13 #401 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "보다")); │
│ 00:00:13 #402 [Verbose] > LanguageElement (Morphological │
│ (AffixFeature (Suffix, "아"))); │
│ 00:00:13 #403 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "고양이")); │
│ 00:00:13 #404 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:13 #405 [Verbose] > ([[RootFeature "나"]], Pronoun)]]))); │
│ 00:00:13 #406 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (VP, [[WordFeature │
│ 00:00:13 #407 [Verbose] > ([[RootFeature "보다"; AffixFeature (Suffix, │
│ "아")]], Verb)]]))); │
│ 00:00:13 #408 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:13 #409 [Verbose] > ([[RootFeature "고양이"]], Noun)]]))); │
│ 00:00:13 #410 [Verbose] > LanguageElement (Semantic (Meaning │
│ "화자에 의한 고양이의 관찰 │
│ 00:00:13 #411 [Verbose] > 행위")); │
│ 00:00:13 #412 [Verbose] > LanguageElement (Pragmatic (UseContext │
│ "관찰되고 있는 행동의 진술")) │
│ 00:00:13 #413 [Verbose] > ]] │
│ 00:00:13 #414 [Verbose] > ) │
│ 00:00:13 #415 [Verbose] > │
│ 00:00:13 #416 [Verbose] > ── markdown │
│ ──────────────────────────────────────────────────────────────────── │
│ 00:00:13 #417 [Verbose] > │
│ ╭─────────────────────────────────────────────────────────────────────────── │
│ ───╮ │
│ 00:00:13 #418 [Verbose] > │ ## main │
│ │ │
│ 00:00:13 #419 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:13 #420 [Verbose] > │
│ 00:00:13 #421 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:13 #422 [Verbose] > inl main (_args : array_base string) = │
│ 00:00:13 #423 [Verbose] > 0i32 │
│ 00:00:13 #424 [Verbose] > │
│ 00:00:13 #425 [Verbose] > inl main () = │
│ 00:00:13 #426 [Verbose] > $"let main args = !main args" : () │
│ 00:00:13 #427 [Verbose] > │
│ 00:00:13 #428 [Verbose] > ╭─[ 313.34ms - stdout │
│ ]────────────────────────────────────────────────────────╮ │
│ 00:00:13 #429 [Verbose] > │ let rec closure0 () (v0 : (string [])) : int32 = │
│ │ │
│ 00:00:13 #430 [Verbose] > │ 0 │
│ │ │
│ 00:00:13 #431 [Verbose] > │ let v0 : ((string []) -> int32) = closure0() │
│ │ │
│ 00:00:13 #432 [Verbose] > │ let main args = v0 args │
│ │ │
│ 00:00:13 #433 [Verbose] > │ () │
│ │ │
│ 00:00:13 #434 [Verbose] > │ │
│ │
│ │ │
│ 00:00:13 #435 [Verbose] > │ │
│ │
│ │ │
│ 00:00:13 #436 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:13 #437 [Verbose] > │
│ 00:00:13 #438 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:13 #439 [Verbose] > inl app () = │
│ 00:00:13 #440 [Verbose] > "test" |> console.write_line │
│ 00:00:13 #441 [Verbose] > 0i32 │
│ 00:00:13 #442 [Verbose] > │
│ 00:00:13 #443 [Verbose] > inl main () = │
│ 00:00:13 #444 [Verbose] > print_static "<test>" │
│ 00:00:13 #445 [Verbose] > │
│ 00:00:13 #446 [Verbose] > app │
│ 00:00:13 #447 [Verbose] > |> dyn │
│ 00:00:13 #448 [Verbose] > |> ignore │
│ 00:00:13 #449 [Verbose] > │
│ 00:00:13 #450 [Verbose] > print_static "</test>" │
│ 00:00:13 #451 [Verbose] > │
│ 00:00:13 #452 [Verbose] > ╭─[ 265.06ms - stdout │
│ ]────────────────────────────────────────────────────────╮ │
│ 00:00:13 #453 [Verbose] > │ let rec closure0 () () : int32 = │
│ │ │
│ 00:00:13 #454 [Verbose] > │ let v0 : string = "test" │
│ │ │
│ 00:00:13 #455 [Verbose] > │ System.Console.WriteLine v0 │
│ │ │
│ 00:00:13 #456 [Verbose] > │ 0 │
│ │ │
│ 00:00:13 #457 [Verbose] > │ let v0 : (unit -> int32) = closure0() │
│ │ │
│ 00:00:13 #458 [Verbose] > │ () │
│ │ │
│ 00:00:13 #459 [Verbose] > │ │
│ │
│ │ │
│ 00:00:13 #460 [Verbose] > │ │
│ │
│ │ │
│ 00:00:13 #461 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:16 #462 [Verbose] > [NbConvertApp] Converting notebook test.dib.ipynb │
│ to html │
│ 00:00:16 #463 [Verbose] > │
│ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__ │
│ .py:93: MissingIDFieldWarning: Code cell is missing an id field, this will │
│ become a hard error in future nbformat versions. You may want to use │
│ `normalize()` on your notebooks before validations (available since nbformat │
│ 5.1.4). Previous versions of nbformat are fixing this issue transparently, │
│ and will stop doing so in the future. │
│ 00:00:16 #464 [Verbose] > validate(nb) │
│ 00:00:16 #465 [Verbose] > │
│ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters │
│ \highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on │
│ Python 3 │
│ 00:00:16 #466 [Verbose] > return _pygments_highlight( │
│ 00:00:17 #467 [Verbose] > [NbConvertApp] Writing 321590 bytes to │
│ test.dib.html │
│ 00:00:17 #468 [Debug] executeAsync / exitCode: 0 / output.Length: 19479 │
│ 00:00:17 #469 [Debug] main / executeCommand / exitCode: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
{ . ../../../../apps/parser/dist/DibParser$(GetExecutableSuffix) test.dib spi }
| Invoke-Block
╭─[ 568.99ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] writeDibCode / output: Spi / path: test.dib │
│ 00:00:00 #2 [Debug] parseDibCode / output: Spi / file: test.dib │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
{ . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) --build-file
test.spi test.fsx --timeout 10000 } | Invoke-Block
╭─[ 1.40s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:00 #2 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:00 #3 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:00 #4 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"// // # test (Polyglot)\n\nnominal i = ()\nnominal e │
│ = ()\nnominal s = ()\nnominal n = ()\nnominal t = ()\nnominal f = │
│ ()\nnominal j = ()\nnominal p = ()\n\nunion sensing =\n | Si : s * i\n │
│ | Se : s * e\n\nunion intuition =\n | Ni : n * i\n | Ne : n * │
│ e\n\nunion thinking =\n | Ti : t * i\n | Te : t * e\n\nunion feeling │
│ =\n | Fi : f * i\n | Fe : f * e\n\nunion function_stack =\n | FS : │
│ sensing * intuition * thinking * feeling\n\nunion personality_type =\n | │
│ ISTJ : i * s * t * j * function_stack\n | ISFJ : i * s * f * j * │
│ function_stack\n | INFJ : i * n * f * j * function_stack\n | INTJ : i │
│ * n * t * j * function_stack\n | ISTP : i * s * t * p * function_stack\n │
│ | ISFP : i * s * f * p * function_stack\n | INFP : i * n * f * p * │
│ function_stack\n | INTP : i * n * t * p * function_stack\n | ESTP : e │
│ * s * t * p * function_stack\n | ESFP : e * s * f * p * function_stack\n │
│ | ENFP : e * n * f * p * function_stack\n | ENTP : e * n * t * p * │
│ function_stack\n | ESTJ : e * s * t * j * function_stack\n | ESFJ : e │
│ * s * f * j * function_stack\n | ENFJ : e * n * f * j * function_stack\n │
│ | ENTJ : e * n * t * j * function_stack\n\n\ninl main () =\n inl │
│ istj_stack = FS ((Si (s, i)), Ne (n, e), (Te (t, e)), (Fi (f, i)))\n inl │
│ istj_personality = ISTJ (i, s, t, j, istj_stack)\n // inl isfj_stack = FS │
│ ((Si (s, i)), Ne (n, e), (Fe (f, e)), (Ti (t, i)))\n // inl │
│ isfj_personality = ISFJ (i, s, f, j, isfj_stack)\n\n ;[\n │
│ istj_personality\n ]\n |\u003E fun x =\u003E │
│ $\u0027$\u0022%A{!x}\u0022\u0027 : string\n |\u003E │
│ console.write_line\n\ninl main () =\n $\u0022!main ()\u0022 : ()\n\n// // │
│ ## main\n\ninl main (_args : array_base string) =\n 0i32\n\ninl main () │
│ =\n $\u0022let main args = !main args\u0022 : ()\n\ninl app () =\n │
│ \u0022test\u0022 |\u003E console.write_line\n 0i32\n\ninl main () =\n │
│ print_static \u0022\u003Ctest\u003E\u0022\n\n app\n |\u003E dyn\n │
│ |\u003E ignore\n\n print_static │
│ \u0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polyglot/apps/sp │
│ iral/temp/test/test.spi"}} / result.Length: │
│ 00:00:00 #5 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │
│ iral/temp/test/test.spi"}} / result.Length: │
│ 00:00:00 #6 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec │
│ closure0 () () : int32 = │
│ let v0 : string = "test" │
│ System.Console.WriteLine v0 │
│ 0 │
│ let v0 : (unit -> int32) = closure0() │
│ () │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:00 #7 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
dotnet fable --optimize --lang rs --extension .rs
╭─[ 3.25s - stdout ]───────────────────────────────────────────────────────────╮
│ Fable 4.14.0: F# to Rust compiler (status: alpha) │
│ │
│ Thanks to the contributor! @JacobChang │
│ Stand with Ukraine! https://standwithukraine.com.ua/ │
│ │
│ Parsing test.fsproj... │
│ Retrieving project options from cache, in case of issues run `dotnet fable │
│ clean` or try `--noCache` option. │
│ Project and references (1 source files) parsed in 191ms │
│ │
│ Started Fable compilation... │
│ │
│ Fable compilation finished in 1449ms │
│ │
│ .\test.fsx(6,0): (6,2) warning FABLE: For Rust, support for F# static and │
│ module do bindings is disabled by default. It can be enabled with the │
│ 'static_do_bindings' feature. Use at your own risk! │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
(Get-Content test.rs) `
-replace [[regex]]::Escape("),);"), "));" `
| Set-Content test.rs
── pwsh ────────────────────────────────────────────────────────────────────────
cargo fmt --
── pwsh ────────────────────────────────────────────────────────────────────────
cargo build --release
╭─[ 12.41s - stdout ]──────────────────────────────────────────────────────────╮
│ Compiling spiral_temp_test v0.0.1 │
│ (C:\home\git\polyglot\apps\spiral\temp\test) │
│ warning: the item `any` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:27 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `any` is already imported here │
│ | │
│ = note: `#[warn(unused_imports)]` on by default │
│ │
│ warning: the item `Arbitrary` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:32 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^^^^^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `Arbitrary` is already imported │
│ here │
│ │
│ warning: unused import: `info` │
│ --> apps\spiral\temp\test\./main.rs:190:15 │
│ | │
│ 190 | use tracing::{info, Level}; │
│ | ^^^^ │
│ │
│ warning: associated items `new`, `add_item`, and `remove_item` are │
│ never used │
│ --> apps\spiral\temp\test\./main.rs:46:8 │
│ | │
│ 45 | impl Cart { │
│ | --------- associated items in this implementation │
│ 46 | fn new() -> Cart { │
│ | ^^^ │
│ ... │
│ 50 | fn add_item(&mut self, item: Item) { │
│ | ^^^^^^^^ │
│ ... │
│ 56 | fn remove_item(&mut self, item: &Item) { │
│ | ^^^^^^^^^^^ │
│ | │
│ = note: `#[warn(dead_code)]` on by default │
│ │
│ warning: function `parse_comment` is never used │
│ --> apps\spiral\temp\test\./main.rs:124:4 │
│ | │
│ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_string` is never used │
│ --> apps\spiral\temp\test\./main.rs:130:4 │
│ | │
│ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^ │
│ │
│ warning: function `parse_identifier` is never used │
│ --> apps\spiral\temp\test\./main.rs:145:4 │
│ | │
│ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[ │
│ 0m │
│ | ^^^^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_integer` is never used │
│ --> apps\spiral\temp\test\./main.rs:157:4 │
│ | │
│ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_operator` is never used │
│ --> apps\spiral\temp\test\./main.rs:165:4 │
│ | │
│ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_token` is never used │
│ --> apps\spiral\temp\test\./main.rs:170:4 │
│ | │
│ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^ │
│ │
│ warning: function `format_token` is never used │
│ --> apps\spiral\temp\test\./main.rs:180:4 │
│ | │
│ 180 | fn format_token(token: &SpiralToken) -> String { │
│ | ^^^^^^^^^^^^ │
│ │
│ warning: function `parse_expression` is never used │
│ --> apps\spiral\temp\test\./main.rs:213:4 │
│ | │
│ 213 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[ │
│ 0m │
│ | ^^^^^^^^^^^^^^^^ │
│ │
│ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 12 │
│ warnings (run `cargo fix --bin "spiral_temp_test"` to apply 1 suggestion) │
│ Finished `release` profile [optimized] target(s) in 12.21s │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
$env:RUST_LOG="info"
{ cargo test --release } | Invoke-Block
╭─[ 24.62s - stdout ]──────────────────────────────────────────────────────────╮
│ Compiling spiral_temp_test v0.0.1 │
│ (C:\home\git\polyglot\apps\spiral\temp\test) │
│ warning: the item `any` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:27 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `any` is already imported here │
│ | │
│ = note: `#[warn(unused_imports)]` on by default │
│ │
│ warning: the item `Arbitrary` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:32 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^^^^^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `Arbitrary` is already imported │
│ here │
│ │
│ warning: `spiral_temp_test` (bin "spiral_temp_test" test) generated 2 │
│ warnings │
│ Finished `release` profile [optimized] target(s) in 24.11s │
│ Running unittests main.rs │
│ (C:\home\git\polyglot\target\release\deps\spiral_temp_test-0f3f76a0f233bf3e. │
│ exe) │
│ │
│ running 3 tests │
│ test test_parse_number ... ok │
│ 2024-03-29T14:04:14.765341Z INFO spiral_temp_test: │
│ input=Comment("$\"|[YMo=%:]$d{/=J(*pD\"$!<") │
│ 2024-03-29T14:04:14.765493Z INFO spiral_temp_test: │
│ input=Comment("%b1:/ZU&\"S:y'_\\\":\" `HZDF@bZ!?:y") │
│ 2024-03-29T14:04:14.765655Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.765764Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.765852Z INFO spiral_temp_test: │
│ input=StringLiteral("]4Z6") │
│ 2024-03-29T14:04:14.765908Z INFO spiral_temp_test: │
│ input=Integer(-7012090437188085356) │
│ 2024-03-29T14:04:14.766026Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.766072Z INFO spiral_temp_test: │
│ input=Integer(5527381534306384645) │
│ 2024-03-29T14:04:14.766149Z INFO spiral_temp_test: │
│ input=StringLiteral("?_Lv?&:R; +fJ`5::dy%Jn{7dv:'?n") │
│ 2024-03-29T14:04:14.766259Z INFO spiral_temp_test: │
│ input=StringLiteral("=,'1'zN^8w&^/li.") │
│ 2024-03-29T14:04:14.766339Z INFO spiral_temp_test: │
│ input=Comment(":$<\"10Lv~Ch%&!\\y!B{") │
│ 2024-03-29T14:04:14.766389Z INFO spiral_temp_test: │
│ input=Integer(2281375400307558491) │
│ 2024-03-29T14:04:14.766546Z INFO spiral_temp_test: │
│ input=Identifier("i23711e25m8Q0aJv27i5T12V3x6r6C") │
│ 2024-03-29T14:04:14.766627Z INFO spiral_temp_test: │
│ input=Comment("c*ff\\E`AkUhX{") │
│ 2024-03-29T14:04:14.766688Z INFO spiral_temp_test: │
│ input=Identifier("Ps4ahUsHwQ07vIP420") │
│ 2024-03-29T14:04:14.766770Z INFO spiral_temp_test: │
│ input=Comment("%{W'&c M!M\\1") │
│ 2024-03-29T14:04:14.766851Z INFO spiral_temp_test: │
│ input=StringLiteral("YQ6&6.8?mVu|") │
│ 2024-03-29T14:04:14.766915Z INFO spiral_temp_test: │
│ input=StringLiteral("UQ*&<%3N]^E^tJ:d!Ik'VvN") │
│ 2024-03-29T14:04:14.766969Z INFO spiral_temp_test: │
│ input=StringLiteral("?#Ms.^<iQkO=") │
│ 2024-03-29T14:04:14.767008Z INFO spiral_temp_test: │
│ input=Integer(-2039788803592976831) │
│ 2024-03-29T14:04:14.767063Z INFO spiral_temp_test: │
│ input=Identifier("omYuFY7hNqm59luwmec2zbFrZAH7XX") │
│ 2024-03-29T14:04:14.767122Z INFO spiral_temp_test: │
│ input=Identifier("NWo7EGoc5o2HIFUo7jXpqF8KH") │
│ 2024-03-29T14:04:14.767189Z INFO spiral_temp_test: │
│ input=StringLiteral(":z}'oM%VXZb%D8/jy}H{*=%pT'x3d") │
│ 2024-03-29T14:04:14.767256Z INFO spiral_temp_test: │
│ input=StringLiteral("BPG/0=*o<i0AaHi]LK]GeSp<%XhRyk%") │
│ 2024-03-29T14:04:14.767305Z INFO spiral_temp_test: │
│ input=Identifier("VNFW") │
│ 2024-03-29T14:04:14.767389Z INFO spiral_temp_test: │
│ input=StringLiteral("*5@={t.e;)?l>XX<b$=v{NQ") │
│ 2024-03-29T14:04:14.767440Z INFO spiral_temp_test: │
│ input=StringLiteral("r?Y=TF") │
│ 2024-03-29T14:04:14.767533Z INFO spiral_temp_test: │
│ input=Identifier("V519EIRcncPK8BHcel0rPq2zV") │
│ 2024-03-29T14:04:14.767586Z INFO spiral_temp_test: │
│ input=Identifier("gaElhW0TRZbVCA") │
│ 2024-03-29T14:04:14.767635Z INFO spiral_temp_test: │
│ input=Comment("6?*|%=*Qv%a&Y") │
│ 2024-03-29T14:04:14.767673Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.767732Z INFO spiral_temp_test: │
│ input=Comment("7}I-cJ=o<c,S?\"$LdJ'$/ !u\"%.|E") │
│ 2024-03-29T14:04:14.767780Z INFO spiral_temp_test: │
│ input=StringLiteral("Aq") │
│ 2024-03-29T14:04:14.767827Z INFO spiral_temp_test: │
│ input=Identifier("MbFfKxy542Ag7JQoRyz") │
│ 2024-03-29T14:04:14.767891Z INFO spiral_temp_test: │
│ input=Identifier("GOp4X8") │
│ 2024-03-29T14:04:14.767993Z INFO spiral_temp_test: │
│ input=StringLiteral("UT*") │
│ 2024-03-29T14:04:14.768085Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-29T14:04:14.768148Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.768209Z INFO spiral_temp_test: │
│ input=Comment("G\\P&'S{\\R=;X/[ \\X_=/*k':[Y?]J~ax") │
│ 2024-03-29T14:04:14.768256Z INFO spiral_temp_test: │
│ input=StringLiteral("o/") │
│ 2024-03-29T14:04:14.768294Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.768358Z INFO spiral_temp_test: │
│ input=Identifier("zHMh3HNmezWQ") │
│ 2024-03-29T14:04:14.768419Z INFO spiral_temp_test: │
│ input=Comment("m%X/\"9$sy;*'I\"PQ=D]iRuxV2i.8") │
│ 2024-03-29T14:04:14.768482Z INFO spiral_temp_test: │
│ input=Integer(5585265764055560912) │
│ 2024-03-29T14:04:14.768574Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.768643Z INFO spiral_temp_test: │
│ input=StringLiteral("?%YV-(") │
│ 2024-03-29T14:04:14.768706Z INFO spiral_temp_test: │
│ input=Comment("AQ>d.{!k{\").#B\\''%=(a0N&0duU:") │
│ 2024-03-29T14:04:14.768765Z INFO spiral_temp_test: │
│ input=Identifier("JaVTJ2ed4WILyS6QXhb") │
│ 2024-03-29T14:04:14.768823Z INFO spiral_temp_test: │
│ input=Comment("IzvqYtB#/?0{-?th'/9PB:#^{") │
│ 2024-03-29T14:04:14.768868Z INFO spiral_temp_test: │
│ input=Integer(3003869115396047789) │
│ 2024-03-29T14:04:14.768910Z INFO spiral_temp_test: │
│ input=Identifier("cx67PAsUo03Mj") │
│ 2024-03-29T14:04:14.769005Z INFO spiral_temp_test: │
│ input=Identifier("X2Sa9GUmWLPM8HFCVeTx8yKM86PG") │
│ 2024-03-29T14:04:14.769049Z INFO spiral_temp_test: │
│ input=Integer(6951439865368526298) │
│ 2024-03-29T14:04:14.769092Z INFO spiral_temp_test: │
│ input=Comment("$S{r.$") │
│ 2024-03-29T14:04:14.769158Z INFO spiral_temp_test: │
│ input=Integer(3271397971915525444) │
│ 2024-03-29T14:04:14.769234Z INFO spiral_temp_test: │
│ input=Comment("n?BAh/&{<_x*Omv2[=`:c") │
│ 2024-03-29T14:04:14.769293Z INFO spiral_temp_test: │
│ input=StringLiteral("*'`L96Nd{y;J") │
│ 2024-03-29T14:04:14.769348Z INFO spiral_temp_test: │
│ input=Comment("O/tzkt/p.k6b@4:") │
│ 2024-03-29T14:04:14.769427Z INFO spiral_temp_test: │
│ input=StringLiteral("S{`~$nW +s4#=Zh{Q*cg{mLbEq:hY") │
│ 2024-03-29T14:04:14.769543Z INFO spiral_temp_test: │
│ input=StringLiteral("'TV9={y$t+8f|Tb?.jf8") │
│ 2024-03-29T14:04:14.769658Z INFO spiral_temp_test: │
│ input=Comment("`hU<\\${Cu\"s}=w=aI'$J>pV0flqa/F") │
│ 2024-03-29T14:04:14.769729Z INFO spiral_temp_test: │
│ input=StringLiteral(":w%pbTJ$Jy%)Bg/") │
│ 2024-03-29T14:04:14.769801Z INFO spiral_temp_test: │
│ input=Identifier("Lo067I21mJnIIgP04T7N0aF") │
│ 2024-03-29T14:04:14.769880Z INFO spiral_temp_test: │
│ input=StringLiteral("b`M;]{qHW{`Fpx?d&:={$l<1&(//r") │
│ 2024-03-29T14:04:14.769951Z INFO spiral_temp_test: │
│ input=Identifier("UUU8Q6n44JJ55IV0NawCn5") │
│ 2024-03-29T14:04:14.770009Z INFO spiral_temp_test: │
│ input=Comment("<&:w_**%") │
│ 2024-03-29T14:04:14.770063Z INFO spiral_temp_test: │
│ input=Integer(-3696931292863096519) │
│ 2024-03-29T14:04:14.770133Z INFO spiral_temp_test: │
│ input=StringLiteral("t::=;x%dE*m$ n|dfo.") │
│ 2024-03-29T14:04:14.770217Z INFO spiral_temp_test: │
│ input=Comment("m!!M9-*ejI$+,!dV?`<=+:cO$%OF") │
│ 2024-03-29T14:04:14.770288Z INFO spiral_temp_test: │
│ input=StringLiteral("`[`?=tEj+sBYFfZDS") │
│ 2024-03-29T14:04:14.770349Z INFO spiral_temp_test: │
│ input=StringLiteral("=") │
│ 2024-03-29T14:04:14.770424Z INFO spiral_temp_test: │
│ input=Identifier("Ha3pWJ9wuEGYw7xl4pGiOCZxf") │
│ 2024-03-29T14:04:14.770499Z INFO spiral_temp_test: │
│ input=StringLiteral("tS&N$9?<~=D,eUI??5Fn%)5)") │
│ 2024-03-29T14:04:14.770683Z INFO spiral_temp_test: │
│ input=Comment("%L&A0^jzg/?NLA3G2)JMt+J#H.e") │
│ 2024-03-29T14:04:14.770736Z INFO spiral_temp_test: │
│ input=Integer(-4125076439093173999) │
│ 2024-03-29T14:04:14.770783Z INFO spiral_temp_test: │
│ input=Comment("\"V#:d<i-b*u-?\\") │
│ 2024-03-29T14:04:14.770876Z INFO spiral_temp_test: │
│ input=Identifier("Vow3Tht4np2k62AghsBa") │
│ 2024-03-29T14:04:14.770930Z INFO spiral_temp_test: │
│ input=Integer(-5846299802526600085) │
│ 2024-03-29T14:04:14.770990Z INFO spiral_temp_test: │
│ input=Identifier("S0daRk8Rv3rmX05wxo6rBe0742") │
│ 2024-03-29T14:04:14.771037Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.771088Z INFO spiral_temp_test: │
│ input=Comment("{\"\\$> '\\['sT/\\g]oRi") │
│ 2024-03-29T14:04:14.771145Z INFO spiral_temp_test: │
│ input=Comment("c !5.iW,/%h41K`8;") │
│ 2024-03-29T14:04:14.771189Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.771226Z INFO spiral_temp_test: │
│ input=Integer(-1186910644468858002) │
│ 2024-03-29T14:04:14.771288Z INFO spiral_temp_test: │
│ input=Identifier("qyWxG3vf2Nvpnu59GEl0T") │
│ 2024-03-29T14:04:14.771343Z INFO spiral_temp_test: │
│ input=StringLiteral("") │
│ 2024-03-29T14:04:14.771394Z INFO spiral_temp_test: │
│ input=Comment("<?}7;&/W{") │
│ 2024-03-29T14:04:14.771473Z INFO spiral_temp_test: │
│ input=StringLiteral("&Qc| &c4rc(Cv;WCU'UO/]O!=7%") │
│ 2024-03-29T14:04:14.771525Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.771565Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.771604Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.771647Z INFO spiral_temp_test: │
│ input=StringLiteral("L") │
│ 2024-03-29T14:04:14.771710Z INFO spiral_temp_test: │
│ input=Identifier("N99imbSgvOWBLKN9VEHXI63pJ5uOQ1GEr") │
│ 2024-03-29T14:04:14.771777Z INFO spiral_temp_test: │
│ input=StringLiteral("/%$W`UDoPf-.Z~<Y.t0#}Z") │
│ 2024-03-29T14:04:14.771831Z INFO spiral_temp_test: │
│ input=StringLiteral("{X1U{Dz") │
│ 2024-03-29T14:04:14.771878Z INFO spiral_temp_test: │
│ input=StringLiteral("{V5./<agoU+$") │
│ 2024-03-29T14:04:14.771943Z INFO spiral_temp_test: │
│ input=Comment("=*7\\`\"Xe\\`B97|.KD'=/|`/?%vNUuL") │
│ 2024-03-29T14:04:14.772006Z INFO spiral_temp_test: │
│ input=StringLiteral("3H$$&7al3tj!^`*pi8&") │
│ 2024-03-29T14:04:14.772048Z INFO spiral_temp_test: │
│ input=Integer(1411021388613681821) │
│ 2024-03-29T14:04:14.772108Z INFO spiral_temp_test: │
│ input=Comment("QR%h'\\.''9&'$v%T= 7.1^%dN~%7,{1") │
│ 2024-03-29T14:04:14.772180Z INFO spiral_temp_test: │
│ input=Comment(")pECx]eh: $87>*sVbx%: <`") │
│ 2024-03-29T14:04:14.772227Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.772289Z INFO spiral_temp_test: │
│ input=StringLiteral("$.wm2{?uCg% &+") │
│ 2024-03-29T14:04:14.772344Z INFO spiral_temp_test: │
│ input=StringLiteral("l{R") │
│ 2024-03-29T14:04:14.772400Z INFO spiral_temp_test: │
│ input=Comment("atcXc*#7Q4%+`&[OP<{Dtt#?/") │
│ 2024-03-29T14:04:14.772469Z INFO spiral_temp_test: │
│ input=Comment("OU=9#{h$P6/kd*\"@?,h:/HB&T3;") │
│ 2024-03-29T14:04:14.772532Z INFO spiral_temp_test: │
│ input=StringLiteral("21NOh4oJY1Z}r+W+/'Y$|:?x") │
│ 2024-03-29T14:04:14.772602Z INFO spiral_temp_test: │
│ input=Identifier("Be8pb902y3B25GU1g42iVr28nn5oEC") │
│ 2024-03-29T14:04:14.772655Z INFO spiral_temp_test: │
│ input=Comment("CS{O.Q") │
│ 2024-03-29T14:04:14.772699Z INFO spiral_temp_test: │
│ input=StringLiteral("nR") │
│ 2024-03-29T14:04:14.772752Z INFO spiral_temp_test: │
│ input=Identifier("bcKH6OcZDINDQpW4LElr") │
│ 2024-03-29T14:04:14.772792Z INFO spiral_temp_test: │
│ input=Integer(2182521702231019772) │
│ 2024-03-29T14:04:14.772831Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.772867Z INFO spiral_temp_test: │
│ input=Integer(1553576556474512911) │
│ 2024-03-29T14:04:14.772910Z INFO spiral_temp_test: │
│ input=Identifier("EWaF4v") │
│ 2024-03-29T14:04:14.772973Z INFO spiral_temp_test: │
│ input=Comment("=?do!+\"#w3=>'=.'DA_.'p.Ry]?*") │
│ 2024-03-29T14:04:14.773017Z INFO spiral_temp_test: │
│ input=Integer(-6761950508812593700) │
│ 2024-03-29T14:04:14.773128Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.773174Z INFO spiral_temp_test: │
│ input=Integer(-2827803400698312596) │
│ 2024-03-29T14:04:14.773233Z INFO spiral_temp_test: │
│ input=Comment("z\"[)'v`.\"#/KU") │
│ 2024-03-29T14:04:14.773331Z INFO spiral_temp_test: │
│ input=Comment("X") │
│ 2024-03-29T14:04:14.773409Z INFO spiral_temp_test: │
│ input=Identifier("Gz9133kdl1XdjSl6fX6LZqOuWxWCYRt4c") │
│ 2024-03-29T14:04:14.773476Z INFO spiral_temp_test: │
│ input=StringLiteral("$J.%;nQz2Q;M7+@yk{#") │
│ 2024-03-29T14:04:14.773534Z INFO spiral_temp_test: │
│ input=StringLiteral("8]{{;") │
│ 2024-03-29T14:04:14.773588Z INFO spiral_temp_test: │
│ input=StringLiteral("E+'<:v") │
│ 2024-03-29T14:04:14.773654Z INFO spiral_temp_test: │
│ input=StringLiteral("/*b$&J,{@?*'J.=V<u<%?x:TI{=8m`") │
│ 2024-03-29T14:04:14.773686Z INFO spiral_temp_test: │
│ input=Integer(109920169867838617) │
│ 2024-03-29T14:04:14.773719Z INFO spiral_temp_test: │
│ input=Integer(-2357253673127903813) │
│ 2024-03-29T14:04:14.773764Z INFO spiral_temp_test: │
│ input=Integer(3388490358589687214) │
│ 2024-03-29T14:04:14.773791Z INFO spiral_temp_test: │
│ input=Integer(8062887167776946011) │
│ 2024-03-29T14:04:14.773849Z INFO spiral_temp_test: │
│ input=Identifier("HJ3DY86RR2g50g36jvgiJ9a") │
│ 2024-03-29T14:04:14.773899Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.773938Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.773987Z INFO spiral_temp_test: │
│ input=Comment("1=<Ixnz7@P") │
│ 2024-03-29T14:04:14.774054Z INFO spiral_temp_test: │
│ input=Comment("n$?&+n~*x13<b\\'7Vk3*]Bzak$h.'") │
│ 2024-03-29T14:04:14.774102Z INFO spiral_temp_test: │
│ input=Identifier("YmHDRW") │
│ 2024-03-29T14:04:14.774153Z INFO spiral_temp_test: │
│ input=Identifier("OdMQDVnFvCY3oSiZXR") │
│ 2024-03-29T14:04:14.774202Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.774254Z INFO spiral_temp_test: │
│ input=Comment("F:P/l8[") │
│ 2024-03-29T14:04:14.774321Z INFO spiral_temp_test: │
│ input=Identifier("F8ftc2zg2ocXjL2ezOju04rSM9r9") │
│ 2024-03-29T14:04:14.774384Z INFO spiral_temp_test: │
│ input=Identifier("dF61ijmiFSpi859gyjk") │
│ 2024-03-29T14:04:14.774438Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.774490Z INFO spiral_temp_test: │
│ input=Comment("9O=f/8)n/E5/.>['+") │
│ 2024-03-29T14:04:14.774563Z INFO spiral_temp_test: │
│ input=StringLiteral(">?=a3Jr{p'<$JU:/Zv{7*S3|&'XHNP") │
│ 2024-03-29T14:04:14.774627Z INFO spiral_temp_test: │
│ input=StringLiteral("']5+*t`20'uw7") │
│ 2024-03-29T14:04:14.774671Z INFO spiral_temp_test: │
│ input=Comment("") │
│ 2024-03-29T14:04:14.774709Z INFO spiral_temp_test: │
│ input=Integer(3941634860738557015) │
│ 2024-03-29T14:04:14.774768Z INFO spiral_temp_test: │
│ input=StringLiteral("0`NRI") │
│ 2024-03-29T14:04:14.774835Z INFO spiral_temp_test: │
│ input=StringLiteral("TsFZ??q'&]") │
│ 2024-03-29T14:04:14.774937Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.774998Z INFO spiral_temp_test: │
│ input=Identifier("NW6D2Nz5z1j6Ma66t") │
│ 2024-03-29T14:04:14.775057Z INFO spiral_temp_test: │
│ input=Integer(6002146667760357375) │
│ 2024-03-29T14:04:14.775109Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.775207Z INFO spiral_temp_test: │
│ input=StringLiteral("a'e5O8M") │
│ 2024-03-29T14:04:14.775300Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-29T14:04:14.775345Z INFO spiral_temp_test: │
│ input=Integer(-3125261027128902381) │
│ 2024-03-29T14:04:14.775395Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.775463Z INFO spiral_temp_test: │
│ input=StringLiteral("%rQl2:[:c:~<=M~P`>:k%") │
│ 2024-03-29T14:04:14.775523Z INFO spiral_temp_test: │
│ input=Identifier("gZMh") │
│ 2024-03-29T14:04:14.775578Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.775642Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-29T14:04:14.775698Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-29T14:04:14.775753Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.775814Z INFO spiral_temp_test: │
│ input=Identifier("IF5o3") │
│ 2024-03-29T14:04:14.775870Z INFO spiral_temp_test: │
│ input=Integer(-2453306915121681550) │
│ 2024-03-29T14:04:14.775908Z INFO spiral_temp_test: │
│ input=Integer(-8404593061930173939) │
│ 2024-03-29T14:04:14.775955Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.776006Z INFO spiral_temp_test: │
│ input=StringLiteral("~") │
│ 2024-03-29T14:04:14.776078Z INFO spiral_temp_test: │
│ input=Comment("yk:\"/\"[6_W:][G'k}At.") │
│ 2024-03-29T14:04:14.776140Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.776236Z INFO spiral_temp_test: │
│ input=Identifier("tnHlE38w") │
│ 2024-03-29T14:04:14.776289Z INFO spiral_temp_test: │
│ input=Comment(";bzB") │
│ 2024-03-29T14:04:14.776340Z INFO spiral_temp_test: │
│ input=Integer(7284944789865380032) │
│ 2024-03-29T14:04:14.776388Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.776441Z INFO spiral_temp_test: │
│ input=Comment("b}$,.$\\>.{0@=q/w") │
│ 2024-03-29T14:04:14.776490Z INFO spiral_temp_test: │
│ input=Identifier("s6I0") │
│ 2024-03-29T14:04:14.776529Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.776582Z INFO spiral_temp_test: │
│ input=Integer(9124527624836578835) │
│ 2024-03-29T14:04:14.776653Z INFO spiral_temp_test: │
│ input=StringLiteral("cw^&~$p%7;WFJu$/S'P") │
│ 2024-03-29T14:04:14.776709Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.776766Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.776822Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.776865Z INFO spiral_temp_test: │
│ input=Integer(-4746167785332276463) │
│ 2024-03-29T14:04:14.776909Z INFO spiral_temp_test: │
│ input=Integer(4924894854270464366) │
│ 2024-03-29T14:04:14.776955Z INFO spiral_temp_test: │
│ input=Integer(6794691678712125680) │
│ 2024-03-29T14:04:14.777002Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.777058Z INFO spiral_temp_test: │
│ input=Comment("{\"5IQ,xG%PnBk") │
│ 2024-03-29T14:04:14.777124Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-29T14:04:14.777187Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.777247Z INFO spiral_temp_test: │
│ input=StringLiteral("a.") │
│ 2024-03-29T14:04:14.777300Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.777376Z INFO spiral_temp_test: │
│ input=Integer(2105036705544971949) │
│ 2024-03-29T14:04:14.777463Z INFO spiral_temp_test: │
│ input=Comment("d/4^JeK") │
│ 2024-03-29T14:04:14.777510Z INFO spiral_temp_test: │
│ input=Integer(6293947000864019468) │
│ 2024-03-29T14:04:14.777560Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-29T14:04:14.777612Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.777644Z INFO spiral_temp_test: │
│ input=Integer(8816529402992664743) │
│ 2024-03-29T14:04:14.777685Z INFO spiral_temp_test: │
│ input=Integer(-3385093014722106930) │
│ 2024-03-29T14:04:14.777759Z INFO spiral_temp_test: │
│ input=Comment("nk*\"\"Td=J$$[|;sTXXOZ:g") │
│ 2024-03-29T14:04:14.777827Z INFO spiral_temp_test: │
│ input=StringLiteral("hF/.V`xpcT@%") │
│ 2024-03-29T14:04:14.777893Z INFO spiral_temp_test: │
│ input=Identifier("qbNCzx") │
│ 2024-03-29T14:04:14.777966Z INFO spiral_temp_test: │
│ input=Identifier("F77JWg1174Ad4SpwzxxYShDFm") │
│ 2024-03-29T14:04:14.778024Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-29T14:04:14.778062Z INFO spiral_temp_test: │
│ input=StringLiteral("$}wm%ixa") │
│ 2024-03-29T14:04:14.778117Z INFO spiral_temp_test: │
│ input=StringLiteral("$?*:Akx`'&l!:E") │
│ 2024-03-29T14:04:14.778183Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.778247Z INFO spiral_temp_test: │
│ input=StringLiteral("]{-FJ~ 6m`!Y/)X^") │
│ 2024-03-29T14:04:14.778410Z INFO spiral_temp_test: │
│ input=Integer(1757990129546591474) │
│ 2024-03-29T14:04:14.778463Z INFO spiral_temp_test: │
│ input=Comment("z\\!") │
│ 2024-03-29T14:04:14.778514Z INFO spiral_temp_test: │
│ input=Identifier("lrvYoo4JlzE8opT") │
│ 2024-03-29T14:04:14.778573Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.778619Z INFO spiral_temp_test: │
│ input=StringLiteral("tb%G~") │
│ 2024-03-29T14:04:14.778674Z INFO spiral_temp_test: │
│ input=StringLiteral("%/:x_snF}<+*a:i&*+9") │
│ 2024-03-29T14:04:14.778711Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-29T14:04:14.778753Z INFO spiral_temp_test: │
│ input=Identifier("oT2u263xXE0") │
│ 2024-03-29T14:04:14.778814Z INFO spiral_temp_test: │
│ input=Comment("Ps6`j5") │
│ 2024-03-29T14:04:14.778850Z INFO spiral_temp_test: │
│ input=Integer(3672773705116073837) │
│ 2024-03-29T14:04:14.778879Z INFO spiral_temp_test: │
│ input=Integer(-2735898168553747155) │
│ 2024-03-29T14:04:14.778924Z INFO spiral_temp_test: │
│ input=Identifier("QcsAS35R2rYTRUk4O5W") │
│ 2024-03-29T14:04:14.778969Z INFO spiral_temp_test: │
│ input=StringLiteral("'1]8 sd%") │
│ 2024-03-29T14:04:14.779011Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.779051Z INFO spiral_temp_test: │
│ input=Identifier("EsEe") │
│ 2024-03-29T14:04:14.779093Z INFO spiral_temp_test: │
│ input=StringLiteral("hI$*3f*j%!U01") │
│ 2024-03-29T14:04:14.779139Z INFO spiral_temp_test: │
│ input=Comment("Qob&m/ML7") │
│ 2024-03-29T14:04:14.779172Z INFO spiral_temp_test: │
│ input=Integer(-3875689342598786796) │
│ 2024-03-29T14:04:14.779215Z INFO spiral_temp_test: │
│ input=Comment("*<%Nj\"0=@S'<Hq") │
│ 2024-03-29T14:04:14.779252Z INFO spiral_temp_test: │
│ input=Comment("M") │
│ 2024-03-29T14:04:14.779287Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-29T14:04:14.779342Z INFO spiral_temp_test: │
│ input=Identifier("e7JxzbJlDUS7qF159S6qJ03WVPQL") │
│ 2024-03-29T14:04:14.779392Z INFO spiral_temp_test: │
│ input=Comment("nV{pWFJE\\i\"L*/TDE") │
│ 2024-03-29T14:04:14.779451Z INFO spiral_temp_test: │
│ input=Identifier("VZg74J4EkvHj0DFIbVkONs3R1mA") │
│ 2024-03-29T14:04:14.779491Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-29T14:04:14.779528Z INFO spiral_temp_test: │
│ input=Comment("\\lu=KAO_") │
│ 2024-03-29T14:04:14.779583Z INFO spiral_temp_test: │
│ input=StringLiteral("`'<+:*0[7=&C[)`'Tv%u!sASp9= =") │
│ 2024-03-29T14:04:14.779619Z INFO spiral_temp_test: │
│ input=Integer(6792668809212329629) │
│ 2024-03-29T14:04:14.779649Z INFO spiral_temp_test: │
│ input=Integer(-3103943366322669452) │
│ 2024-03-29T14:04:14.779700Z INFO spiral_temp_test: │
│ input=StringLiteral("J=H/&=r{XGY)VH=Tm`-") │
│ 2024-03-29T14:04:14.779737Z INFO spiral_temp_test: │
│ input=Integer(-4365469900128970866) │
│ 2024-03-29T14:04:14.779769Z INFO spiral_temp_test: │
│ input=Integer(-7775660439141522233) │
│ 2024-03-29T14:04:14.779803Z INFO spiral_temp_test: │
│ input=Identifier("YR2T2") │
│ 2024-03-29T14:04:14.779835Z INFO spiral_temp_test: │
│ input=Integer(-7899532582508966765) │
│ 2024-03-29T14:04:14.779878Z INFO spiral_temp_test: │
│ input=StringLiteral("F~3l/o~6:<wo}A?'") │
│ 2024-03-29T14:04:14.779928Z INFO spiral_temp_test: │
│ input=StringLiteral("i)/Eb:cn|_OI0eI?{7Bw.") │
│ 2024-03-29T14:04:14.779964Z INFO spiral_temp_test: │
│ input=Integer(-9156312286041748272) │
│ 2024-03-29T14:04:14.779999Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-29T14:04:14.780032Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-29T14:04:14.780084Z INFO spiral_temp_test: │
│ input=Identifier("TXUz3ujsPM49OPW17Inlm75tLSCb") │
│ 2024-03-29T14:04:14.783636Z INFO spiral_temp_test: │
│ input=Integer(-3150848925862645339) │
│ 2024-03-29T14:04:14.783692Z INFO spiral_temp_test: │
│ input=Integer(310831058076328735) │
│ 2024-03-29T14:04:14.783740Z INFO spiral_temp_test: │
│ input=Identifier("eOl58Jz") │
│ 2024-03-29T14:04:14.783811Z INFO spiral_temp_test: │
│ input=StringLiteral("')iE") │
│ 2024-03-29T14:04:14.783880Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-29T14:04:14.783933Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-29T14:04:14.783993Z INFO spiral_temp_test: │
│ input=StringLiteral("k?+t(i") │
│ 2024-03-29T14:04:14.784079Z INFO spiral_temp_test: │
│ input=Identifier("Axv5Ik") │
│ 2024-03-29T14:04:14.784186Z INFO spiral_temp_test: │
│ input=StringLiteral("{:u6%q=`") │
│ test prop_parse_format_idempotent ... ok │
│ test │
│ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │
│ ok │
│ │
│ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; │
│ finished in 0.19s │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
{ . $ScriptDir/../../../../target/release/spiral_temp_test$(GetExecutableSuffix)
} | Invoke-Block
╭─[ 82.98ms - stdout ]─────────────────────────────────────────────────────────╮
│ app=test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook build.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 361602 bytes to build.dib.html
In [ ]:
{ . "$ScriptDir/../apps/plot/build.ps1" } | Invoke-Block
Finished `release` profile [optimized] target(s) in 0.83s
In [ ]:
{ . "$ScriptDir/../lib/spiral/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 testing.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # testing │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > inl __expect fn log b a =
00:00:02 #11 [Verbose] > if log then
00:00:02 #12 [Verbose] > a |> sm'.format_debug |> console.write_line
00:00:02 #13 [Verbose] > inl result = fn a b
00:00:02 #14 [Verbose] > inl result =
00:00:02 #15 [Verbose] > result || join result
00:00:02 #16 [Verbose] > if log
00:00:02 #17 [Verbose] > then $"$\"__expect / actual: %A{!a} / expected: %A{!b}\""
00:00:02 #18 [Verbose] > else "__expect"
00:00:02 #19 [Verbose] > |> assert result
00:00:02 #20 [Verbose] >
00:00:02 #21 [Verbose] > inl __assert_approx_eq log e b a = __expect (fun a b => abs (b - a) < (e |>
00:00:02 #22 [Verbose] > optionm.defaultWith 0.00000001)) log b a
00:00:02 #23 [Verbose] > inl _assert_approx_eq e b a = __assert_approx_eq true e b a
00:00:02 #24 [Verbose] >
00:00:02 #25 [Verbose] > inl __assert_eq log b a = __expect (=) log b a
00:00:02 #26 [Verbose] > inl _assert_eq b a = __assert_eq true b a
00:00:02 #27 [Verbose] >
00:00:02 #28 [Verbose] > inl __assert_eq' log b a = __expect (/=) log b a
00:00:02 #29 [Verbose] > inl _assert_eq' b a = __assert_eq' true b a
00:00:02 #30 [Verbose] >
00:00:02 #31 [Verbose] > inl __assert_ne log b a = __expect (fun a b => a = b |> fun x => join x |> not)
00:00:02 #32 [Verbose] > log b a
00:00:02 #33 [Verbose] > inl _assert_ne b a = __assert_ne true b a
00:00:02 #34 [Verbose] >
00:00:02 #35 [Verbose] > inl __assert_gt log b a = __expect (>) log b a
00:00:02 #36 [Verbose] > inl _assert_gt b a = __assert_gt true b a
00:00:02 #37 [Verbose] >
00:00:02 #38 [Verbose] > inl __assert_ge log b a = __expect (>=) log b a
00:00:02 #39 [Verbose] > inl _assert_ge b a = __assert_ge true b a
00:00:02 #40 [Verbose] >
00:00:02 #41 [Verbose] > inl __assert_lt log b a = __expect (<) log b a
00:00:02 #42 [Verbose] > inl _assert_lt b a = __assert_lt true b a
00:00:02 #43 [Verbose] >
00:00:02 #44 [Verbose] > inl __assert_le log b a = __expect (<=) log b a
00:00:02 #45 [Verbose] > inl _assert_le b a = __assert_le true b a
00:00:02 #46 [Verbose] >
00:00:02 #47 [Verbose] > inl __contains forall t. log (b : t) a =
00:00:02 #48 [Verbose] > __expect
00:00:02 #49 [Verbose] > (fun a b => a |> $'Seq.tryFind' ((=) b) |> optionm'.unbox |> fun (x :
00:00:02 #50 [Verbose] > option t) => x <> None)
00:00:02 #51 [Verbose] > log b a
00:00:02 #52 [Verbose] > inl _contains b a = __contains true b a
00:00:02 #53 [Verbose] >
00:00:02 #54 [Verbose] > inl _throws (fn : () -> ()) : option exn =
00:00:02 #55 [Verbose] > inl none = None : option exn
00:00:02 #56 [Verbose] > inl some (s : exn) = Some s
00:00:02 #57 [Verbose] > $"try !fn (); !none with ex -> ex |> !some"
00:00:06 #58 [Verbose] >
00:00:06 #59 [Verbose] > ╭─[ 3.99s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #60 [Verbose] > │ () │
00:00:06 #61 [Verbose] > │ │
00:00:06 #62 [Verbose] > │ │
00:00:06 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #64 [Verbose] >
00:00:06 #65 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #66 [Verbose] > // // test
00:00:06 #67 [Verbose] >
00:00:06 #68 [Verbose] > 1f64
00:00:06 #69 [Verbose] > |> _assert_approx_eq (Some 3) 2
00:00:07 #70 [Verbose] >
00:00:07 #71 [Verbose] > ╭─[ 925.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #72 [Verbose] > │ let rec method0 () : unit = │
00:00:07 #73 [Verbose] > │ let v0 : string = $"%A{1.0}" │
00:00:07 #74 [Verbose] > │ System.Console.WriteLine v0 │
00:00:07 #75 [Verbose] > │ let v1 : string = $"__expect / actual: %A{1.0} / expected: %A{2.0}" │
00:00:07 #76 [Verbose] > │ () │
00:00:07 #77 [Verbose] > │ method0() │
00:00:07 #78 [Verbose] > │ │
00:00:07 #79 [Verbose] > │ 1.0 │
00:00:07 #80 [Verbose] > │ │
00:00:07 #81 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #82 [Verbose] >
00:00:07 #83 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #84 [Verbose] > // // test
00:00:07 #85 [Verbose] >
00:00:07 #86 [Verbose] > "abcd"
00:00:07 #87 [Verbose] > |> _contains 'b'
00:00:08 #88 [Verbose] >
00:00:08 #89 [Verbose] > ╭─[ 913.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #90 [Verbose] > │ type [<Struct>] US0 = │
00:00:08 #91 [Verbose] > │ | US0_0 │
00:00:08 #92 [Verbose] > │ | US0_1 of f1_0 : char │
00:00:08 #93 [Verbose] > │ let rec closure0 () (v0 : char) : bool = │
00:00:08 #94 [Verbose] > │ let v1 : bool = 'b' = v0 │
00:00:08 #95 [Verbose] > │ v1 │
00:00:08 #96 [Verbose] > │ and closure1 () (v0 : char) : US0 = │
00:00:08 #97 [Verbose] > │ US0_1(v0) │
00:00:08 #98 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:08 #99 [Verbose] > │ v0 │
00:00:08 #100 [Verbose] > │ and method0 () : unit = │
00:00:08 #101 [Verbose] > │ let v0 : string = "abcd" │
00:00:08 #102 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:08 #103 [Verbose] > │ System.Console.WriteLine v1 │
00:00:08 #104 [Verbose] > │ let v2 : ((char -> bool) -> (string -> char option)) = Seq.tryFind │
00:00:08 #105 [Verbose] > │ let v3 : (char -> bool) = closure0() │
00:00:08 #106 [Verbose] > │ let v4 : (string -> char option) = v2 v3 │
00:00:08 #107 [Verbose] > │ let v5 : char option = v4 v0 │
00:00:08 #108 [Verbose] > │ let v6 : (char -> US0) = closure1() │
00:00:08 #109 [Verbose] > │ let v7 : US0 = US0_0 │
00:00:08 #110 [Verbose] > │ let v8 : US0 = v5 |> Option.map v6 |> Option.defaultValue v7 │
00:00:08 #111 [Verbose] > │ let v10 : bool = │
00:00:08 #112 [Verbose] > │ match v8 with │
00:00:08 #113 [Verbose] > │ | US0_0 -> (* None *) │
00:00:08 #114 [Verbose] > │ true │
00:00:08 #115 [Verbose] > │ | _ -> │
00:00:08 #116 [Verbose] > │ false │
00:00:08 #117 [Verbose] > │ let v11 : bool = v10 <> true │
00:00:08 #118 [Verbose] > │ let v13 : bool = │
00:00:08 #119 [Verbose] > │ if v11 then │
00:00:08 #120 [Verbose] > │ true │
00:00:08 #121 [Verbose] > │ else │
00:00:08 #122 [Verbose] > │ method1(v11) │
00:00:08 #123 [Verbose] > │ let v14 : string = $"__expect / actual: %A{v0} / expected: %A{'b'}" │
00:00:08 #124 [Verbose] > │ let v15 : bool = v13 = false │
00:00:08 #125 [Verbose] > │ if v15 then │
00:00:08 #126 [Verbose] > │ failwith<unit> v14 │
00:00:08 #127 [Verbose] > │ method0() │
00:00:08 #128 [Verbose] > │ │
00:00:08 #129 [Verbose] > │ "abcd" │
00:00:08 #130 [Verbose] > │ │
00:00:08 #131 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #132 [Verbose] >
00:00:08 #133 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #134 [Verbose] > // // test
00:00:08 #135 [Verbose] >
00:00:08 #136 [Verbose] > (dyn 1f64)
00:00:08 #137 [Verbose] > |> _assert_approx_eq (Some 3) 2
00:00:08 #138 [Verbose] >
00:00:08 #139 [Verbose] > ╭─[ 295.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #140 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:08 #141 [Verbose] > │ v0 │
00:00:08 #142 [Verbose] > │ and method0 () : unit = │
00:00:08 #143 [Verbose] > │ let v0 : float = 1.0 │
00:00:08 #144 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:08 #145 [Verbose] > │ System.Console.WriteLine v1 │
00:00:08 #146 [Verbose] > │ let v2 : float = 2.0 - v0 │
00:00:08 #147 [Verbose] > │ let v3 : float = -v2 │
00:00:08 #148 [Verbose] > │ let v4 : bool = v2 >= v3 │
00:00:08 #149 [Verbose] > │ let v5 : float = │
00:00:08 #150 [Verbose] > │ if v4 then │
00:00:08 #151 [Verbose] > │ v2 │
00:00:08 #152 [Verbose] > │ else │
00:00:08 #153 [Verbose] > │ v3 │
00:00:08 #154 [Verbose] > │ let v6 : bool = v5 < 3.0 │
00:00:08 #155 [Verbose] > │ let v8 : bool = │
00:00:08 #156 [Verbose] > │ if v6 then │
00:00:08 #157 [Verbose] > │ true │
00:00:08 #158 [Verbose] > │ else │
00:00:08 #159 [Verbose] > │ method1(v6) │
00:00:08 #160 [Verbose] > │ let v9 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}" │
00:00:08 #161 [Verbose] > │ let v10 : bool = v8 = false │
00:00:08 #162 [Verbose] > │ if v10 then │
00:00:08 #163 [Verbose] > │ failwith<unit> v9 │
00:00:08 #164 [Verbose] > │ method0() │
00:00:08 #165 [Verbose] > │ │
00:00:08 #166 [Verbose] > │ 1.0 │
00:00:08 #167 [Verbose] > │ │
00:00:08 #168 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #169 [Verbose] >
00:00:08 #170 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #171 [Verbose] > inl print_and_return x =
00:00:08 #172 [Verbose] > $"printfn $\"print_and_return / x: {!x}\""
00:00:08 #173 [Verbose] > x
00:00:09 #174 [Verbose] >
00:00:09 #175 [Verbose] > ╭─[ 317.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #176 [Verbose] > │ () │
00:00:09 #177 [Verbose] > │ │
00:00:09 #178 [Verbose] > │ │
00:00:09 #179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #180 [Verbose] > [NbConvertApp] Converting notebook testing.dib.ipynb to html
00:00:11 #181 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:11 #182 [Verbose] > validate(nb)
00:00:11 #183 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:11 #184 [Verbose] > return _pygments_highlight(
00:00:11 #185 [Verbose] > [NbConvertApp] Writing 287018 bytes to testing.dib.html
00:00:12 #186 [Debug] executeAsync / exitCode: 0 / output.Length: 10822
00:00:12 #187 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 guid.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # guid │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:07 #13 [Verbose] >
00:00:07 #14 [Verbose] > ╭─[ 4.22s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #15 [Verbose] > │ () │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > │ │
00:00:07 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #19 [Verbose] >
00:00:07 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #22 [Verbose] > │ ## guid │
00:00:07 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #24 [Verbose] >
00:00:07 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #26 [Verbose] > nominal guid = $"System.Guid"
00:00:07 #27 [Verbose] >
00:00:07 #28 [Verbose] > ╭─[ 226.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #29 [Verbose] > │ () │
00:00:07 #30 [Verbose] > │ │
00:00:07 #31 [Verbose] > │ │
00:00:07 #32 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #33 [Verbose] >
00:00:07 #34 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #35 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #36 [Verbose] > │ ## new_guid │
00:00:07 #37 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #38 [Verbose] >
00:00:07 #39 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #40 [Verbose] > inl new_guid (x : string) : guid =
00:00:07 #41 [Verbose] > $'`guid !x '
00:00:07 #42 [Verbose] >
00:00:07 #43 [Verbose] > ╭─[ 241.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #44 [Verbose] > │ () │
00:00:07 #45 [Verbose] > │ │
00:00:07 #46 [Verbose] > │ │
00:00:07 #47 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #48 [Verbose] >
00:00:07 #49 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #50 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #51 [Verbose] > │ ## new_raw_guid │
00:00:07 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #53 [Verbose] >
00:00:07 #54 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #55 [Verbose] > inl new_raw_guid () : guid =
00:00:07 #56 [Verbose] > $"System.Guid.NewGuid ()"
00:00:08 #57 [Verbose] >
00:00:08 #58 [Verbose] > ╭─[ 297.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #59 [Verbose] > │ () │
00:00:08 #60 [Verbose] > │ │
00:00:08 #61 [Verbose] > │ │
00:00:08 #62 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #63 [Verbose] >
00:00:08 #64 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #65 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #66 [Verbose] > │ ## main │
00:00:08 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #68 [Verbose] >
00:00:08 #69 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #70 [Verbose] > inl main () =
00:00:08 #71 [Verbose] > $"let new_guid x = !new_guid x" : ()
00:00:08 #72 [Verbose] > $"let new_raw_guid x = !new_raw_guid x" : ()
00:00:08 #73 [Verbose] >
00:00:08 #74 [Verbose] > ╭─[ 808.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #75 [Verbose] > │ let rec closure0 () (v0 : string) : System.Guid = │
00:00:08 #76 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:08 #77 [Verbose] > │ v1 │
00:00:08 #78 [Verbose] > │ and closure1 () () : System.Guid = │
00:00:08 #79 [Verbose] > │ let v0 : System.Guid = System.Guid.NewGuid () │
00:00:08 #80 [Verbose] > │ v0 │
00:00:08 #81 [Verbose] > │ let v0 : (string -> System.Guid) = closure0() │
00:00:08 #82 [Verbose] > │ let new_guid x = v0 x │
00:00:08 #83 [Verbose] > │ let v1 : (unit -> System.Guid) = closure1() │
00:00:08 #84 [Verbose] > │ let new_raw_guid x = v1 x │
00:00:08 #85 [Verbose] > │ () │
00:00:08 #86 [Verbose] > │ │
00:00:08 #87 [Verbose] > │ │
00:00:08 #88 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #89 [Verbose] > [NbConvertApp] Converting notebook guid.dib.ipynb to html
00:00:10 #90 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:10 #91 [Verbose] > validate(nb)
00:00:11 #92 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:11 #93 [Verbose] > return _pygments_highlight(
00:00:11 #94 [Verbose] > [NbConvertApp] Writing 278591 bytes to guid.dib.html
00:00:12 #95 [Debug] executeAsync / exitCode: 0 / output.Length: 5882
00:00:12 #96 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 common.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # common │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > // // test
00:00:02 #11 [Verbose] >
00:00:02 #12 [Verbose] > open testing
00:00:06 #13 [Verbose] >
00:00:06 #14 [Verbose] > ╭─[ 4.08s - stdout ]───────────────────────────────────────────────────────────╮
00:00:06 #15 [Verbose] > │ () │
00:00:06 #16 [Verbose] > │ │
00:00:06 #17 [Verbose] > │ │
00:00:06 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #19 [Verbose] >
00:00:06 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 #22 [Verbose] > │ ## types │
00:00:06 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 #24 [Verbose] >
00:00:06 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 #26 [Verbose] > nominal any = $"obj"
00:00:06 #27 [Verbose] > nominal disposable = $"System.IDisposable"
00:00:06 #28 [Verbose] > nominal exn = $"exn"
00:00:06 #29 [Verbose] > nominal unativeint = $"unativeint"
00:00:06 #30 [Verbose] >
00:00:06 #31 [Verbose] > let array x = x
00:00:06 #32 [Verbose] >
00:00:06 #33 [Verbose] > inl unativeint forall t {int}. (n : t) : unativeint =
00:00:06 #34 [Verbose] > $"unativeint !n"
00:00:07 #35 [Verbose] >
00:00:07 #36 [Verbose] > ╭─[ 220.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #37 [Verbose] > │ () │
00:00:07 #38 [Verbose] > │ │
00:00:07 #39 [Verbose] > │ │
00:00:07 #40 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #41 [Verbose] >
00:00:07 #42 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #43 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #44 [Verbose] > │ ## prototype │
00:00:07 #45 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #46 [Verbose] >
00:00:07 #47 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #48 [Verbose] > prototype (~:>) r : forall t. t -> r
00:00:07 #49 [Verbose] > prototype append t : t -> t -> t
00:00:07 #50 [Verbose] > prototype of_string t : string -> t
00:00:07 #51 [Verbose] > prototype to_string t : t -> string
00:00:07 #52 [Verbose] >
00:00:07 #53 [Verbose] > ╭─[ 305.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #54 [Verbose] > │ () │
00:00:07 #55 [Verbose] > │ │
00:00:07 #56 [Verbose] > │ │
00:00:07 #57 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #58 [Verbose] >
00:00:07 #59 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #60 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #61 [Verbose] > │ ## null │
00:00:07 #62 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #63 [Verbose] >
00:00:07 #64 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #65 [Verbose] > inl null forall t. () : t =
00:00:07 #66 [Verbose] > $"null |> unbox<`t>"
00:00:07 #67 [Verbose] >
00:00:07 #68 [Verbose] > ╭─[ 233.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #69 [Verbose] > │ () │
00:00:07 #70 [Verbose] > │ │
00:00:07 #71 [Verbose] > │ │
00:00:07 #72 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #73 [Verbose] >
00:00:07 #74 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #75 [Verbose] > inl i32 forall t. (x : t) : i32 =
00:00:07 #76 [Verbose] > $"int32 !x"
00:00:07 #77 [Verbose] >
00:00:07 #78 [Verbose] > inl i64 forall t. (x : t) : i64 =
00:00:07 #79 [Verbose] > $"int64 !x"
00:00:07 #80 [Verbose] >
00:00:07 #81 [Verbose] > inl f32 forall t. (x : t) : f32 =
00:00:07 #82 [Verbose] > $"float32 !x"
00:00:07 #83 [Verbose] >
00:00:07 #84 [Verbose] > inl f64 forall t. (x : t) : f64 =
00:00:07 #85 [Verbose] > $"float !x"
00:00:07 #86 [Verbose] >
00:00:07 #87 [Verbose] > ╭─[ 245.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #88 [Verbose] > │ () │
00:00:07 #89 [Verbose] > │ │
00:00:07 #90 [Verbose] > │ │
00:00:07 #91 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #92 [Verbose] >
00:00:07 #93 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #94 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #95 [Verbose] > │ ## pair │
00:00:07 #96 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #97 [Verbose] >
00:00:07 #98 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #99 [Verbose] > type pair a b = $"(`a * `b)"
00:00:07 #100 [Verbose] >
00:00:07 #101 [Verbose] > inl pair x y =
00:00:07 #102 [Verbose] > x, y
00:00:08 #103 [Verbose] >
00:00:08 #104 [Verbose] > ╭─[ 237.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #105 [Verbose] > │ () │
00:00:08 #106 [Verbose] > │ │
00:00:08 #107 [Verbose] > │ │
00:00:08 #108 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #109 [Verbose] >
00:00:08 #110 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #111 [Verbose] > // // test
00:00:08 #112 [Verbose] >
00:00:08 #113 [Verbose] > pair 1i32 2i32
00:00:08 #114 [Verbose] > |> _assert_eq (1, 2)
00:00:09 #115 [Verbose] >
00:00:09 #116 [Verbose] > ╭─[ 1.01s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #117 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #118 [Verbose] > │ let v0 : string = $"%A{struct (1, 2)}" │
00:00:09 #119 [Verbose] > │ System.Console.WriteLine v0 │
00:00:09 #120 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (1, 2)} / expected: │
00:00:09 #121 [Verbose] > │ %A{struct (1, 2)}" │
00:00:09 #122 [Verbose] > │ () │
00:00:09 #123 [Verbose] > │ method0() │
00:00:09 #124 [Verbose] > │ │
00:00:09 #125 [Verbose] > │ struct (1, 2) │
00:00:09 #126 [Verbose] > │ │
00:00:09 #127 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #128 [Verbose] >
00:00:09 #129 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #130 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #131 [Verbose] > │ ## new_pair │
00:00:09 #132 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #133 [Verbose] >
00:00:09 #134 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #135 [Verbose] > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:00:09 #136 [Verbose] > $"!a, !b"
00:00:09 #137 [Verbose] >
00:00:09 #138 [Verbose] > ╭─[ 313.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #139 [Verbose] > │ () │
00:00:09 #140 [Verbose] > │ │
00:00:09 #141 [Verbose] > │ │
00:00:09 #142 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #143 [Verbose] >
00:00:09 #144 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #145 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #146 [Verbose] > │ ## from_pair │
00:00:09 #147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #148 [Verbose] >
00:00:09 #149 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #150 [Verbose] > inl from_pair forall a b. (pair : pair a b) : a * b =
00:00:09 #151 [Verbose] > $"let (a, b) = !pair"
00:00:09 #152 [Verbose] > $"a", $"b"
00:00:09 #153 [Verbose] >
00:00:09 #154 [Verbose] > ╭─[ 230.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #155 [Verbose] > │ () │
00:00:09 #156 [Verbose] > │ │
00:00:09 #157 [Verbose] > │ │
00:00:09 #158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #159 [Verbose] >
00:00:09 #160 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #161 [Verbose] > // // test
00:00:09 #162 [Verbose] >
00:00:09 #163 [Verbose] > new_pair "a" 1i32
00:00:09 #164 [Verbose] > |> from_pair
00:00:09 #165 [Verbose] > |> _assert_eq ("a", 1i32)
00:00:10 #166 [Verbose] >
00:00:10 #167 [Verbose] > ╭─[ 383.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #168 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:10 #169 [Verbose] > │ v0 │
00:00:10 #170 [Verbose] > │ and method0 () : unit = │
00:00:10 #171 [Verbose] > │ let v0 : string = "a" │
00:00:10 #172 [Verbose] > │ let v1 : (string * int32) = v0, 1 │
00:00:10 #173 [Verbose] > │ let (a, b) = v1 │
00:00:10 #174 [Verbose] > │ let v2 : string = a │
00:00:10 #175 [Verbose] > │ let v3 : int32 = b │
00:00:10 #176 [Verbose] > │ let v4 : string = $"%A{struct (v2, v3)}" │
00:00:10 #177 [Verbose] > │ System.Console.WriteLine v4 │
00:00:10 #178 [Verbose] > │ let v5 : bool = v2 = "a" │
00:00:10 #179 [Verbose] > │ let v7 : bool = │
00:00:10 #180 [Verbose] > │ if v5 then │
00:00:10 #181 [Verbose] > │ let v6 : bool = v3 = 1 │
00:00:10 #182 [Verbose] > │ v6 │
00:00:10 #183 [Verbose] > │ else │
00:00:10 #184 [Verbose] > │ false │
00:00:10 #185 [Verbose] > │ let v9 : bool = │
00:00:10 #186 [Verbose] > │ if v7 then │
00:00:10 #187 [Verbose] > │ true │
00:00:10 #188 [Verbose] > │ else │
00:00:10 #189 [Verbose] > │ method1(v7) │
00:00:10 #190 [Verbose] > │ let v10 : string = $"__expect / actual: %A{struct (v2, v3)} / expected: │
00:00:10 #191 [Verbose] > │ %A{struct (v0, 1)}" │
00:00:10 #192 [Verbose] > │ let v11 : bool = v9 = false │
00:00:10 #193 [Verbose] > │ if v11 then │
00:00:10 #194 [Verbose] > │ failwith<unit> v10 │
00:00:10 #195 [Verbose] > │ method0() │
00:00:10 #196 [Verbose] > │ │
00:00:10 #197 [Verbose] > │ struct ("a", 1) │
00:00:10 #198 [Verbose] > │ │
00:00:10 #199 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #200 [Verbose] >
00:00:10 #201 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #202 [Verbose] > // // test
00:00:10 #203 [Verbose] >
00:00:10 #204 [Verbose] > new_pair "a" (new_pair 1i32 "b")
00:00:10 #205 [Verbose] > |> from_pair
00:00:10 #206 [Verbose] >
00:00:10 #207 [Verbose] > ╭─[ 369.93ms - return value ]──────────────────────────────────────────────────╮
00:00:10 #208 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span │
00:00:10 #209 [Verbose] > │ class="dni-code-hint"><code>(a, (1, │
00:00:10 #210 [Verbose] > │ b))</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
00:00:10 #211 [Verbose] > │ d>Item1</td><td><div │
00:00:10 #212 [Verbose] > │ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │
00:00:10 #213 [Verbose] > │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>(1, │
00:00:10 #214 [Verbose] > │ b)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
00:00:10 #215 [Verbose] > │ >Item1</td><td><div │
00:00:10 #216 [Verbose] > │ class="dni-plaintext"><pre>1</pre></div></td></tr><tr><td>Item2</td><td><div │
00:00:10 #217 [Verbose] > │ class="dni-plaintext"><pre>b</pre></div></td></tr></tbody></table></div></de │
00:00:10 #218 [Verbose] > │ tails></td></tr></tbody></table></div></details><style> │
00:00:10 #219 [Verbose] > │ .dni-code-hint { │
00:00:10 #220 [Verbose] > │ font-style: italic; │
00:00:10 #221 [Verbose] > │ overflow: hidden; │
00:00:10 #222 [Verbose] > │ white-space: nowrap; │
00:00:10 #223 [Verbose] > │ } │
00:00:10 #224 [Verbose] > │ .dni-treev... │
00:00:10 #225 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #226 [Verbose] >
00:00:10 #227 [Verbose] > ╭─[ 389.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #228 [Verbose] > │ let rec method0 () : struct (string * (int32 * string)) = │
00:00:10 #229 [Verbose] > │ let v0 : string = "b" │
00:00:10 #230 [Verbose] > │ let v1 : (int32 * string) = 1, v0 │
00:00:10 #231 [Verbose] > │ let v2 : string = "a" │
00:00:10 #232 [Verbose] > │ let v3 : (string * (int32 * string)) = v2, v1 │
00:00:10 #233 [Verbose] > │ let (a, b) = v3 │
00:00:10 #234 [Verbose] > │ let v4 : string = a │
00:00:10 #235 [Verbose] > │ let v5 : (int32 * string) = b │
00:00:10 #236 [Verbose] > │ struct (v4, v5) │
00:00:10 #237 [Verbose] > │ method0() │
00:00:10 #238 [Verbose] > │ │
00:00:10 #239 [Verbose] > │ │
00:00:10 #240 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #241 [Verbose] >
00:00:10 #242 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #243 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #244 [Verbose] > │ ## log_level_type │
00:00:10 #245 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #246 [Verbose] >
00:00:10 #247 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #248 [Verbose] > union log_level_type =
00:00:10 #249 [Verbose] > | Verbose
00:00:10 #250 [Verbose] > | Debug
00:00:10 #251 [Verbose] > | Info
00:00:10 #252 [Verbose] > | Warning
00:00:10 #253 [Verbose] > | Critical
00:00:10 #254 [Verbose] >
00:00:10 #255 [Verbose] > instance to_string log_level_type = function
00:00:10 #256 [Verbose] > | Verbose => "Verbose"
00:00:10 #257 [Verbose] > | Debug => "Debug"
00:00:10 #258 [Verbose] > | Info => "Info"
00:00:10 #259 [Verbose] > | Warning => "Warning"
00:00:10 #260 [Verbose] > | Critical => "Critical"
00:00:10 #261 [Verbose] >
00:00:10 #262 [Verbose] > instance of_string log_level_type = function
00:00:10 #263 [Verbose] > | "Verbose" => Verbose
00:00:10 #264 [Verbose] > | "Debug" => Debug
00:00:10 #265 [Verbose] > | "Info" => Info
00:00:10 #266 [Verbose] > | "Warning" => Warning
00:00:10 #267 [Verbose] > | "Critical" => Critical
00:00:10 #268 [Verbose] >
00:00:10 #269 [Verbose] > ╭─[ 221.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #270 [Verbose] > │ () │
00:00:10 #271 [Verbose] > │ │
00:00:10 #272 [Verbose] > │ │
00:00:10 #273 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #274 [Verbose] >
00:00:10 #275 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #276 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #277 [Verbose] > │ ## to_any │
00:00:10 #278 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #279 [Verbose] >
00:00:10 #280 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #281 [Verbose] > inl to_any forall t. (obj : t) : any =
00:00:10 #282 [Verbose] > $"!obj"
00:00:10 #283 [Verbose] >
00:00:10 #284 [Verbose] > instance (~:>) any = to_any
00:00:10 #285 [Verbose] >
00:00:10 #286 [Verbose] > ╭─[ 207.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #287 [Verbose] > │ () │
00:00:10 #288 [Verbose] > │ │
00:00:10 #289 [Verbose] > │ │
00:00:10 #290 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #291 [Verbose] >
00:00:10 #292 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #293 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #294 [Verbose] > │ ## (/@) │
00:00:10 #295 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #296 [Verbose] >
00:00:10 #297 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #298 [Verbose] > inl (/@) a b =
00:00:10 #299 [Verbose] > b |> append a
00:00:11 #300 [Verbose] >
00:00:11 #301 [Verbose] > ╭─[ 309.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #302 [Verbose] > │ () │
00:00:11 #303 [Verbose] > │ │
00:00:11 #304 [Verbose] > │ │
00:00:11 #305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #306 [Verbose] >
00:00:11 #307 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #308 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #309 [Verbose] > │ ## unbox │
00:00:11 #310 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #311 [Verbose] >
00:00:11 #312 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #313 [Verbose] > inl unbox forall t u. (x : t) : u =
00:00:11 #314 [Verbose] > $"!x |> unbox<`u>"
00:00:11 #315 [Verbose] >
00:00:11 #316 [Verbose] > ╭─[ 211.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #317 [Verbose] > │ () │
00:00:11 #318 [Verbose] > │ │
00:00:11 #319 [Verbose] > │ │
00:00:11 #320 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #321 [Verbose] >
00:00:11 #322 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #323 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #324 [Verbose] > │ ## (/+) │
00:00:11 #325 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #326 [Verbose] >
00:00:11 #327 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #328 [Verbose] > inl (/+) forall t. (a : t) (b : t) : t =
00:00:11 #329 [Verbose] > $"!a + !b"
00:00:11 #330 [Verbose] >
00:00:11 #331 [Verbose] > ╭─[ 228.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #332 [Verbose] > │ () │
00:00:11 #333 [Verbose] > │ │
00:00:11 #334 [Verbose] > │ │
00:00:11 #335 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #336 [Verbose] >
00:00:11 #337 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #338 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #339 [Verbose] > │ ## (/=) │
00:00:11 #340 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #341 [Verbose] >
00:00:11 #342 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #343 [Verbose] > inl (/=) forall t. (a : t) (b : t) : bool =
00:00:11 #344 [Verbose] > $"!a = !b"
00:00:11 #345 [Verbose] >
00:00:12 #346 [Verbose] > ╭─[ 260.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #347 [Verbose] > │ () │
00:00:12 #348 [Verbose] > │ │
00:00:12 #349 [Verbose] > │ │
00:00:12 #350 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #351 [Verbose] >
00:00:12 #352 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #353 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #354 [Verbose] > │ ## (||>) │
00:00:12 #355 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #356 [Verbose] >
00:00:12 #357 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #358 [Verbose] > inl (||>) (arg1, arg2) fn =
00:00:12 #359 [Verbose] > arg2 |> fn arg1
00:00:12 #360 [Verbose] >
00:00:12 #361 [Verbose] > ╭─[ 303.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #362 [Verbose] > │ () │
00:00:12 #363 [Verbose] > │ │
00:00:12 #364 [Verbose] > │ │
00:00:12 #365 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #366 [Verbose] >
00:00:12 #367 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #368 [Verbose] > // // test
00:00:12 #369 [Verbose] >
00:00:12 #370 [Verbose] > (3i32, 2i32)
00:00:12 #371 [Verbose] > ||> fun a b => a - b
00:00:12 #372 [Verbose] > |> _assert_eq 1
00:00:12 #373 [Verbose] >
00:00:12 #374 [Verbose] > ╭─[ 250.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #375 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #376 [Verbose] > │ let v0 : string = $"%A{1}" │
00:00:12 #377 [Verbose] > │ System.Console.WriteLine v0 │
00:00:12 #378 [Verbose] > │ let v1 : string = $"__expect / actual: %A{1} / expected: %A{1}" │
00:00:12 #379 [Verbose] > │ () │
00:00:12 #380 [Verbose] > │ method0() │
00:00:12 #381 [Verbose] > │ │
00:00:12 #382 [Verbose] > │ 1 │
00:00:12 #383 [Verbose] > │ │
00:00:12 #384 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #385 [Verbose] >
00:00:12 #386 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #387 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #388 [Verbose] > │ ## flip │
00:00:12 #389 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #390 [Verbose] >
00:00:12 #391 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #392 [Verbose] > inl flip fn a b =
00:00:12 #393 [Verbose] > fn b a
00:00:12 #394 [Verbose] >
00:00:12 #395 [Verbose] > ╭─[ 217.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #396 [Verbose] > │ () │
00:00:12 #397 [Verbose] > │ │
00:00:12 #398 [Verbose] > │ │
00:00:12 #399 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #400 [Verbose] >
00:00:12 #401 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #402 [Verbose] > // // test
00:00:12 #403 [Verbose] >
00:00:12 #404 [Verbose] > (1i32, 2i32)
00:00:12 #405 [Verbose] > ||> flip pair
00:00:12 #406 [Verbose] > |> _assert_eq (2, 1)
00:00:13 #407 [Verbose] >
00:00:13 #408 [Verbose] > ╭─[ 251.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #409 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #410 [Verbose] > │ let v0 : string = $"%A{struct (2, 1)}" │
00:00:13 #411 [Verbose] > │ System.Console.WriteLine v0 │
00:00:13 #412 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (2, 1)} / expected: │
00:00:13 #413 [Verbose] > │ %A{struct (2, 1)}" │
00:00:13 #414 [Verbose] > │ () │
00:00:13 #415 [Verbose] > │ method0() │
00:00:13 #416 [Verbose] > │ │
00:00:13 #417 [Verbose] > │ struct (2, 1) │
00:00:13 #418 [Verbose] > │ │
00:00:13 #419 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #420 [Verbose] >
00:00:13 #421 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #422 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #423 [Verbose] > │ ## join_body │
00:00:13 #424 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #425 [Verbose] >
00:00:13 #426 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #427 [Verbose] > inl join_body body acc x =
00:00:13 #428 [Verbose] > if var_is x |> not
00:00:13 #429 [Verbose] > then body acc x
00:00:13 #430 [Verbose] > else
00:00:13 #431 [Verbose] > inl acc = dyn acc
00:00:13 #432 [Verbose] > join body acc x
00:00:13 #433 [Verbose] >
00:00:13 #434 [Verbose] > ╭─[ 235.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #435 [Verbose] > │ () │
00:00:13 #436 [Verbose] > │ │
00:00:13 #437 [Verbose] > │ │
00:00:13 #438 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #439 [Verbose] >
00:00:13 #440 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #441 [Verbose] > // // test
00:00:13 #442 [Verbose] >
00:00:13 #443 [Verbose] > inl rec fold_list f s = function
00:00:13 #444 [Verbose] > | Cons (x, x') => fold_list f (f s x) x'
00:00:13 #445 [Verbose] > | Nil => s
00:00:13 #446 [Verbose] >
00:00:13 #447 [Verbose] > ╭─[ 314.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #448 [Verbose] > │ () │
00:00:13 #449 [Verbose] > │ │
00:00:13 #450 [Verbose] > │ │
00:00:13 #451 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #452 [Verbose] >
00:00:13 #453 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #454 [Verbose] > // // test
00:00:13 #455 [Verbose] >
00:00:13 #456 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:13 #457 [Verbose] > |> fold_list (+) 0
00:00:13 #458 [Verbose] > |> _assert_eq 15
00:00:13 #459 [Verbose] >
00:00:13 #460 [Verbose] > ╭─[ 286.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #461 [Verbose] > │ let rec method1 () : int32 = │
00:00:13 #462 [Verbose] > │ 3 │
00:00:13 #463 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:13 #464 [Verbose] > │ v0 │
00:00:13 #465 [Verbose] > │ and method0 () : unit = │
00:00:13 #466 [Verbose] > │ let v0 : int32 = method1() │
00:00:13 #467 [Verbose] > │ let v1 : int32 = 9 + v0 │
00:00:13 #468 [Verbose] > │ let v2 : int32 = v1 + 2 │
00:00:13 #469 [Verbose] > │ let v3 : int32 = v2 + 1 │
00:00:13 #470 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:13 #471 [Verbose] > │ System.Console.WriteLine v4 │
00:00:13 #472 [Verbose] > │ let v5 : bool = v3 = 15 │
00:00:13 #473 [Verbose] > │ let v7 : bool = │
00:00:13 #474 [Verbose] > │ if v5 then │
00:00:13 #475 [Verbose] > │ true │
00:00:13 #476 [Verbose] > │ else │
00:00:13 #477 [Verbose] > │ method2(v5) │
00:00:13 #478 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v3} / expected: %A{15}" │
00:00:13 #479 [Verbose] > │ let v9 : bool = v7 = false │
00:00:13 #480 [Verbose] > │ if v9 then │
00:00:13 #481 [Verbose] > │ failwith<unit> v8 │
00:00:13 #482 [Verbose] > │ method0() │
00:00:13 #483 [Verbose] > │ │
00:00:13 #484 [Verbose] > │ 15 │
00:00:13 #485 [Verbose] > │ │
00:00:13 #486 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #487 [Verbose] >
00:00:13 #488 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #489 [Verbose] > // // test
00:00:13 #490 [Verbose] >
00:00:13 #491 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:13 #492 [Verbose] > |> fold_list (join_body (+)) 0
00:00:13 #493 [Verbose] > |> _assert_eq 15
00:00:14 #494 [Verbose] >
00:00:14 #495 [Verbose] > ╭─[ 314.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #496 [Verbose] > │ let rec method1 () : int32 = │
00:00:14 #497 [Verbose] > │ 3 │
00:00:14 #498 [Verbose] > │ and method2 (v0 : int32, v1 : int32) : int32 = │
00:00:14 #499 [Verbose] > │ let v2 : int32 = v1 + v0 │
00:00:14 #500 [Verbose] > │ v2 │
00:00:14 #501 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:14 #502 [Verbose] > │ v0 │
00:00:14 #503 [Verbose] > │ and method0 () : unit = │
00:00:14 #504 [Verbose] > │ let v0 : int32 = method1() │
00:00:14 #505 [Verbose] > │ let v1 : int32 = 9 │
00:00:14 #506 [Verbose] > │ let v2 : int32 = method2(v0, v1) │
00:00:14 #507 [Verbose] > │ let v3 : int32 = v2 + 2 │
00:00:14 #508 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:14 #509 [Verbose] > │ let v5 : string = $"%A{v4}" │
00:00:14 #510 [Verbose] > │ System.Console.WriteLine v5 │
00:00:14 #511 [Verbose] > │ let v6 : bool = v4 = 15 │
00:00:14 #512 [Verbose] > │ let v8 : bool = │
00:00:14 #513 [Verbose] > │ if v6 then │
00:00:14 #514 [Verbose] > │ true │
00:00:14 #515 [Verbose] > │ else │
00:00:14 #516 [Verbose] > │ method3(v6) │
00:00:14 #517 [Verbose] > │ let v9 : string = $"__expect / actual: %A{v4} / expected: %A{15}" │
00:00:14 #518 [Verbose] > │ let v10 : bool = v8 = false │
00:00:14 #519 [Verbose] > │ if v10 then │
00:00:14 #520 [Verbose] > │ failwith<unit> v9 │
00:00:14 #521 [Verbose] > │ method0() │
00:00:14 #522 [Verbose] > │ │
00:00:14 #523 [Verbose] > │ 15 │
00:00:14 #524 [Verbose] > │ │
00:00:14 #525 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #526 [Verbose] >
00:00:14 #527 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #528 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #529 [Verbose] > │ ## join_body_unit │
00:00:14 #530 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #531 [Verbose] >
00:00:14 #532 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #533 [Verbose] > inl join_body_unit body d x =
00:00:14 #534 [Verbose] > if var_is d |> not
00:00:14 #535 [Verbose] > then body x
00:00:14 #536 [Verbose] > else
00:00:14 #537 [Verbose] > inl x = dyn x
00:00:14 #538 [Verbose] > join body x
00:00:14 #539 [Verbose] >
00:00:14 #540 [Verbose] > ╭─[ 234.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #541 [Verbose] > │ () │
00:00:14 #542 [Verbose] > │ │
00:00:14 #543 [Verbose] > │ │
00:00:14 #544 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #545 [Verbose] >
00:00:14 #546 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #547 [Verbose] > // // test
00:00:14 #548 [Verbose] >
00:00:14 #549 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:14 #550 [Verbose] > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:00:14 #551 [Verbose] > |> _assert_eq 15
00:00:14 #552 [Verbose] >
00:00:14 #553 [Verbose] > ╭─[ 290.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #554 [Verbose] > │ let rec method1 () : int32 = │
00:00:14 #555 [Verbose] > │ 3 │
00:00:14 #556 [Verbose] > │ and method2 (v0 : int32) : int32 = │
00:00:14 #557 [Verbose] > │ let v1 : int32 = 9 + v0 │
00:00:14 #558 [Verbose] > │ v1 │
00:00:14 #559 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:14 #560 [Verbose] > │ v0 │
00:00:14 #561 [Verbose] > │ and method0 () : unit = │
00:00:14 #562 [Verbose] > │ let v0 : int32 = method1() │
00:00:14 #563 [Verbose] > │ let v1 : int32 = method2(v0) │
00:00:14 #564 [Verbose] > │ let v2 : int32 = v1 + 2 │
00:00:14 #565 [Verbose] > │ let v3 : int32 = v2 + 1 │
00:00:14 #566 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:14 #567 [Verbose] > │ System.Console.WriteLine v4 │
00:00:14 #568 [Verbose] > │ let v5 : bool = v3 = 15 │
00:00:14 #569 [Verbose] > │ let v7 : bool = │
00:00:14 #570 [Verbose] > │ if v5 then │
00:00:14 #571 [Verbose] > │ true │
00:00:14 #572 [Verbose] > │ else │
00:00:14 #573 [Verbose] > │ method3(v5) │
00:00:14 #574 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v3} / expected: %A{15}" │
00:00:14 #575 [Verbose] > │ let v9 : bool = v7 = false │
00:00:14 #576 [Verbose] > │ if v9 then │
00:00:14 #577 [Verbose] > │ failwith<unit> v8 │
00:00:14 #578 [Verbose] > │ method0() │
00:00:14 #579 [Verbose] > │ │
00:00:14 #580 [Verbose] > │ 15 │
00:00:14 #581 [Verbose] > │ │
00:00:14 #582 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #583 [Verbose] >
00:00:14 #584 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #585 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #586 [Verbose] > │ ## run_target │
00:00:14 #587 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #588 [Verbose] >
00:00:14 #589 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #590 [Verbose] > union target_runtime =
00:00:14 #591 [Verbose] > | Native
00:00:14 #592 [Verbose] > | Wasm
00:00:14 #593 [Verbose] > | Fable
00:00:14 #594 [Verbose] >
00:00:14 #595 [Verbose] > union target =
00:00:14 #596 [Verbose] > | Rust : target_runtime
00:00:14 #597 [Verbose] > | Fsharp : target_runtime
00:00:14 #598 [Verbose] >
00:00:14 #599 [Verbose] > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:00:14 #600 [Verbose] > $"let mutable result = None"
00:00:14 #601 [Verbose] > $"#if FABLE_COMPILER_RUST && \!WASM"
00:00:14 #602 [Verbose] > fn (Rust Native) () |> fun x => $"!x"
00:00:14 #603 [Verbose] > $"#endif"
00:00:14 #604 [Verbose] > $"#if FABLE_COMPILER_RUST && WASM"
00:00:14 #605 [Verbose] > fn (Rust Wasm) () |> fun x => $"!x"
00:00:14 #606 [Verbose] > $"#endif"
00:00:14 #607 [Verbose] > $"#if \!FABLE_COMPILER && \!FABLE_COMPILER_RUST && \!WASM"
00:00:14 #608 [Verbose] > fn (Fsharp Native) () |> fun x => $"!x"
00:00:14 #609 [Verbose] > $"#endif"
00:00:14 #610 [Verbose] > $"#if FABLE_COMPILER && \!FABLE_COMPILER_RUST && \!WASM"
00:00:14 #611 [Verbose] > fn (Fsharp Fable) () |> fun x => $"!x"
00:00:14 #612 [Verbose] > $"#endif"
00:00:14 #613 [Verbose] > $"#if \!FABLE_COMPILER_RUST && WASM"
00:00:14 #614 [Verbose] > fn (Fsharp Wasm) () |> fun x => $"!x"
00:00:14 #615 [Verbose] > $"#endif"
00:00:14 #616 [Verbose] > $"|> fun x -> result <- Some x"
00:00:14 #617 [Verbose] > $"result |> Option.get"
00:00:15 #618 [Verbose] >
00:00:15 #619 [Verbose] > ╭─[ 302.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #620 [Verbose] > │ () │
00:00:15 #621 [Verbose] > │ │
00:00:15 #622 [Verbose] > │ │
00:00:15 #623 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #624 [Verbose] >
00:00:15 #625 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #626 [Verbose] > // // test
00:00:15 #627 [Verbose] >
00:00:15 #628 [Verbose] > run_target function
00:00:15 #629 [Verbose] > | Fsharp (Native) => fun () => $"1uy"
00:00:15 #630 [Verbose] > | _ => fun () => $"2uy"
00:00:15 #631 [Verbose] > |> _assert_eq 1u8
00:00:15 #632 [Verbose] >
00:00:15 #633 [Verbose] > ╭─[ 285.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #634 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:15 #635 [Verbose] > │ v0 │
00:00:15 #636 [Verbose] > │ and method0 () : unit = │
00:00:15 #637 [Verbose] > │ let mutable result = None │
00:00:15 #638 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:15 #639 [Verbose] > │ let v0 : uint8 = 2uy │
00:00:15 #640 [Verbose] > │ v0 │
00:00:15 #641 [Verbose] > │ #endif │
00:00:15 #642 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:15 #643 [Verbose] > │ let v1 : uint8 = 2uy │
00:00:15 #644 [Verbose] > │ v1 │
00:00:15 #645 [Verbose] > │ #endif │
00:00:15 #646 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:15 #647 [Verbose] > │ let v2 : uint8 = 1uy │
00:00:15 #648 [Verbose] > │ v2 │
00:00:15 #649 [Verbose] > │ #endif │
00:00:15 #650 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:15 #651 [Verbose] > │ let v3 : uint8 = 2uy │
00:00:15 #652 [Verbose] > │ v3 │
00:00:15 #653 [Verbose] > │ #endif │
00:00:15 #654 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:15 #655 [Verbose] > │ let v4 : uint8 = 2uy │
00:00:15 #656 [Verbose] > │ v4 │
00:00:15 #657 [Verbose] > │ #endif │
00:00:15 #658 [Verbose] > │ |> fun x -> result <- Some x │
00:00:15 #659 [Verbose] > │ let v5 : uint8 = result |> Option.get │
00:00:15 #660 [Verbose] > │ let v6 : string = $"%A{v5}" │
00:00:15 #661 [Verbose] > │ System.Console.WriteLine v6 │
00:00:15 #662 [Verbose] > │ let v7 : bool = v5 = 1uy │
00:00:15 #663 [Verbose] > │ let v9 : bool = │
00:00:15 #664 [Verbose] > │ if v7 then │
00:00:15 #665 [Verbose] > │ true │
00:00:15 #666 [Verbose] > │ else │
00:00:15 #667 [Verbose] > │ method1(v7) │
00:00:15 #668 [Verbose] > │ let v10 : string = $"__expect / actual: %A{v5} / expected: %A{1uy}" │
00:00:15 #669 [Verbose] > │ let v11 : bool = v9 = false │
00:00:15 #670 [Verbose] > │ if v11 then │
00:00:15 #671 [Verbose] > │ failwith<unit> v10 │
00:00:15 #672 [Verbose] > │ method0() │
00:00:15 #673 [Verbose] > │ │
00:00:15 #674 [Verbose] > │ 1uy │
00:00:15 #675 [Verbose] > │ │
00:00:15 #676 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #677 [Verbose] >
00:00:15 #678 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #679 [Verbose] > // // test
00:00:15 #680 [Verbose] > // // rust=
00:00:15 #681 [Verbose] >
00:00:15 #682 [Verbose] > run_target function
00:00:15 #683 [Verbose] > | Rust (Native) => fun () => $"1uy"
00:00:15 #684 [Verbose] > | _ => fun () => $"2uy"
00:00:15 #685 [Verbose] > |> (=) 1u8
00:00:15 #686 [Verbose] > |> _assert_eq true
00:00:21 #687 [Verbose] >
00:00:21 #688 [Verbose] > ╭─[ 5.63s - return value ]─────────────────────────────────────────────────────╮
00:00:21 #689 [Verbose] > │ .rs output: │
00:00:21 #690 [Verbose] > │ true │
00:00:21 #691 [Verbose] > │ │
00:00:21 #692 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #693 [Verbose] >
00:00:21 #694 [Verbose] > ╭─[ 5.63s - stdout ]───────────────────────────────────────────────────────────╮
00:00:21 #695 [Verbose] > │ │
00:00:21 #696 [Verbose] > │ .fsx: │
00:00:21 #697 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:21 #698 [Verbose] > │ v0 │
00:00:21 #699 [Verbose] > │ and method0 () : unit = │
00:00:21 #700 [Verbose] > │ let mutable result = None │
00:00:21 #701 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:21 #702 [Verbose] > │ let v0 : uint8 = 1uy │
00:00:21 #703 [Verbose] > │ v0 │
00:00:21 #704 [Verbose] > │ #endif │
00:00:21 #705 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:21 #706 [Verbose] > │ let v1 : uint8 = 2uy │
00:00:21 #707 [Verbose] > │ v1 │
00:00:21 #708 [Verbose] > │ #endif │
00:00:21 #709 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:21 #710 [Verbose] > │ let v2 : uint8 = 2uy │
00:00:21 #711 [Verbose] > │ v2 │
00:00:21 #712 [Verbose] > │ #endif │
00:00:21 #713 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:21 #714 [Verbose] > │ let v3 : uint8 = 2uy │
00:00:21 #715 [Verbose] > │ v3 │
00:00:21 #716 [Verbose] > │ #endif │
00:00:21 #717 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:21 #718 [Verbose] > │ let v4 : uint8 = 2uy │
00:00:21 #719 [Verbose] > │ v4 │
00:00:21 #720 [Verbose] > │ #endif │
00:00:21 #721 [Verbose] > │ |> fun x -> result <- Some x │
00:00:21 #722 [Verbose] > │ let v5 : uint8 = result |> Option.get │
00:00:21 #723 [Verbose] > │ let v6 : bool = 1uy = v5 │
00:00:21 #724 [Verbose] > │ let v7 : string = $"%A{v6}" │
00:00:21 #725 [Verbose] > │ System.Console.WriteLine v7 │
00:00:21 #726 [Verbose] > │ let v9 : bool = │
00:00:21 #727 [Verbose] > │ if v6 then │
00:00:21 #728 [Verbose] > │ true │
00:00:21 #729 [Verbose] > │ else │
00:00:21 #730 [Verbose] > │ method1(v6) │
00:00:21 #731 [Verbose] > │ let v10 : string = $"__expect / actual: %A{v6} / expected: %A{true}" │
00:00:21 #732 [Verbose] > │ let v11 : bool = v9 = false │
00:00:21 #733 [Verbose] > │ if v11 then │
00:00:21 #734 [Verbose] > │ failwith<unit> v10 │
00:00:21 #735 [Verbose] > │ method0() │
00:00:21 #736 [Verbose] > │ │
00:00:21 #737 [Verbose] > │ │
00:00:21 #738 [Verbose] > │ .rs: │
00:00:21 #739 [Verbose] > │ #![allow(dead_code,)] │
00:00:21 #740 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:21 #741 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:21 #742 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:21 #743 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:21 #744 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:21 #745 [Verbose] > │ #![allow(unused_imports,)] │
00:00:21 #746 [Verbose] > │ #![allow(unused_macros,)] │
00:00:21 #747 [Verbose] > │ #![allow(unused_parens,)] │
00:00:21 #748 [Verbose] > │ #![allow(unused_variables,)] │
00:00:21 #749 [Verbose] > │ mod module_ccfa04bf { │
00:00:21 #750 [Verbose] > │ pub mod Spiral_eval { │
00:00:21 #751 [Verbose] > │ use super::*; │
00:00:21 #752 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:21 #753 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:21 #754 [Verbose] > │ use fable_library_rust::Option_::getValue; │
00:00:21 #755 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:21 #756 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:21 #757 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:21 #758 [Verbose] > │ pub fn method1(v0: bool) -> bool { v0 } │
00:00:21 #759 [Verbose] > │ pub fn method0() { │
00:00:21 #760 [Verbose] > │ let result: MutCell<Option<u8>> = MutCell::new(None::<u8>); │
00:00:21 #761 [Verbose] > │ result.set(Some(1_u8)); │
00:00:21 #762 [Verbose] > │ { │
00:00:21 #763 [Verbose] > │ let v6: bool = 1_u8 == getValue(result.get().clone()); │
00:00:21 #764 [Verbose] > │ let v7: string = sprintf!("{:?}", v6); │
00:00:21 #765 [Verbose] > │ printfn!("{0}", v7); │
00:00:21 #766 [Verbose] > │ if (if v6 { true } else { Spiral_eval::method1(v6) }) == │
00:00:21 #767 [Verbose] > │ false │
00:00:21 #768 [Verbose] > │ { │
00:00:21 #769 [Verbose] > │ panic!("{}", │
00:00:21 #770 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:21 #771 [Verbose] > │ {:?}", v6, true)); │
00:00:21 #772 [Verbose] > │ } │
00:00:21 #773 [Verbose] > │ } │
00:00:21 #774 [Verbose] > │ } │
00:00:21 #775 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:21 #776 [Verbose] > │ } │
00:00:21 #777 [Verbose] > │ } │
00:00:21 #778 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:21 #779 [Verbose] > │ │
00:00:21 #780 [Verbose] > │ │
00:00:21 #781 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #782 [Verbose] >
00:00:21 #783 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #784 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #785 [Verbose] > │ ## nameof │
00:00:21 #786 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #787 [Verbose] >
00:00:21 #788 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #789 [Verbose] > inl nameof x : string =
00:00:21 #790 [Verbose] > $"nameof !x"
00:00:21 #791 [Verbose] >
00:00:21 #792 [Verbose] > ╭─[ 275.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #793 [Verbose] > │ () │
00:00:21 #794 [Verbose] > │ │
00:00:21 #795 [Verbose] > │ │
00:00:21 #796 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #797 [Verbose] >
00:00:21 #798 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #799 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #800 [Verbose] > │ ## get_environment_variable │
00:00:21 #801 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #802 [Verbose] >
00:00:21 #803 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #804 [Verbose] > inl get_environment_variable (var : string) : string =
00:00:21 #805 [Verbose] > $"System.Environment.GetEnvironmentVariable !var"
00:00:22 #806 [Verbose] >
00:00:22 #807 [Verbose] > ╭─[ 1.53s - stdout ]───────────────────────────────────────────────────────────╮
00:00:22 #808 [Verbose] > │ () │
00:00:22 #809 [Verbose] > │ │
00:00:22 #810 [Verbose] > │ │
00:00:22 #811 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #812 [Verbose] >
00:00:22 #813 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #814 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #815 [Verbose] > │ ## memoize │
00:00:22 #816 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #817 [Verbose] >
00:00:22 #818 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #819 [Verbose] > nominal lazy t = $'Lazy<`t>'
00:00:22 #820 [Verbose] >
00:00:22 #821 [Verbose] > inl memoize forall t. (fn : () -> t) : () -> t =
00:00:22 #822 [Verbose] > inl result : lazy t = $'lazy !fn ()'
00:00:22 #823 [Verbose] > fun () => $'!result.Value'
00:00:23 #824 [Verbose] >
00:00:23 #825 [Verbose] > ╭─[ 260.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #826 [Verbose] > │ () │
00:00:23 #827 [Verbose] > │ │
00:00:23 #828 [Verbose] > │ │
00:00:23 #829 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #830 [Verbose] >
00:00:23 #831 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #832 [Verbose] > // // test
00:00:23 #833 [Verbose] >
00:00:23 #834 [Verbose] > inl count = mut 0i32
00:00:23 #835 [Verbose] > inl add =
00:00:23 #836 [Verbose] > fun () => count <- *count + 1
00:00:23 #837 [Verbose] > |> memoize
00:00:23 #838 [Verbose] >
00:00:23 #839 [Verbose] > add ()
00:00:23 #840 [Verbose] > add ()
00:00:23 #841 [Verbose] > add ()
00:00:23 #842 [Verbose] >
00:00:23 #843 [Verbose] > *count
00:00:23 #844 [Verbose] > |> _assert_eq 1
00:00:23 #845 [Verbose] >
00:00:23 #846 [Verbose] > ╭─[ 710.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #847 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:23 #848 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit = │
00:00:23 #849 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:23 #850 [Verbose] > │ let v2 : int32 = v1 + 1 │
00:00:23 #851 [Verbose] > │ v0.l0 <- v2 │
00:00:23 #852 [Verbose] > │ () │
00:00:23 #853 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:23 #854 [Verbose] > │ v0 │
00:00:23 #855 [Verbose] > │ and method0 () : unit = │
00:00:23 #856 [Verbose] > │ let v0 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #857 [Verbose] > │ let v1 : (unit -> unit) = closure0(v0) │
00:00:23 #858 [Verbose] > │ let v2 : Lazy<unit> = lazy v1 () │
00:00:23 #859 [Verbose] > │ v2.Value │
00:00:23 #860 [Verbose] > │ v2.Value │
00:00:23 #861 [Verbose] > │ v2.Value │
00:00:23 #862 [Verbose] > │ let v3 : int32 = v0.l0 │
00:00:23 #863 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:23 #864 [Verbose] > │ System.Console.WriteLine v4 │
00:00:23 #865 [Verbose] > │ let v5 : bool = v3 = 1 │
00:00:23 #866 [Verbose] > │ let v7 : bool = │
00:00:23 #867 [Verbose] > │ if v5 then │
00:00:23 #868 [Verbose] > │ true │
00:00:23 #869 [Verbose] > │ else │
00:00:23 #870 [Verbose] > │ method1(v5) │
00:00:23 #871 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v3} / expected: %A{1}" │
00:00:23 #872 [Verbose] > │ let v9 : bool = v7 = false │
00:00:23 #873 [Verbose] > │ if v9 then │
00:00:23 #874 [Verbose] > │ failwith<unit> v8 │
00:00:23 #875 [Verbose] > │ method0() │
00:00:23 #876 [Verbose] > │ │
00:00:23 #877 [Verbose] > │ 1 │
00:00:23 #878 [Verbose] > │ │
00:00:23 #879 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #880 [Verbose] >
00:00:23 #881 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #882 [Verbose] > // // test
00:00:23 #883 [Verbose] >
00:00:23 #884 [Verbose] > fun () => failwith "test"
00:00:23 #885 [Verbose] > |> _throws
00:00:23 #886 [Verbose] > |> optionm.map sm'.format_exception
00:00:23 #887 [Verbose] > |> _assert_eq (Some "System.Exception: test")
00:00:24 #888 [Verbose] >
00:00:24 #889 [Verbose] > ╭─[ 603.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #890 [Verbose] > │ type [<Struct>] US0 = │
00:00:24 #891 [Verbose] > │ | US0_0 │
00:00:24 #892 [Verbose] > │ | US0_1 of f1_0 : exn │
00:00:24 #893 [Verbose] > │ and [<Struct>] US1 = │
00:00:24 #894 [Verbose] > │ | US1_0 │
00:00:24 #895 [Verbose] > │ | US1_1 of f1_0 : string │
00:00:24 #896 [Verbose] > │ let rec closure0 () () : unit = │
00:00:24 #897 [Verbose] > │ failwith<unit> "test" │
00:00:24 #898 [Verbose] > │ and closure1 () (v0 : exn) : US0 = │
00:00:24 #899 [Verbose] > │ US0_1(v0) │
00:00:24 #900 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:24 #901 [Verbose] > │ v0 │
00:00:24 #902 [Verbose] > │ and method0 () : unit = │
00:00:24 #903 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:24 #904 [Verbose] > │ let v1 : US0 = US0_0 │
00:00:24 #905 [Verbose] > │ let v2 : (exn -> US0) = closure1() │
00:00:24 #906 [Verbose] > │ let v3 : US0 = try v0 (); v1 with ex -> ex |> v2 │
00:00:24 #907 [Verbose] > │ let v9 : US1 = │
00:00:24 #908 [Verbose] > │ match v3 with │
00:00:24 #909 [Verbose] > │ | US0_0 -> (* None *) │
00:00:24 #910 [Verbose] > │ US1_0 │
00:00:24 #911 [Verbose] > │ | US0_1(v4) -> (* Some *) │
00:00:24 #912 [Verbose] > │ let v5 : string = $"{v4.GetType ()}: {v4.Message}" │
00:00:24 #913 [Verbose] > │ US1_1(v5) │
00:00:24 #914 [Verbose] > │ let v10 : string = $"%A{v9}" │
00:00:24 #915 [Verbose] > │ System.Console.WriteLine v10 │
00:00:24 #916 [Verbose] > │ let v15 : bool = │
00:00:24 #917 [Verbose] > │ match v9 with │
00:00:24 #918 [Verbose] > │ | US1_1(v13) -> (* Some *) │
00:00:24 #919 [Verbose] > │ let v14 : bool = v13 = "System.Exception: test" │
00:00:24 #920 [Verbose] > │ v14 │
00:00:24 #921 [Verbose] > │ | _ -> │
00:00:24 #922 [Verbose] > │ false │
00:00:24 #923 [Verbose] > │ let v17 : bool = │
00:00:24 #924 [Verbose] > │ if v15 then │
00:00:24 #925 [Verbose] > │ true │
00:00:24 #926 [Verbose] > │ else │
00:00:24 #927 [Verbose] > │ method1(v15) │
00:00:24 #928 [Verbose] > │ let v18 : string = "System.Exception: test" │
00:00:24 #929 [Verbose] > │ let v19 : US1 = US1_1(v18) │
00:00:24 #930 [Verbose] > │ let v20 : string = $"__expect / actual: %A{v9} / expected: %A{v19}" │
00:00:24 #931 [Verbose] > │ let v21 : bool = v17 = false │
00:00:24 #932 [Verbose] > │ if v21 then │
00:00:24 #933 [Verbose] > │ failwith<unit> v20 │
00:00:24 #934 [Verbose] > │ method0() │
00:00:24 #935 [Verbose] > │ │
00:00:24 #936 [Verbose] > │ US1_1 "System.Exception: test" │
00:00:24 #937 [Verbose] > │ │
00:00:24 #938 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #939 [Verbose] >
00:00:24 #940 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #941 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #942 [Verbose] > │ ## new_disposable │
00:00:24 #943 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #944 [Verbose] >
00:00:24 #945 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #946 [Verbose] > inl new_disposable (fn : () -> ()) : disposable =
00:00:24 #947 [Verbose] > run_target function
00:00:24 #948 [Verbose] > | Fsharp _ => fun () => $'{ new System.IDisposable with member _.Dispose
00:00:24 #949 [Verbose] > () = !fn () }'
00:00:24 #950 [Verbose] > | Rust _ =>
00:00:24 #951 [Verbose] > inl fn = join fn
00:00:24 #952 [Verbose] > fun () => $'{ new System.IDisposable with member _.Dispose () =
00:00:24 #953 [Verbose] > Fable.Core.RustInterop.emitRustExpr () "!fn()" }'
00:00:24 #954 [Verbose] >
00:00:24 #955 [Verbose] > ╭─[ 255.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #956 [Verbose] > │ () │
00:00:24 #957 [Verbose] > │ │
00:00:24 #958 [Verbose] > │ │
00:00:24 #959 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #960 [Verbose] >
00:00:24 #961 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #962 [Verbose] > // // test
00:00:24 #963 [Verbose] >
00:00:24 #964 [Verbose] > inl new_disposable_test = mut 0i32
00:00:24 #965 [Verbose] > new_disposable (fun () => new_disposable_test <- *new_disposable_test + 1)
00:00:24 #966 [Verbose] > |> $'_.Dispose()'
00:00:24 #967 [Verbose] > *new_disposable_test |> _assert_eq 1
00:00:25 #968 [Verbose] >
00:00:25 #969 [Verbose] > ╭─[ 325.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #970 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:25 #971 [Verbose] > │ let rec closure0 (v0 : Mut0) () : unit = │
00:00:25 #972 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:25 #973 [Verbose] > │ let v2 : int32 = v1 + 1 │
00:00:25 #974 [Verbose] > │ v0.l0 <- v2 │
00:00:25 #975 [Verbose] > │ () │
00:00:25 #976 [Verbose] > │ and method1 (v0 : Mut0) : (unit -> unit) = │
00:00:25 #977 [Verbose] > │ closure0(v0) │
00:00:25 #978 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:25 #979 [Verbose] > │ v0 │
00:00:25 #980 [Verbose] > │ and method0 () : unit = │
00:00:25 #981 [Verbose] > │ let v0 : Mut0 = {l0 = 0} : Mut0 │
00:00:25 #982 [Verbose] > │ let mutable result = None │
00:00:25 #983 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:25 #984 [Verbose] > │ let v1 : (unit -> unit) = method1(v0) │
00:00:25 #985 [Verbose] > │ let v2 : System.IDisposable = { new System.IDisposable with member │
00:00:25 #986 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" } │
00:00:25 #987 [Verbose] > │ v2 │
00:00:25 #988 [Verbose] > │ #endif │
00:00:25 #989 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:25 #990 [Verbose] > │ let v3 : (unit -> unit) = method1(v0) │
00:00:25 #991 [Verbose] > │ let v4 : System.IDisposable = { new System.IDisposable with member │
00:00:25 #992 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" } │
00:00:25 #993 [Verbose] > │ v4 │
00:00:25 #994 [Verbose] > │ #endif │
00:00:25 #995 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:25 #996 [Verbose] > │ let v5 : (unit -> unit) = closure0(v0) │
00:00:25 #997 [Verbose] > │ let v6 : System.IDisposable = { new System.IDisposable with member │
00:00:25 #998 [Verbose] > │ _.Dispose () = v5 () } │
00:00:25 #999 [Verbose] > │ v6 │
00:00:25 #1000 [Verbose] > │ #endif │
00:00:25 #1001 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:25 #1002 [Verbose] > │ let v7 : System.IDisposable = { new System.IDisposable with member │
00:00:25 #1003 [Verbose] > │ _.Dispose () = v5 () } │
00:00:25 #1004 [Verbose] > │ v7 │
00:00:25 #1005 [Verbose] > │ #endif │
00:00:25 #1006 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:25 #1007 [Verbose] > │ let v8 : System.IDisposable = { new System.IDisposable with member │
00:00:25 #1008 [Verbose] > │ _.Dispose () = v5 () } │
00:00:25 #1009 [Verbose] > │ v8 │
00:00:25 #1010 [Verbose] > │ #endif │
00:00:25 #1011 [Verbose] > │ |> fun x -> result <- Some x │
00:00:25 #1012 [Verbose] > │ let v9 : System.IDisposable = result |> Option.get │
00:00:25 #1013 [Verbose] > │ let v10 : (System.IDisposable -> unit) = _.Dispose() │
00:00:25 #1014 [Verbose] > │ v10 v9 │
00:00:25 #1015 [Verbose] > │ let v11 : int32 = v0.l0 │
00:00:25 #1016 [Verbose] > │ let v12 : string = $"%A{v11}" │
00:00:25 #1017 [Verbose] > │ System.Console.WriteLine v12 │
00:00:25 #1018 [Verbose] > │ let v13 : bool = v11 = 1 │
00:00:25 #1019 [Verbose] > │ let v15 : bool = │
00:00:25 #1020 [Verbose] > │ if v13 then │
00:00:25 #1021 [Verbose] > │ true │
00:00:25 #1022 [Verbose] > │ else │
00:00:25 #1023 [Verbose] > │ method2(v13) │
00:00:25 #1024 [Verbose] > │ let v16 : string = $"__expect / actual: %A{v11} / expected: %A{1}" │
00:00:25 #1025 [Verbose] > │ let v17 : bool = v15 = false │
00:00:25 #1026 [Verbose] > │ if v17 then │
00:00:25 #1027 [Verbose] > │ failwith<unit> v16 │
00:00:25 #1028 [Verbose] > │ method0() │
00:00:25 #1029 [Verbose] > │ │
00:00:25 #1030 [Verbose] > │ 1 │
00:00:25 #1031 [Verbose] > │ │
00:00:25 #1032 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1033 [Verbose] >
00:00:25 #1034 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #1035 [Verbose] > // // test
00:00:25 #1036 [Verbose] >
00:00:25 #1037 [Verbose] > // let mutable newDisposableTest = 0
00:00:25 #1038 [Verbose] > // fun () -> task {
00:00:25 #1039 [Verbose] > // use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest +
00:00:25 #1040 [Verbose] > 1)
00:00:25 #1041 [Verbose] > // ()
00:00:25 #1042 [Verbose] > // }
00:00:25 #1043 [Verbose] > // |> fun x -> x () |> Async.AwaitTask |> Async.RunSynchronously
00:00:25 #1044 [Verbose] > // newDisposableTest |> _assertEqual 1
00:00:25 #1045 [Verbose] > // #!fsharp
00:00:25 #1046 [Verbose] > // //// test
00:00:25 #1047 [Verbose] > // let mutable newDisposableTest = 0
00:00:25 #1048 [Verbose] > // async {
00:00:25 #1049 [Verbose] > // use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest +
00:00:25 #1050 [Verbose] > 1)
00:00:25 #1051 [Verbose] > // ()
00:00:25 #1052 [Verbose] > // }
00:00:25 #1053 [Verbose] > // |> Async.RunSynchronously
00:00:25 #1054 [Verbose] > // newDisposableTest |> _assertEqual 1
00:00:25 #1055 [Verbose] > // #!fsharp
00:00:25 #1056 [Verbose] > // //// test
00:00:25 #1057 [Verbose] > // let mutable newDisposableTest = 0
00:00:25 #1058 [Verbose] > // async {
00:00:25 #1059 [Verbose] > // let x = newDisposable (fun () -> newDisposableTest <- newDisposableTest +
00:00:25 #1060 [Verbose] > 1)
00:00:25 #1061 [Verbose] > // ()
00:00:25 #1062 [Verbose] > // }
00:00:25 #1063 [Verbose] > // |> Async.RunSynchronously
00:00:25 #1064 [Verbose] > // newDisposableTest |> _assertEqual 0
00:00:25 #1065 [Verbose] >
00:00:25 #1066 [Verbose] > ╭─[ 291.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #1067 [Verbose] > │ () │
00:00:25 #1068 [Verbose] > │ │
00:00:25 #1069 [Verbose] > │ │
00:00:25 #1070 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1071 [Verbose] >
00:00:25 #1072 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 #1073 [Verbose] > //// test
00:00:25 #1074 [Verbose] >
00:00:25 #1075 [Verbose] > open System
00:00:25 #1076 [Verbose] >
00:00:25 #1077 [Verbose] > type DateTimeWithZone = {
00:00:25 #1078 [Verbose] > DateTime: DateTimeOffset
00:00:25 #1079 [Verbose] > TimeZone: TimeZoneInfo
00:00:25 #1080 [Verbose] > }
00:00:25 #1081 [Verbose] >
00:00:25 #1082 [Verbose] > // Creating an example DateTimeWithZone
00:00:25 #1083 [Verbose] > let now = DateTimeOffset.Now
00:00:25 #1084 [Verbose] > let timeZoneInfo = TimeZoneInfo.Local
00:00:25 #1085 [Verbose] > let dateTimeWithZone = { DateTime = now; TimeZone = timeZoneInfo }
00:00:25 #1086 [Verbose] >
00:00:25 #1087 [Verbose] > // Usage example: Displaying information
00:00:25 #1088 [Verbose] > printfn "DateTime: %O" dateTimeWithZone.DateTime
00:00:25 #1089 [Verbose] > printfn "Time Zone: %s" dateTimeWithZone.TimeZone.DisplayName
00:00:25 #1090 [Verbose] > printfn "Is DST: %b"
00:00:25 #1091 [Verbose] > (timeZoneInfo.IsDaylightSavingTime(dateTimeWithZone.DateTime.DateTime))
00:00:25 #1092 [Verbose] > printfn "v1: %s" (dateTimeWithZone.TimeZone.GetUtcOffset(now) |> string)
00:00:25 #1093 [Verbose] > printfn "v2: %s" (dateTimeWithZone.TimeZone |> string)
00:00:25 #1094 [Verbose] >
00:00:25 #1095 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:25 #1096 [Verbose] > #r
00:00:25 #1097 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
00:00:25 #1098 [Verbose] > spNetCore.Html.Abstractions.dll"
00:00:25 #1099 [Verbose] > #r
00:00:25 #1100 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:25 #1101 [Verbose] > otNet.Interactive.dll"
00:00:25 #1102 [Verbose] > #r
00:00:25 #1103 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:25 #1104 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:25 #1105 [Verbose] > #r
00:00:25 #1106 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:25 #1107 [Verbose] > otNet.Interactive.Formatting.dll"
00:00:25 #1108 [Verbose] > open System
00:00:25 #1109 [Verbose] > open System.IO
00:00:25 #1110 [Verbose] > open System.Text
00:00:25 #1111 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:26 #1112 [Verbose] >
00:00:26 #1113 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:26 #1114 [Verbose] > #r
00:00:26 #1115 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:26 #1116 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:26 #1117 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:26 #1118 [Verbose] > #r
00:00:26 #1119 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:26 #1120 [Verbose] > otNet.Interactive.dll"
00:00:26 #1121 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:26 #1122 [Verbose] >
00:00:26 #1123 [Verbose] > ╭─[ 1.28s - stdout ]───────────────────────────────────────────────────────────╮
00:00:26 #1124 [Verbose] > │ DateTime: 2024-03-29 10:05:13 AM -04:00 │
00:00:26 #1125 [Verbose] > │ Time Zone: (UTC-04:00) Cuiaba │
00:00:26 #1126 [Verbose] > │ Is DST: false │
00:00:26 #1127 [Verbose] > │ v1: -04:00:00 │
00:00:26 #1128 [Verbose] > │ v2: (UTC-04:00) Cuiaba │
00:00:26 #1129 [Verbose] > │ │
00:00:26 #1130 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1131 [Verbose] >
00:00:26 #1132 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 #1133 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 #1134 [Verbose] > │ ## try │
00:00:26 #1135 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1136 [Verbose] >
00:00:26 #1137 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #1138 [Verbose] > inl try forall t. (fn : () -> t) (ex_fn : exn -> ()) : option t =
00:00:26 #1139 [Verbose] > inl none = None : option t
00:00:26 #1140 [Verbose] > inl some (s : t) = Some s
00:00:26 #1141 [Verbose] > $'try !fn () |> !some with ex -> !ex_fn ex; !none '
00:00:26 #1142 [Verbose] >
00:00:26 #1143 [Verbose] > ╭─[ 233.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #1144 [Verbose] > │ () │
00:00:26 #1145 [Verbose] > │ │
00:00:26 #1146 [Verbose] > │ │
00:00:26 #1147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1148 [Verbose] >
00:00:26 #1149 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 #1150 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 #1151 [Verbose] > │ ## sleep │
00:00:26 #1152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1153 [Verbose] >
00:00:26 #1154 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #1155 [Verbose] > inl sleep (n : i32) : () =
00:00:26 #1156 [Verbose] > run_target function
00:00:26 #1157 [Verbose] > | Fsharp (Native) => fun () => $'System.Threading.Thread.Sleep' n
00:00:26 #1158 [Verbose] > | _ => fun () => ()
00:00:27 #1159 [Verbose] >
00:00:27 #1160 [Verbose] > ╭─[ 224.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #1161 [Verbose] > │ () │
00:00:27 #1162 [Verbose] > │ │
00:00:27 #1163 [Verbose] > │ │
00:00:27 #1164 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1165 [Verbose] >
00:00:27 #1166 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 #1167 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 #1168 [Verbose] > │ ## retry_fn │
00:00:27 #1169 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1170 [Verbose] >
00:00:27 #1171 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #1172 [Verbose] > inl retry_fn forall t. retries (fn : () -> t) : option t =
00:00:27 #1173 [Verbose] > let rec loop retry =
00:00:27 #1174 [Verbose] > try
00:00:27 #1175 [Verbose] > fun () =>
00:00:27 #1176 [Verbose] > if retry < retries
00:00:27 #1177 [Verbose] > then fn () |> Some
00:00:27 #1178 [Verbose] > else None
00:00:27 #1179 [Verbose] > fun ex =>
00:00:27 #1180 [Verbose] > let getLocals () = $"retry: {retry} / ex: {ex |>
00:00:27 #1181 [Verbose] > formatException} / {getLocals ()}"
00:00:27 #1182 [Verbose] > // trace Warning (fun () => "retry_fn") getLocals
00:00:27 #1183 [Verbose] > sleep 1
00:00:27 #1184 [Verbose] > |> function
00:00:27 #1185 [Verbose] > | Some x => x
00:00:27 #1186 [Verbose] > | None => loop (retry + 1)
00:00:27 #1187 [Verbose] > loop 0
00:00:27 #1188 [Verbose] >
00:00:27 #1189 [Verbose] > ╭─[ 317.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #1190 [Verbose] > │ () │
00:00:27 #1191 [Verbose] > │ │
00:00:27 #1192 [Verbose] > │ │
00:00:27 #1193 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1194 [Verbose] >
00:00:27 #1195 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #1196 [Verbose] > // // test
00:00:27 #1197 [Verbose] >
00:00:27 #1198 [Verbose] > inl retry_fn_test = mut 0i32
00:00:27 #1199 [Verbose] > fun () =>
00:00:27 #1200 [Verbose] > retry_fn_test <- *retry_fn_test + 1
00:00:27 #1201 [Verbose] > *retry_fn_test
00:00:27 #1202 [Verbose] > |> retry_fn 3i32
00:00:27 #1203 [Verbose] > |> _assert_eq (Some 1i32)
00:00:27 #1204 [Verbose] >
00:00:27 #1205 [Verbose] > ╭─[ 290.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #1206 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:27 #1207 [Verbose] > │ and [<Struct>] US0 = │
00:00:27 #1208 [Verbose] > │ | US0_0 │
00:00:27 #1209 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:27 #1210 [Verbose] > │ and [<Struct>] US1 = │
00:00:27 #1211 [Verbose] > │ | US1_0 │
00:00:27 #1212 [Verbose] > │ | US1_1 of f1_0 : US0 │
00:00:27 #1213 [Verbose] > │ let rec closure0 (v0 : Mut0, v1 : int32) () : US0 = │
00:00:27 #1214 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:27 #1215 [Verbose] > │ if v2 then │
00:00:27 #1216 [Verbose] > │ let v3 : int32 = v0.l0 │
00:00:27 #1217 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:27 #1218 [Verbose] > │ v0.l0 <- v4 │
00:00:27 #1219 [Verbose] > │ let v5 : int32 = v0.l0 │
00:00:27 #1220 [Verbose] > │ US0_1(v5) │
00:00:27 #1221 [Verbose] > │ else │
00:00:27 #1222 [Verbose] > │ US0_0 │
00:00:27 #1223 [Verbose] > │ and closure1 () (v0 : US0) : US1 = │
00:00:27 #1224 [Verbose] > │ US1_1(v0) │
00:00:27 #1225 [Verbose] > │ and closure2 () (v0 : exn) : unit = │
00:00:27 #1226 [Verbose] > │ let mutable result = None │
00:00:27 #1227 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:27 #1228 [Verbose] > │ () │
00:00:27 #1229 [Verbose] > │ #endif │
00:00:27 #1230 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:27 #1231 [Verbose] > │ () │
00:00:27 #1232 [Verbose] > │ #endif │
00:00:27 #1233 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:27 #1234 [Verbose] > │ let v1 : (int32 -> unit) = System.Threading.Thread.Sleep │
00:00:27 #1235 [Verbose] > │ v1 1 │
00:00:27 #1236 [Verbose] > │ () │
00:00:27 #1237 [Verbose] > │ #endif │
00:00:27 #1238 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:27 #1239 [Verbose] > │ () │
00:00:27 #1240 [Verbose] > │ #endif │
00:00:27 #1241 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:27 #1242 [Verbose] > │ () │
00:00:27 #1243 [Verbose] > │ #endif │
00:00:27 #1244 [Verbose] > │ |> fun x -> result <- Some x │
00:00:27 #1245 [Verbose] > │ result |> Option.get │
00:00:27 #1246 [Verbose] > │ () │
00:00:27 #1247 [Verbose] > │ and method1 (v0 : Mut0, v1 : int32) : US0 = │
00:00:27 #1248 [Verbose] > │ let v2 : (unit -> US0) = closure0(v0, v1) │
00:00:27 #1249 [Verbose] > │ let v3 : (US0 -> US1) = closure1() │
00:00:27 #1250 [Verbose] > │ let v4 : (exn -> unit) = closure2() │
00:00:27 #1251 [Verbose] > │ let v5 : US1 = US1_0 │
00:00:27 #1252 [Verbose] > │ let v6 : US1 = try v2 () |> v3 with ex -> v4 ex; v5 │
00:00:27 #1253 [Verbose] > │ match v6 with │
00:00:27 #1254 [Verbose] > │ | US1_0 -> (* None *) │
00:00:27 #1255 [Verbose] > │ let v8 : int32 = v1 + 1 │
00:00:27 #1256 [Verbose] > │ method1(v0, v8) │
00:00:27 #1257 [Verbose] > │ | US1_1(v7) -> (* Some *) │
00:00:27 #1258 [Verbose] > │ v7 │
00:00:27 #1259 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:27 #1260 [Verbose] > │ v0 │
00:00:27 #1261 [Verbose] > │ and method0 () : unit = │
00:00:27 #1262 [Verbose] > │ let v0 : Mut0 = {l0 = 0} : Mut0 │
00:00:27 #1263 [Verbose] > │ let v1 : int32 = 0 │
00:00:27 #1264 [Verbose] > │ let v2 : US0 = method1(v0, v1) │
00:00:27 #1265 [Verbose] > │ let v3 : string = $"%A{v2}" │
00:00:27 #1266 [Verbose] > │ System.Console.WriteLine v3 │
00:00:27 #1267 [Verbose] > │ let v7 : bool = │
00:00:27 #1268 [Verbose] > │ match v2 with │
00:00:27 #1269 [Verbose] > │ | US0_1(v5) -> (* Some *) │
00:00:27 #1270 [Verbose] > │ let v6 : bool = v5 = 1 │
00:00:27 #1271 [Verbose] > │ v6 │
00:00:27 #1272 [Verbose] > │ | _ -> │
00:00:27 #1273 [Verbose] > │ false │
00:00:27 #1274 [Verbose] > │ let v9 : bool = │
00:00:27 #1275 [Verbose] > │ if v7 then │
00:00:27 #1276 [Verbose] > │ true │
00:00:27 #1277 [Verbose] > │ else │
00:00:27 #1278 [Verbose] > │ method2(v7) │
00:00:27 #1279 [Verbose] > │ let v10 : US0 = US0_1(1) │
00:00:27 #1280 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v2} / expected: %A{v10}" │
00:00:27 #1281 [Verbose] > │ let v12 : bool = v9 = false │
00:00:27 #1282 [Verbose] > │ if v12 then │
00:00:27 #1283 [Verbose] > │ failwith<unit> v11 │
00:00:27 #1284 [Verbose] > │ method0() │
00:00:27 #1285 [Verbose] > │ │
00:00:27 #1286 [Verbose] > │ US0_1 1 │
00:00:27 #1287 [Verbose] > │ │
00:00:27 #1288 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1289 [Verbose] >
00:00:27 #1290 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #1291 [Verbose] > // // test
00:00:27 #1292 [Verbose] >
00:00:27 #1293 [Verbose] > inl retry_fn_test = mut 0i32
00:00:27 #1294 [Verbose] > fun () =>
00:00:27 #1295 [Verbose] > if *retry_fn_test >= 2
00:00:27 #1296 [Verbose] > then *retry_fn_test
00:00:27 #1297 [Verbose] > else
00:00:27 #1298 [Verbose] > retry_fn_test <- *retry_fn_test + 1
00:00:27 #1299 [Verbose] > failwith "test"
00:00:27 #1300 [Verbose] > |> retry_fn 3i32
00:00:27 #1301 [Verbose] > |> _assert_eq (Some 2i32)
00:00:28 #1302 [Verbose] >
00:00:28 #1303 [Verbose] > ╭─[ 337.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #1304 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:28 #1305 [Verbose] > │ and [<Struct>] US0 = │
00:00:28 #1306 [Verbose] > │ | US0_0 │
00:00:28 #1307 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:28 #1308 [Verbose] > │ and [<Struct>] US1 = │
00:00:28 #1309 [Verbose] > │ | US1_0 │
00:00:28 #1310 [Verbose] > │ | US1_1 of f1_0 : US0 │
00:00:28 #1311 [Verbose] > │ let rec closure0 (v0 : Mut0, v1 : int32) () : US0 = │
00:00:28 #1312 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:28 #1313 [Verbose] > │ if v2 then │
00:00:28 #1314 [Verbose] > │ let v3 : int32 = v0.l0 │
00:00:28 #1315 [Verbose] > │ let v4 : bool = v3 >= 2 │
00:00:28 #1316 [Verbose] > │ let v9 : int32 = │
00:00:28 #1317 [Verbose] > │ if v4 then │
00:00:28 #1318 [Verbose] > │ let v5 : int32 = v0.l0 │
00:00:28 #1319 [Verbose] > │ v5 │
00:00:28 #1320 [Verbose] > │ else │
00:00:28 #1321 [Verbose] > │ let v6 : int32 = v0.l0 │
00:00:28 #1322 [Verbose] > │ let v7 : int32 = v6 + 1 │
00:00:28 #1323 [Verbose] > │ v0.l0 <- v7 │
00:00:28 #1324 [Verbose] > │ failwith<int32> "test" │
00:00:28 #1325 [Verbose] > │ US0_1(v9) │
00:00:28 #1326 [Verbose] > │ else │
00:00:28 #1327 [Verbose] > │ US0_0 │
00:00:28 #1328 [Verbose] > │ and closure1 () (v0 : US0) : US1 = │
00:00:28 #1329 [Verbose] > │ US1_1(v0) │
00:00:28 #1330 [Verbose] > │ and closure2 () (v0 : exn) : unit = │
00:00:28 #1331 [Verbose] > │ let mutable result = None │
00:00:28 #1332 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:28 #1333 [Verbose] > │ () │
00:00:28 #1334 [Verbose] > │ #endif │
00:00:28 #1335 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:28 #1336 [Verbose] > │ () │
00:00:28 #1337 [Verbose] > │ #endif │
00:00:28 #1338 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:28 #1339 [Verbose] > │ let v1 : (int32 -> unit) = System.Threading.Thread.Sleep │
00:00:28 #1340 [Verbose] > │ v1 1 │
00:00:28 #1341 [Verbose] > │ () │
00:00:28 #1342 [Verbose] > │ #endif │
00:00:28 #1343 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:28 #1344 [Verbose] > │ () │
00:00:28 #1345 [Verbose] > │ #endif │
00:00:28 #1346 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:28 #1347 [Verbose] > │ () │
00:00:28 #1348 [Verbose] > │ #endif │
00:00:28 #1349 [Verbose] > │ |> fun x -> result <- Some x │
00:00:28 #1350 [Verbose] > │ result |> Option.get │
00:00:28 #1351 [Verbose] > │ () │
00:00:28 #1352 [Verbose] > │ and method1 (v0 : Mut0, v1 : int32) : US0 = │
00:00:28 #1353 [Verbose] > │ let v2 : (unit -> US0) = closure0(v0, v1) │
00:00:28 #1354 [Verbose] > │ let v3 : (US0 -> US1) = closure1() │
00:00:28 #1355 [Verbose] > │ let v4 : (exn -> unit) = closure2() │
00:00:28 #1356 [Verbose] > │ let v5 : US1 = US1_0 │
00:00:28 #1357 [Verbose] > │ let v6 : US1 = try v2 () |> v3 with ex -> v4 ex; v5 │
00:00:28 #1358 [Verbose] > │ match v6 with │
00:00:28 #1359 [Verbose] > │ | US1_0 -> (* None *) │
00:00:28 #1360 [Verbose] > │ let v8 : int32 = v1 + 1 │
00:00:28 #1361 [Verbose] > │ method1(v0, v8) │
00:00:28 #1362 [Verbose] > │ | US1_1(v7) -> (* Some *) │
00:00:28 #1363 [Verbose] > │ v7 │
00:00:28 #1364 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:28 #1365 [Verbose] > │ v0 │
00:00:28 #1366 [Verbose] > │ and method0 () : unit = │
00:00:28 #1367 [Verbose] > │ let v0 : Mut0 = {l0 = 0} : Mut0 │
00:00:28 #1368 [Verbose] > │ let v1 : int32 = 0 │
00:00:28 #1369 [Verbose] > │ let v2 : US0 = method1(v0, v1) │
00:00:28 #1370 [Verbose] > │ let v3 : string = $"%A{v2}" │
00:00:28 #1371 [Verbose] > │ System.Console.WriteLine v3 │
00:00:28 #1372 [Verbose] > │ let v7 : bool = │
00:00:28 #1373 [Verbose] > │ match v2 with │
00:00:28 #1374 [Verbose] > │ | US0_1(v5) -> (* Some *) │
00:00:28 #1375 [Verbose] > │ let v6 : bool = v5 = 2 │
00:00:28 #1376 [Verbose] > │ v6 │
00:00:28 #1377 [Verbose] > │ | _ -> │
00:00:28 #1378 [Verbose] > │ false │
00:00:28 #1379 [Verbose] > │ let v9 : bool = │
00:00:28 #1380 [Verbose] > │ if v7 then │
00:00:28 #1381 [Verbose] > │ true │
00:00:28 #1382 [Verbose] > │ else │
00:00:28 #1383 [Verbose] > │ method2(v7) │
00:00:28 #1384 [Verbose] > │ let v10 : US0 = US0_1(2) │
00:00:28 #1385 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v2} / expected: %A{v10}" │
00:00:28 #1386 [Verbose] > │ let v12 : bool = v9 = false │
00:00:28 #1387 [Verbose] > │ if v12 then │
00:00:28 #1388 [Verbose] > │ failwith<unit> v11 │
00:00:28 #1389 [Verbose] > │ method0() │
00:00:28 #1390 [Verbose] > │ │
00:00:28 #1391 [Verbose] > │ US0_1 2 │
00:00:28 #1392 [Verbose] > │ │
00:00:28 #1393 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #1394 [Verbose] >
00:00:28 #1395 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #1396 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #1397 [Verbose] > │ ## main │
00:00:28 #1398 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #1399 [Verbose] >
00:00:28 #1400 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #1401 [Verbose] > inl main () =
00:00:28 #1402 [Verbose] > inl retry_fn (r : i32) (x : () -> _) : optionm'.option' () =
00:00:28 #1403 [Verbose] > retry_fn r x |> optionm'.box
00:00:28 #1404 [Verbose] > $"let new_disposable x = !new_disposable x" : ()
00:00:28 #1405 [Verbose] > $"let retry_fn x = !retry_fn x" : ()
00:00:28 #1406 [Verbose] >
00:00:28 #1407 [Verbose] > ╭─[ 361.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #1408 [Verbose] > │ type [<Struct>] US0 = │
00:00:28 #1409 [Verbose] > │ | US0_0 │
00:00:28 #1410 [Verbose] > │ | US0_1 │
00:00:28 #1411 [Verbose] > │ and [<Struct>] US1 = │
00:00:28 #1412 [Verbose] > │ | US1_0 │
00:00:28 #1413 [Verbose] > │ | US1_1 of f1_0 : US0 │
00:00:28 #1414 [Verbose] > │ let rec method0 (v0 : (unit -> unit)) : (unit -> unit) = │
00:00:28 #1415 [Verbose] > │ v0 │
00:00:28 #1416 [Verbose] > │ and closure0 () (v0 : (unit -> unit)) : System.IDisposable = │
00:00:28 #1417 [Verbose] > │ let mutable result = None │
00:00:28 #1418 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:28 #1419 [Verbose] > │ let v1 : (unit -> unit) = method0(v0) │
00:00:28 #1420 [Verbose] > │ let v2 : System.IDisposable = { new System.IDisposable with member │
00:00:28 #1421 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" } │
00:00:28 #1422 [Verbose] > │ v2 │
00:00:28 #1423 [Verbose] > │ #endif │
00:00:28 #1424 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:28 #1425 [Verbose] > │ let v3 : (unit -> unit) = method0(v0) │
00:00:28 #1426 [Verbose] > │ let v4 : System.IDisposable = { new System.IDisposable with member │
00:00:28 #1427 [Verbose] > │ _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" } │
00:00:28 #1428 [Verbose] > │ v4 │
00:00:28 #1429 [Verbose] > │ #endif │
00:00:28 #1430 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:28 #1431 [Verbose] > │ let v5 : System.IDisposable = { new System.IDisposable with member │
00:00:28 #1432 [Verbose] > │ _.Dispose () = v0 () } │
00:00:28 #1433 [Verbose] > │ v5 │
00:00:28 #1434 [Verbose] > │ #endif │
00:00:28 #1435 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:28 #1436 [Verbose] > │ let v6 : System.IDisposable = { new System.IDisposable with member │
00:00:28 #1437 [Verbose] > │ _.Dispose () = v0 () } │
00:00:28 #1438 [Verbose] > │ v6 │
00:00:28 #1439 [Verbose] > │ #endif │
00:00:28 #1440 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:28 #1441 [Verbose] > │ let v7 : System.IDisposable = { new System.IDisposable with member │
00:00:28 #1442 [Verbose] > │ _.Dispose () = v0 () } │
00:00:28 #1443 [Verbose] > │ v7 │
00:00:28 #1444 [Verbose] > │ #endif │
00:00:28 #1445 [Verbose] > │ |> fun x -> result <- Some x │
00:00:28 #1446 [Verbose] > │ let v8 : System.IDisposable = result |> Option.get │
00:00:28 #1447 [Verbose] > │ v8 │
00:00:28 #1448 [Verbose] > │ and closure3 (v0 : int32, v1 : (unit -> unit), v2 : int32) () : US0 = │
00:00:28 #1449 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:28 #1450 [Verbose] > │ if v3 then │
00:00:28 #1451 [Verbose] > │ v1 () │
00:00:28 #1452 [Verbose] > │ US0_1 │
00:00:28 #1453 [Verbose] > │ else │
00:00:28 #1454 [Verbose] > │ US0_0 │
00:00:28 #1455 [Verbose] > │ and closure4 () (v0 : US0) : US1 = │
00:00:28 #1456 [Verbose] > │ US1_1(v0) │
00:00:28 #1457 [Verbose] > │ and closure5 () (v0 : exn) : unit = │
00:00:28 #1458 [Verbose] > │ let mutable result = None │
00:00:28 #1459 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:28 #1460 [Verbose] > │ () │
00:00:28 #1461 [Verbose] > │ #endif │
00:00:28 #1462 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:28 #1463 [Verbose] > │ () │
00:00:28 #1464 [Verbose] > │ #endif │
00:00:28 #1465 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:28 #1466 [Verbose] > │ let v1 : (int32 -> unit) = System.Threading.Thread.Sleep │
00:00:28 #1467 [Verbose] > │ v1 1 │
00:00:28 #1468 [Verbose] > │ () │
00:00:28 #1469 [Verbose] > │ #endif │
00:00:28 #1470 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:28 #1471 [Verbose] > │ () │
00:00:28 #1472 [Verbose] > │ #endif │
00:00:28 #1473 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:28 #1474 [Verbose] > │ () │
00:00:28 #1475 [Verbose] > │ #endif │
00:00:28 #1476 [Verbose] > │ |> fun x -> result <- Some x │
00:00:28 #1477 [Verbose] > │ result |> Option.get │
00:00:28 #1478 [Verbose] > │ () │
00:00:28 #1479 [Verbose] > │ and method1 (v0 : int32, v1 : (unit -> unit), v2 : int32) : US0 = │
00:00:28 #1480 [Verbose] > │ let v3 : (unit -> US0) = closure3(v0, v1, v2) │
00:00:28 #1481 [Verbose] > │ let v4 : (US0 -> US1) = closure4() │
00:00:28 #1482 [Verbose] > │ let v5 : (exn -> unit) = closure5() │
00:00:28 #1483 [Verbose] > │ let v6 : US1 = US1_0 │
00:00:28 #1484 [Verbose] > │ let v7 : US1 = try v3 () |> v4 with ex -> v5 ex; v6 │
00:00:28 #1485 [Verbose] > │ match v7 with │
00:00:28 #1486 [Verbose] > │ | US1_0 -> (* None *) │
00:00:28 #1487 [Verbose] > │ let v9 : int32 = v2 + 1 │
00:00:28 #1488 [Verbose] > │ method1(v0, v1, v9) │
00:00:28 #1489 [Verbose] > │ | US1_1(v8) -> (* Some *) │
00:00:28 #1490 [Verbose] > │ v8 │
00:00:28 #1491 [Verbose] > │ and closure2 (v0 : int32) (v1 : (unit -> unit)) : unit option = │
00:00:28 #1492 [Verbose] > │ let v2 : int32 = 0 │
00:00:28 #1493 [Verbose] > │ let v3 : US0 = method1(v0, v1, v2) │
00:00:28 #1494 [Verbose] > │ match v3 with │
00:00:28 #1495 [Verbose] > │ | US0_0 -> (* None *) │
00:00:28 #1496 [Verbose] > │ let v5 : unit option = None │
00:00:28 #1497 [Verbose] > │ v5 │
00:00:28 #1498 [Verbose] > │ | US0_1 -> (* Some *) │
00:00:28 #1499 [Verbose] > │ let v4 : unit option = Some () │
00:00:28 #1500 [Verbose] > │ v4 │
00:00:28 #1501 [Verbose] > │ and closure1 () (v0 : int32) : ((unit -> unit) -> unit option) = │
00:00:28 #1502 [Verbose] > │ closure2(v0) │
00:00:28 #1503 [Verbose] > │ let v0 : ((unit -> unit) -> System.IDisposable) = closure0() │
00:00:28 #1504 [Verbose] > │ let new_disposable x = v0 x │
00:00:28 #1505 [Verbose] > │ let v1 : (int32 -> ((unit -> unit) -> unit option)) = closure1() │
00:00:28 #1506 [Verbose] > │ let retry_fn x = v1 x │
00:00:28 #1507 [Verbose] > │ () │
00:00:28 #1508 [Verbose] > │ │
00:00:28 #1509 [Verbose] > │ │
00:00:28 #1510 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1511 [Verbose] > [NbConvertApp] Converting notebook common.dib.ipynb to html
00:00:30 #1512 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:30 #1513 [Verbose] > validate(nb)
00:00:31 #1514 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:31 #1515 [Verbose] > return _pygments_highlight(
00:00:31 #1516 [Verbose] > [NbConvertApp] Writing 387712 bytes to common.dib.html
00:00:32 #1517 [Debug] executeAsync / exitCode: 0 / output.Length: 94555
00:00:32 #1518 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 console.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # console │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:07 #13 [Verbose] >
00:00:07 #14 [Verbose] > ╭─[ 3.97s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #15 [Verbose] > │ () │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > │ │
00:00:07 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #19 [Verbose] >
00:00:07 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #22 [Verbose] > │ ## write_line │
00:00:07 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #24 [Verbose] >
00:00:07 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #26 [Verbose] > inl write_line obj : () =
00:00:07 #27 [Verbose] > $"System.Console.WriteLine !obj"
00:00:07 #28 [Verbose] >
00:00:07 #29 [Verbose] > ╭─[ 268.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #30 [Verbose] > │ () │
00:00:07 #31 [Verbose] > │ │
00:00:07 #32 [Verbose] > │ │
00:00:07 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #34 [Verbose] >
00:00:07 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #36 [Verbose] > inl write_line_ ~obj : () =
00:00:07 #37 [Verbose] > $"System.Console.WriteLine !obj"
00:00:07 #38 [Verbose] >
00:00:07 #39 [Verbose] > ╭─[ 256.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #40 [Verbose] > │ () │
00:00:07 #41 [Verbose] > │ │
00:00:07 #42 [Verbose] > │ │
00:00:07 #43 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #44 [Verbose] >
00:00:07 #45 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #46 [Verbose] > nominal console_color = $"System.ConsoleColor"
00:00:07 #47 [Verbose] >
00:00:07 #48 [Verbose] > inl reset_color () : () =
00:00:07 #49 [Verbose] > run_target function
00:00:07 #50 [Verbose] > | Fsharp => fun () => $"System.Console.ResetColor ()"
00:00:07 #51 [Verbose] > | _ => fun () => ()
00:00:07 #52 [Verbose] >
00:00:07 #53 [Verbose] > inl set_foreground_color (color : console_color) : () =
00:00:07 #54 [Verbose] > run_target function
00:00:07 #55 [Verbose] > | Fsharp => fun () => $"System.Console.ForegroundColor <- !color"
00:00:07 #56 [Verbose] > | _ => fun () => ()
00:00:08 #57 [Verbose] >
00:00:08 #58 [Verbose] > ╭─[ 293.63ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #59 [Verbose] > │ () │
00:00:08 #60 [Verbose] > │ │
00:00:08 #61 [Verbose] > │ │
00:00:08 #62 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #63 [Verbose] > [NbConvertApp] Converting notebook console.dib.ipynb to html
00:00:10 #64 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:10 #65 [Verbose] > validate(nb)
00:00:10 #66 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:10 #67 [Verbose] > return _pygments_highlight(
00:00:10 #68 [Verbose] > [NbConvertApp] Writing 276933 bytes to console.dib.html
00:00:11 #69 [Debug] executeAsync / exitCode: 0 / output.Length: 3869
00:00:11 #70 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 date_time.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # date_time │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > open rust_operators
00:00:02 #11 [Verbose] > open sm'_operators
00:00:07 #12 [Verbose] >
00:00:07 #13 [Verbose] > ╭─[ 4.28s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #14 [Verbose] > │ () │
00:00:07 #15 [Verbose] > │ │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #18 [Verbose] >
00:00:07 #19 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #20 [Verbose] > // // test
00:00:07 #21 [Verbose] >
00:00:07 #22 [Verbose] > open testing
00:00:07 #23 [Verbose] >
00:00:07 #24 [Verbose] > ╭─[ 222.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #25 [Verbose] > │ () │
00:00:07 #26 [Verbose] > │ │
00:00:07 #27 [Verbose] > │ │
00:00:07 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #29 [Verbose] >
00:00:07 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #32 [Verbose] > │ ## types │
00:00:07 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #34 [Verbose] >
00:00:07 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #36 [Verbose] > inl types () =
00:00:07 #37 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::DateTime<$0>\")>]]
00:00:07 #38 [Verbose] > type chrono_DateTime<'T> = class end"
00:00:07 #39 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::Local\")>]] type
00:00:07 #40 [Verbose] > chrono_Local = class end"
00:00:07 #41 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::NaiveDateTime\")>]]
00:00:07 #42 [Verbose] > type chrono_NaiveDateTime = class end"
00:00:07 #43 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"chrono::Utc\")>]] type
00:00:07 #44 [Verbose] > chrono_Utc = class end"
00:00:07 #45 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::time::Duration\")>]]
00:00:07 #46 [Verbose] > type std_time_Duration = class end"
00:00:07 #47 [Verbose] >
00:00:07 #48 [Verbose] > ╭─[ 255.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #49 [Verbose] > │ () │
00:00:07 #50 [Verbose] > │ │
00:00:07 #51 [Verbose] > │ │
00:00:07 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #53 [Verbose] >
00:00:07 #54 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #55 [Verbose] > nominal ticks = i64
00:00:07 #56 [Verbose] > nominal duration = $"std_time_Duration"
00:00:07 #57 [Verbose] > nominal date_time = $"System.DateTime"
00:00:07 #58 [Verbose] > nominal date_time' t = $"chrono_DateTime<`t>"
00:00:07 #59 [Verbose] > nominal local = $"chrono_Local"
00:00:07 #60 [Verbose] > nominal naive_date_time = $"chrono_NaiveDateTime"
00:00:07 #61 [Verbose] > nominal utc = $"chrono_Utc"
00:00:07 #62 [Verbose] >
00:00:07 #63 [Verbose] > ╭─[ 305.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #64 [Verbose] > │ () │
00:00:07 #65 [Verbose] > │ │
00:00:07 #66 [Verbose] > │ │
00:00:07 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #68 [Verbose] >
00:00:07 #69 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #70 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #71 [Verbose] > │ ## naive_utc │
00:00:07 #72 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #73 [Verbose] >
00:00:07 #74 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #75 [Verbose] > inl naive_utc (date_time : date_time' utc) : naive_date_time =
00:00:07 #76 [Verbose] > inl date_time = join date_time
00:00:07 #77 [Verbose] > !\($'"!date_time.naive_utc()"')
00:00:08 #78 [Verbose] >
00:00:08 #79 [Verbose] > ╭─[ 243.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #80 [Verbose] > │ () │
00:00:08 #81 [Verbose] > │ │
00:00:08 #82 [Verbose] > │ │
00:00:08 #83 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #84 [Verbose] >
00:00:08 #85 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #86 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #87 [Verbose] > │ ## to_local │
00:00:08 #88 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #89 [Verbose] >
00:00:08 #90 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #91 [Verbose] > inl to_local (date_time : date_time' utc) : date_time' local =
00:00:08 #92 [Verbose] > inl naive_date_time = date_time |> naive_utc
00:00:08 #93 [Verbose] > !\($'"chrono::offset::TimeZone::from_utc_datetime(&chrono::Local,
00:00:08 #94 [Verbose] > &!naive_date_time)"')
00:00:08 #95 [Verbose] >
00:00:08 #96 [Verbose] > ╭─[ 249.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #97 [Verbose] > │ () │
00:00:08 #98 [Verbose] > │ │
00:00:08 #99 [Verbose] > │ │
00:00:08 #100 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #101 [Verbose] >
00:00:08 #102 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #103 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #104 [Verbose] > │ ## from_timestamp' │
00:00:08 #105 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #106 [Verbose] >
00:00:08 #107 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #108 [Verbose] > inl from_timestamp' forall t {number; int}. (timestamp : t) : option (date_time'
00:00:08 #109 [Verbose] > utc) =
00:00:08 #110 [Verbose] > inl timestamp = join timestamp
00:00:08 #111 [Verbose] > inl result : optionm'.option' (date_time' utc) =
00:00:08 #112 [Verbose] > !\($'"chrono::DateTime::from_timestamp_micros(!timestamp / 1000i64)"')
00:00:08 #113 [Verbose] > result |> optionm'.unbox
00:00:08 #114 [Verbose] >
00:00:08 #115 [Verbose] > ╭─[ 267.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #116 [Verbose] > │ () │
00:00:08 #117 [Verbose] > │ │
00:00:08 #118 [Verbose] > │ │
00:00:08 #119 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #120 [Verbose] >
00:00:08 #121 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #122 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #123 [Verbose] > │ ## format' │
00:00:08 #124 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #125 [Verbose] >
00:00:08 #126 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #127 [Verbose] > inl format' (format : string) (date_time : date_time' utc) : sm'.std_string =
00:00:08 #128 [Verbose] > inl format = #format
00:00:08 #129 [Verbose] > inl date_time = join date_time
00:00:08 #130 [Verbose] > !\($'"!date_time.format(!format).to_string()"')
00:00:08 #131 [Verbose] >
00:00:08 #132 [Verbose] > ╭─[ 307.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #133 [Verbose] > │ () │
00:00:08 #134 [Verbose] > │ │
00:00:08 #135 [Verbose] > │ │
00:00:08 #136 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #137 [Verbose] >
00:00:08 #138 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #139 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #140 [Verbose] > │ ## format'' │
00:00:08 #141 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #142 [Verbose] >
00:00:08 #143 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #144 [Verbose] > inl format'' (format : string) (date_time : date_time' _) : sm'.std_string =
00:00:08 #145 [Verbose] > inl format = #format
00:00:08 #146 [Verbose] > inl date_time = join date_time
00:00:08 #147 [Verbose] > !\($'"!date_time.format(!format).to_string()"')
00:00:09 #148 [Verbose] >
00:00:09 #149 [Verbose] > ╭─[ 234.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #150 [Verbose] > │ () │
00:00:09 #151 [Verbose] > │ │
00:00:09 #152 [Verbose] > │ │
00:00:09 #153 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #154 [Verbose] >
00:00:09 #155 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #156 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #157 [Verbose] > │ ## format_timestamp │
00:00:09 #158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #159 [Verbose] >
00:00:09 #160 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #161 [Verbose] > inl format_timestamp (timestamp : sm'.std_string) =
00:00:09 #162 [Verbose] > inl timestamp = join timestamp
00:00:09 #163 [Verbose] > timestamp
00:00:09 #164 [Verbose] > |> fun x => !\($'"!x.parse().unwrap()"') : i64
00:00:09 #165 [Verbose] > |> from_timestamp'
00:00:09 #166 [Verbose] > |> optionm.map fun x =>
00:00:09 #167 [Verbose] > x
00:00:09 #168 [Verbose] > |> to_local
00:00:09 #169 [Verbose] > |> format'' "%Y-%m-%d %H:%M:%S"
00:00:09 #170 [Verbose] > |> sm'.from_std_string
00:00:09 #171 [Verbose] > |> resultm.from_option
00:00:09 #172 [Verbose] >
00:00:09 #173 [Verbose] > ╭─[ 245.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #174 [Verbose] > │ () │
00:00:09 #175 [Verbose] > │ │
00:00:09 #176 [Verbose] > │ │
00:00:09 #177 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #178 [Verbose] >
00:00:09 #179 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #180 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #181 [Verbose] > │ ## duration_from_millis │
00:00:09 #182 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #183 [Verbose] >
00:00:09 #184 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #185 [Verbose] > inl duration_from_millis (ms : u64) : duration =
00:00:09 #186 [Verbose] > inl ms = join ms
00:00:09 #187 [Verbose] > !\($'"std::time::Duration::from_millis(!ms)"')
00:00:09 #188 [Verbose] >
00:00:09 #189 [Verbose] > ╭─[ 225.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #190 [Verbose] > │ () │
00:00:09 #191 [Verbose] > │ │
00:00:09 #192 [Verbose] > │ │
00:00:09 #193 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #194 [Verbose] >
00:00:09 #195 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #196 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #197 [Verbose] > │ ## get_environment_variable │
00:00:09 #198 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #199 [Verbose] >
00:00:09 #200 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #201 [Verbose] > inl get_environment_variable (var : string) : string =
00:00:09 #202 [Verbose] > $"System.Environment.GetEnvironmentVariable !var"
00:00:09 #203 [Verbose] >
00:00:09 #204 [Verbose] > ╭─[ 252.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #205 [Verbose] > │ () │
00:00:09 #206 [Verbose] > │ │
00:00:09 #207 [Verbose] > │ │
00:00:09 #208 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #209 [Verbose] >
00:00:09 #210 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #211 [Verbose] > // // test
00:00:09 #212 [Verbose] >
00:00:09 #213 [Verbose] > inl test_guid () =
00:00:09 #214 [Verbose] > guid.new_guid "FEDCBA98-7654-3210-FEDC-BA9876543210"
00:00:10 #215 [Verbose] >
00:00:10 #216 [Verbose] > ╭─[ 216.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #217 [Verbose] > │ () │
00:00:10 #218 [Verbose] > │ │
00:00:10 #219 [Verbose] > │ │
00:00:10 #220 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #221 [Verbose] >
00:00:10 #222 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #223 [Verbose] > type ticks_guid = guid.guid
00:00:10 #224 [Verbose] > type date_time_guid = guid.guid
00:00:10 #225 [Verbose] >
00:00:10 #226 [Verbose] > ╭─[ 215.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #227 [Verbose] > │ () │
00:00:10 #228 [Verbose] > │ │
00:00:10 #229 [Verbose] > │ │
00:00:10 #230 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #231 [Verbose] >
00:00:10 #232 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #233 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #234 [Verbose] > │ ## date_time_guid_from_date_time │
00:00:10 #235 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #236 [Verbose] >
00:00:10 #237 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #238 [Verbose] > inl date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =
00:00:10 #239 [Verbose] > inl guid = guid |> sm'.obj_to_string
00:00:10 #240 [Verbose] > inl prefix = $'!date_time.ToString "yyyyMMdd-HHmm-ssff-ffff-f"' : string
00:00:10 #241 [Verbose] > $'`date_time_guid $"{!prefix}{!guid.[[!prefix.Length..]]}"' : date_time_guid
00:00:10 #242 [Verbose] >
00:00:10 #243 [Verbose] > ╭─[ 310.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #244 [Verbose] > │ () │
00:00:10 #245 [Verbose] > │ │
00:00:10 #246 [Verbose] > │ │
00:00:10 #247 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #248 [Verbose] >
00:00:10 #249 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #250 [Verbose] > // // test
00:00:10 #251 [Verbose] >
00:00:10 #252 [Verbose] > date_time_guid_from_date_time (test_guid ()) $'System.DateTime.MinValue'
00:00:10 #253 [Verbose] > |> sm'.obj_to_string
00:00:10 #254 [Verbose] > |> _assert_eq' "00010101-0000-0000-0000-0a9876543210"
00:00:11 #255 [Verbose] >
00:00:11 #256 [Verbose] > ╭─[ 1.13s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #257 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:11 #258 [Verbose] > │ v0 │
00:00:11 #259 [Verbose] > │ and method0 () : unit = │
00:00:11 #260 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:11 #261 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:11 #262 [Verbose] > │ let v2 : System.DateTime = System.DateTime.MinValue │
00:00:11 #263 [Verbose] > │ let v3 : string = v1.ToString () │
00:00:11 #264 [Verbose] > │ let v4 : string = v2.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:11 #265 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4}{v3.[v4.Length..]}" │
00:00:11 #266 [Verbose] > │ let v6 : string = v5.ToString () │
00:00:11 #267 [Verbose] > │ let v7 : string = $"%A{v6}" │
00:00:11 #268 [Verbose] > │ System.Console.WriteLine v7 │
00:00:11 #269 [Verbose] > │ let v8 : string = "00010101-0000-0000-0000-0a9876543210" │
00:00:11 #270 [Verbose] > │ let v9 : bool = v6 = v8 │
00:00:11 #271 [Verbose] > │ let v11 : bool = │
00:00:11 #272 [Verbose] > │ if v9 then │
00:00:11 #273 [Verbose] > │ true │
00:00:11 #274 [Verbose] > │ else │
00:00:11 #275 [Verbose] > │ method1(v9) │
00:00:11 #276 [Verbose] > │ let v12 : string = $"__expect / actual: %A{v6} / expected: %A{v8}" │
00:00:11 #277 [Verbose] > │ let v13 : bool = v11 = false │
00:00:11 #278 [Verbose] > │ if v13 then │
00:00:11 #279 [Verbose] > │ failwith<unit> v12 │
00:00:11 #280 [Verbose] > │ method0() │
00:00:11 #281 [Verbose] > │ │
00:00:11 #282 [Verbose] > │ "00010101-0000-0000-0000-0a9876543210" │
00:00:11 #283 [Verbose] > │ │
00:00:11 #284 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #285 [Verbose] >
00:00:11 #286 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #287 [Verbose] > // // test
00:00:11 #288 [Verbose] >
00:00:11 #289 [Verbose] > date_time_guid_from_date_time (test_guid ()) $'System.DateTime.MaxValue'
00:00:11 #290 [Verbose] > |> sm'.obj_to_string
00:00:11 #291 [Verbose] > |> _assert_eq $'$"99991231-2359-5999-9999-9{(!test_guid() |>
00:00:11 #292 [Verbose] > string).[[^10..]]}"'
00:00:12 #293 [Verbose] >
00:00:12 #294 [Verbose] > ╭─[ 312.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #295 [Verbose] > │ let rec closure0 () () : System.Guid = │
00:00:12 #296 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:12 #297 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:12 #298 [Verbose] > │ v1 │
00:00:12 #299 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:12 #300 [Verbose] > │ v0 │
00:00:12 #301 [Verbose] > │ and method0 () : unit = │
00:00:12 #302 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:12 #303 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:12 #304 [Verbose] > │ let v2 : System.DateTime = System.DateTime.MaxValue │
00:00:12 #305 [Verbose] > │ let v3 : string = v1.ToString () │
00:00:12 #306 [Verbose] > │ let v4 : string = v2.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:12 #307 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4}{v3.[v4.Length..]}" │
00:00:12 #308 [Verbose] > │ let v6 : string = v5.ToString () │
00:00:12 #309 [Verbose] > │ let v7 : (unit -> System.Guid) = closure0() │
00:00:12 #310 [Verbose] > │ let v8 : string = $"99991231-2359-5999-9999-9{(v7() |> string).[^10..]}" │
00:00:12 #311 [Verbose] > │ let v9 : string = $"%A{v6}" │
00:00:12 #312 [Verbose] > │ System.Console.WriteLine v9 │
00:00:12 #313 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:12 #314 [Verbose] > │ let v12 : bool = │
00:00:12 #315 [Verbose] > │ if v10 then │
00:00:12 #316 [Verbose] > │ true │
00:00:12 #317 [Verbose] > │ else │
00:00:12 #318 [Verbose] > │ method1(v10) │
00:00:12 #319 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v6} / expected: %A{v8}" │
00:00:12 #320 [Verbose] > │ let v14 : bool = v12 = false │
00:00:12 #321 [Verbose] > │ if v14 then │
00:00:12 #322 [Verbose] > │ failwith<unit> v13 │
00:00:12 #323 [Verbose] > │ method0() │
00:00:12 #324 [Verbose] > │ │
00:00:12 #325 [Verbose] > │ "99991231-2359-5999-9999-9a9876543210" │
00:00:12 #326 [Verbose] > │ │
00:00:12 #327 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #328 [Verbose] >
00:00:12 #329 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #330 [Verbose] > // // test
00:00:12 #331 [Verbose] >
00:00:12 #332 [Verbose] > date_time_guid_from_date_time (test_guid ()) $'System.DateTime.UnixEpoch'
00:00:12 #333 [Verbose] > |> sm'.obj_to_string
00:00:12 #334 [Verbose] > |> _assert_eq $'$"19700101-0000-0000-0000-0{(!test_guid () |>
00:00:12 #335 [Verbose] > string).[[^10..]]}"'
00:00:12 #336 [Verbose] >
00:00:12 #337 [Verbose] > ╭─[ 282.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #338 [Verbose] > │ let rec closure0 () () : System.Guid = │
00:00:12 #339 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:12 #340 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:12 #341 [Verbose] > │ v1 │
00:00:12 #342 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:12 #343 [Verbose] > │ v0 │
00:00:12 #344 [Verbose] > │ and method0 () : unit = │
00:00:12 #345 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:12 #346 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:12 #347 [Verbose] > │ let v2 : System.DateTime = System.DateTime.UnixEpoch │
00:00:12 #348 [Verbose] > │ let v3 : string = v1.ToString () │
00:00:12 #349 [Verbose] > │ let v4 : string = v2.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:12 #350 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4}{v3.[v4.Length..]}" │
00:00:12 #351 [Verbose] > │ let v6 : string = v5.ToString () │
00:00:12 #352 [Verbose] > │ let v7 : (unit -> System.Guid) = closure0() │
00:00:12 #353 [Verbose] > │ let v8 : string = $"19700101-0000-0000-0000-0{(v7 () |> string).[ │
00:00:12 #354 [Verbose] > │ ^10..]}" │
00:00:12 #355 [Verbose] > │ let v9 : string = $"%A{v6}" │
00:00:12 #356 [Verbose] > │ System.Console.WriteLine v9 │
00:00:12 #357 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:12 #358 [Verbose] > │ let v12 : bool = │
00:00:12 #359 [Verbose] > │ if v10 then │
00:00:12 #360 [Verbose] > │ true │
00:00:12 #361 [Verbose] > │ else │
00:00:12 #362 [Verbose] > │ method1(v10) │
00:00:12 #363 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v6} / expected: %A{v8}" │
00:00:12 #364 [Verbose] > │ let v14 : bool = v12 = false │
00:00:12 #365 [Verbose] > │ if v14 then │
00:00:12 #366 [Verbose] > │ failwith<unit> v13 │
00:00:12 #367 [Verbose] > │ method0() │
00:00:12 #368 [Verbose] > │ │
00:00:12 #369 [Verbose] > │ "19700101-0000-0000-0000-0a9876543210" │
00:00:12 #370 [Verbose] > │ │
00:00:12 #371 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #372 [Verbose] >
00:00:12 #373 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #374 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #375 [Verbose] > │ ## date_time_from_guid │
00:00:12 #376 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #377 [Verbose] >
00:00:12 #378 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #379 [Verbose] > inl date_time_from_guid (date_time_guid : date_time_guid) =
00:00:12 #380 [Verbose] > inl date_time_guid = date_time_guid |> sm'.obj_to_string
00:00:12 #381 [Verbose] > inl sm'_replace = join sm'.replace
00:00:12 #382 [Verbose] > run_target function
00:00:12 #383 [Verbose] > | Fsharp => fun () => $'System.DateTime.ParseExact
00:00:12 #384 [Verbose] > (!date_time_guid.[[..24]] |> !sm'_replace "-" "", "yyyyMMddHHmmssfffffff",
00:00:12 #385 [Verbose] > null)' : date_time
00:00:12 #386 [Verbose] > | Rust _ => fun () =>
00:00:12 #387 [Verbose] > $'System.DateTime.Parse (!date_time_guid.[[..24]] |> !sm'_replace
00:00:12 #388 [Verbose] > "-" "")' : date_time
00:00:12 #389 [Verbose] >
00:00:12 #390 [Verbose] > ╭─[ 275.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #391 [Verbose] > │ () │
00:00:12 #392 [Verbose] > │ │
00:00:12 #393 [Verbose] > │ │
00:00:12 #394 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #395 [Verbose] >
00:00:12 #396 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #397 [Verbose] > // // test
00:00:12 #398 [Verbose] >
00:00:12 #399 [Verbose] > date_time_from_guid (guid.new_guid "00010101-0000-0000-0000-0a9876543210")
00:00:12 #400 [Verbose] > |> _assert_eq' $'System.DateTime.MinValue'
00:00:13 #401 [Verbose] >
00:00:13 #402 [Verbose] > ╭─[ 402.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #403 [Verbose] > │ let rec closure2 (v0 : string, v1 : string) (v2 : string) : string = │
00:00:13 #404 [Verbose] > │ let v3 : string = v2.Replace (v0, v1) │
00:00:13 #405 [Verbose] > │ v3 │
00:00:13 #406 [Verbose] > │ and closure1 (v0 : string) (v1 : string) : (string -> string) = │
00:00:13 #407 [Verbose] > │ closure2(v0, v1) │
00:00:13 #408 [Verbose] > │ and closure0 () (v0 : string) : (string -> (string -> string)) = │
00:00:13 #409 [Verbose] > │ closure1(v0) │
00:00:13 #410 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) = │
00:00:13 #411 [Verbose] > │ closure0() │
00:00:13 #412 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:13 #413 [Verbose] > │ v0 │
00:00:13 #414 [Verbose] > │ and method0 () : unit = │
00:00:13 #415 [Verbose] > │ let v0 : string = "00010101-0000-0000-0000-0a9876543210" │
00:00:13 #416 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:13 #417 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:13 #418 [Verbose] > │ let v3 : (string -> (string -> (string -> string))) = method1() │
00:00:13 #419 [Verbose] > │ let mutable result = None │
00:00:13 #420 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:13 #421 [Verbose] > │ let v4 : System.DateTime = System.DateTime.Parse (v2.[..24] |> v3 "-" │
00:00:13 #422 [Verbose] > │ "") │
00:00:13 #423 [Verbose] > │ v4 │
00:00:13 #424 [Verbose] > │ #endif │
00:00:13 #425 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:13 #426 [Verbose] > │ let v5 : System.DateTime = System.DateTime.Parse (v2.[..24] |> v3 "-" │
00:00:13 #427 [Verbose] > │ "") │
00:00:13 #428 [Verbose] > │ v5 │
00:00:13 #429 [Verbose] > │ #endif │
00:00:13 #430 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:13 #431 [Verbose] > │ let v6 : System.DateTime = System.DateTime.ParseExact (v2.[..24] |> v3 │
00:00:13 #432 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #433 [Verbose] > │ v6 │
00:00:13 #434 [Verbose] > │ #endif │
00:00:13 #435 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:13 #436 [Verbose] > │ let v7 : System.DateTime = System.DateTime.ParseExact (v2.[..24] |> v3 │
00:00:13 #437 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #438 [Verbose] > │ v7 │
00:00:13 #439 [Verbose] > │ #endif │
00:00:13 #440 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:13 #441 [Verbose] > │ let v8 : System.DateTime = System.DateTime.ParseExact (v2.[..24] |> v3 │
00:00:13 #442 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #443 [Verbose] > │ v8 │
00:00:13 #444 [Verbose] > │ #endif │
00:00:13 #445 [Verbose] > │ |> fun x -> result <- Some x │
00:00:13 #446 [Verbose] > │ let v9 : System.DateTime = result |> Option.get │
00:00:13 #447 [Verbose] > │ let v10 : System.DateTime = System.DateTime.MinValue │
00:00:13 #448 [Verbose] > │ let v11 : string = $"%A{v9}" │
00:00:13 #449 [Verbose] > │ System.Console.WriteLine v11 │
00:00:13 #450 [Verbose] > │ let v12 : bool = v9 = v10 │
00:00:13 #451 [Verbose] > │ let v14 : bool = │
00:00:13 #452 [Verbose] > │ if v12 then │
00:00:13 #453 [Verbose] > │ true │
00:00:13 #454 [Verbose] > │ else │
00:00:13 #455 [Verbose] > │ method2(v12) │
00:00:13 #456 [Verbose] > │ let v15 : string = $"__expect / actual: %A{v9} / expected: %A{v10}" │
00:00:13 #457 [Verbose] > │ let v16 : bool = v14 = false │
00:00:13 #458 [Verbose] > │ if v16 then │
00:00:13 #459 [Verbose] > │ failwith<unit> v15 │
00:00:13 #460 [Verbose] > │ method0() │
00:00:13 #461 [Verbose] > │ │
00:00:13 #462 [Verbose] > │ 0001-01-01 12:00:00 AM │
00:00:13 #463 [Verbose] > │ │
00:00:13 #464 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #465 [Verbose] >
00:00:13 #466 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #467 [Verbose] > // // test
00:00:13 #468 [Verbose] >
00:00:13 #469 [Verbose] > date_time_from_guid (guid.new_guid $'$"99991231-2359-5999-9999-9{(!test_guid ()
00:00:13 #470 [Verbose] > |> string).[[^10..]]}"')
00:00:13 #471 [Verbose] > |> _assert_eq' $'System.DateTime.MaxValue'
00:00:13 #472 [Verbose] >
00:00:13 #473 [Verbose] > ╭─[ 301.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #474 [Verbose] > │ let rec closure0 () () : System.Guid = │
00:00:13 #475 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:13 #476 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:13 #477 [Verbose] > │ v1 │
00:00:13 #478 [Verbose] > │ and closure3 (v0 : string, v1 : string) (v2 : string) : string = │
00:00:13 #479 [Verbose] > │ let v3 : string = v2.Replace (v0, v1) │
00:00:13 #480 [Verbose] > │ v3 │
00:00:13 #481 [Verbose] > │ and closure2 (v0 : string) (v1 : string) : (string -> string) = │
00:00:13 #482 [Verbose] > │ closure3(v0, v1) │
00:00:13 #483 [Verbose] > │ and closure1 () (v0 : string) : (string -> (string -> string)) = │
00:00:13 #484 [Verbose] > │ closure2(v0) │
00:00:13 #485 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) = │
00:00:13 #486 [Verbose] > │ closure1() │
00:00:13 #487 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:13 #488 [Verbose] > │ v0 │
00:00:13 #489 [Verbose] > │ and method0 () : unit = │
00:00:13 #490 [Verbose] > │ let v0 : (unit -> System.Guid) = closure0() │
00:00:13 #491 [Verbose] > │ let v1 : string = $"99991231-2359-5999-9999-9{(v0 () |> string).[ │
00:00:13 #492 [Verbose] > │ ^10..]}" │
00:00:13 #493 [Verbose] > │ let v2 : System.Guid = System.Guid v1 │
00:00:13 #494 [Verbose] > │ let v3 : string = v2.ToString () │
00:00:13 #495 [Verbose] > │ let v4 : (string -> (string -> (string -> string))) = method1() │
00:00:13 #496 [Verbose] > │ let mutable result = None │
00:00:13 #497 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:13 #498 [Verbose] > │ let v5 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-" │
00:00:13 #499 [Verbose] > │ "") │
00:00:13 #500 [Verbose] > │ v5 │
00:00:13 #501 [Verbose] > │ #endif │
00:00:13 #502 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:13 #503 [Verbose] > │ let v6 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-" │
00:00:13 #504 [Verbose] > │ "") │
00:00:13 #505 [Verbose] > │ v6 │
00:00:13 #506 [Verbose] > │ #endif │
00:00:13 #507 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:13 #508 [Verbose] > │ let v7 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4 │
00:00:13 #509 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #510 [Verbose] > │ v7 │
00:00:13 #511 [Verbose] > │ #endif │
00:00:13 #512 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:13 #513 [Verbose] > │ let v8 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4 │
00:00:13 #514 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #515 [Verbose] > │ v8 │
00:00:13 #516 [Verbose] > │ #endif │
00:00:13 #517 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:13 #518 [Verbose] > │ let v9 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4 │
00:00:13 #519 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #520 [Verbose] > │ v9 │
00:00:13 #521 [Verbose] > │ #endif │
00:00:13 #522 [Verbose] > │ |> fun x -> result <- Some x │
00:00:13 #523 [Verbose] > │ let v10 : System.DateTime = result |> Option.get │
00:00:13 #524 [Verbose] > │ let v11 : System.DateTime = System.DateTime.MaxValue │
00:00:13 #525 [Verbose] > │ let v12 : string = $"%A{v10}" │
00:00:13 #526 [Verbose] > │ System.Console.WriteLine v12 │
00:00:13 #527 [Verbose] > │ let v13 : bool = v10 = v11 │
00:00:13 #528 [Verbose] > │ let v15 : bool = │
00:00:13 #529 [Verbose] > │ if v13 then │
00:00:13 #530 [Verbose] > │ true │
00:00:13 #531 [Verbose] > │ else │
00:00:13 #532 [Verbose] > │ method2(v13) │
00:00:13 #533 [Verbose] > │ let v16 : string = $"__expect / actual: %A{v10} / expected: %A{v11}" │
00:00:13 #534 [Verbose] > │ let v17 : bool = v15 = false │
00:00:13 #535 [Verbose] > │ if v17 then │
00:00:13 #536 [Verbose] > │ failwith<unit> v16 │
00:00:13 #537 [Verbose] > │ method0() │
00:00:13 #538 [Verbose] > │ │
00:00:13 #539 [Verbose] > │ 9999-12-31 11:59:59 PM │
00:00:13 #540 [Verbose] > │ │
00:00:13 #541 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #542 [Verbose] >
00:00:13 #543 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #544 [Verbose] > // // test
00:00:13 #545 [Verbose] >
00:00:13 #546 [Verbose] > date_time_from_guid (guid.new_guid $'$"19700101-0000-0000-0000-0{(!test_guid ()
00:00:13 #547 [Verbose] > |> string).[[^10..]]}"')
00:00:13 #548 [Verbose] > |> _assert_eq' $'System.DateTime.UnixEpoch'
00:00:13 #549 [Verbose] >
00:00:13 #550 [Verbose] > ╭─[ 359.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #551 [Verbose] > │ let rec closure0 () () : System.Guid = │
00:00:13 #552 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:13 #553 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:13 #554 [Verbose] > │ v1 │
00:00:13 #555 [Verbose] > │ and closure3 (v0 : string, v1 : string) (v2 : string) : string = │
00:00:13 #556 [Verbose] > │ let v3 : string = v2.Replace (v0, v1) │
00:00:13 #557 [Verbose] > │ v3 │
00:00:13 #558 [Verbose] > │ and closure2 (v0 : string) (v1 : string) : (string -> string) = │
00:00:13 #559 [Verbose] > │ closure3(v0, v1) │
00:00:13 #560 [Verbose] > │ and closure1 () (v0 : string) : (string -> (string -> string)) = │
00:00:13 #561 [Verbose] > │ closure2(v0) │
00:00:13 #562 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) = │
00:00:13 #563 [Verbose] > │ closure1() │
00:00:13 #564 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:13 #565 [Verbose] > │ v0 │
00:00:13 #566 [Verbose] > │ and method0 () : unit = │
00:00:13 #567 [Verbose] > │ let v0 : (unit -> System.Guid) = closure0() │
00:00:13 #568 [Verbose] > │ let v1 : string = $"19700101-0000-0000-0000-0{(v0 () |> string).[ │
00:00:13 #569 [Verbose] > │ ^10..]}" │
00:00:13 #570 [Verbose] > │ let v2 : System.Guid = System.Guid v1 │
00:00:13 #571 [Verbose] > │ let v3 : string = v2.ToString () │
00:00:13 #572 [Verbose] > │ let v4 : (string -> (string -> (string -> string))) = method1() │
00:00:13 #573 [Verbose] > │ let mutable result = None │
00:00:13 #574 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:13 #575 [Verbose] > │ let v5 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-" │
00:00:13 #576 [Verbose] > │ "") │
00:00:13 #577 [Verbose] > │ v5 │
00:00:13 #578 [Verbose] > │ #endif │
00:00:13 #579 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:13 #580 [Verbose] > │ let v6 : System.DateTime = System.DateTime.Parse (v3.[..24] |> v4 "-" │
00:00:13 #581 [Verbose] > │ "") │
00:00:13 #582 [Verbose] > │ v6 │
00:00:13 #583 [Verbose] > │ #endif │
00:00:13 #584 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:13 #585 [Verbose] > │ let v7 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4 │
00:00:13 #586 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #587 [Verbose] > │ v7 │
00:00:13 #588 [Verbose] > │ #endif │
00:00:13 #589 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:13 #590 [Verbose] > │ let v8 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4 │
00:00:13 #591 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #592 [Verbose] > │ v8 │
00:00:13 #593 [Verbose] > │ #endif │
00:00:13 #594 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:13 #595 [Verbose] > │ let v9 : System.DateTime = System.DateTime.ParseExact (v3.[..24] |> v4 │
00:00:13 #596 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:13 #597 [Verbose] > │ v9 │
00:00:13 #598 [Verbose] > │ #endif │
00:00:13 #599 [Verbose] > │ |> fun x -> result <- Some x │
00:00:13 #600 [Verbose] > │ let v10 : System.DateTime = result |> Option.get │
00:00:13 #601 [Verbose] > │ let v11 : System.DateTime = System.DateTime.UnixEpoch │
00:00:13 #602 [Verbose] > │ let v12 : string = $"%A{v10}" │
00:00:13 #603 [Verbose] > │ System.Console.WriteLine v12 │
00:00:13 #604 [Verbose] > │ let v13 : bool = v10 = v11 │
00:00:13 #605 [Verbose] > │ let v15 : bool = │
00:00:13 #606 [Verbose] > │ if v13 then │
00:00:13 #607 [Verbose] > │ true │
00:00:13 #608 [Verbose] > │ else │
00:00:13 #609 [Verbose] > │ method2(v13) │
00:00:13 #610 [Verbose] > │ let v16 : string = $"__expect / actual: %A{v10} / expected: %A{v11}" │
00:00:13 #611 [Verbose] > │ let v17 : bool = v15 = false │
00:00:13 #612 [Verbose] > │ if v17 then │
00:00:13 #613 [Verbose] > │ failwith<unit> v16 │
00:00:13 #614 [Verbose] > │ method0() │
00:00:13 #615 [Verbose] > │ │
00:00:13 #616 [Verbose] > │ 1970-01-01 12:00:00 AM │
00:00:13 #617 [Verbose] > │ │
00:00:13 #618 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #619 [Verbose] >
00:00:13 #620 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #621 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #622 [Verbose] > │ ## ticks_guid_from_ticks │
00:00:13 #623 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #624 [Verbose] >
00:00:13 #625 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #626 [Verbose] > inl ticks_guid_from_ticks (guid : guid.guid) (ticks : ticks) : ticks_guid =
00:00:13 #627 [Verbose] > inl guid = guid |> sm'.obj_to_string
00:00:13 #628 [Verbose] > inl ticks = ticks |> sm'.obj_to_string |> sm'.pad_left 18i32 '0'
00:00:13 #629 [Verbose] > $'`ticks_guid
00:00:13 #630 [Verbose] > $"{!ticks.[[0..7]]}-{!ticks.[[8..11]]}-{!ticks.[[12..15]]}-{!ticks.[[16..17]]}{!
00:00:13 #631 [Verbose] > guid.[[21..]]}"'
00:00:14 #632 [Verbose] >
00:00:14 #633 [Verbose] > ╭─[ 220.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #634 [Verbose] > │ () │
00:00:14 #635 [Verbose] > │ │
00:00:14 #636 [Verbose] > │ │
00:00:14 #637 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #638 [Verbose] >
00:00:14 #639 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #640 [Verbose] > // // test
00:00:14 #641 [Verbose] >
00:00:14 #642 [Verbose] > ticks_guid_from_ticks (test_guid ()) (ticks 0i64)
00:00:14 #643 [Verbose] > |> _assert_eq' (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:00:14 #644 [Verbose] >
00:00:14 #645 [Verbose] > ╭─[ 298.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #646 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:14 #647 [Verbose] > │ v0 │
00:00:14 #648 [Verbose] > │ and method0 () : unit = │
00:00:14 #649 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:14 #650 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:14 #651 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:14 #652 [Verbose] > │ let v3 : string = 0L.ToString () │
00:00:14 #653 [Verbose] > │ let v4 : string = v3.PadLeft (18, '0') │
00:00:14 #654 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[ │
00:00:14 #655 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}" │
00:00:14 #656 [Verbose] > │ let v6 : string = "00000000-0000-0000-00dc-ba9876543210" │
00:00:14 #657 [Verbose] > │ let v7 : System.Guid = System.Guid v6 │
00:00:14 #658 [Verbose] > │ let v8 : string = $"%A{v5}" │
00:00:14 #659 [Verbose] > │ System.Console.WriteLine v8 │
00:00:14 #660 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:14 #661 [Verbose] > │ let v11 : bool = │
00:00:14 #662 [Verbose] > │ if v9 then │
00:00:14 #663 [Verbose] > │ true │
00:00:14 #664 [Verbose] > │ else │
00:00:14 #665 [Verbose] > │ method1(v9) │
00:00:14 #666 [Verbose] > │ let v12 : string = $"__expect / actual: %A{v5} / expected: %A{v7}" │
00:00:14 #667 [Verbose] > │ let v13 : bool = v11 = false │
00:00:14 #668 [Verbose] > │ if v13 then │
00:00:14 #669 [Verbose] > │ failwith<unit> v12 │
00:00:14 #670 [Verbose] > │ method0() │
00:00:14 #671 [Verbose] > │ │
00:00:14 #672 [Verbose] > │ 00000000-0000-0000-00dc-ba9876543210 │
00:00:14 #673 [Verbose] > │ │
00:00:14 #674 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #675 [Verbose] >
00:00:14 #676 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #677 [Verbose] > // // test
00:00:14 #678 [Verbose] >
00:00:14 #679 [Verbose] > ticks_guid_from_ticks (test_guid ()) (ticks 999999999999999999i64)
00:00:14 #680 [Verbose] > |> _assert_eq' (guid.new_guid $'$"99999999-9999-9999-99dc-b{(!test_guid () |>
00:00:14 #681 [Verbose] > string).[[^10..]]}"')
00:00:14 #682 [Verbose] >
00:00:14 #683 [Verbose] > ╭─[ 329.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #684 [Verbose] > │ let rec closure0 () () : System.Guid = │
00:00:14 #685 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:14 #686 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:14 #687 [Verbose] > │ v1 │
00:00:14 #688 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:14 #689 [Verbose] > │ v0 │
00:00:14 #690 [Verbose] > │ and method0 () : unit = │
00:00:14 #691 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:14 #692 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:14 #693 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:14 #694 [Verbose] > │ let v3 : string = 999999999999999999L.ToString () │
00:00:14 #695 [Verbose] > │ let v4 : string = v3.PadLeft (18, '0') │
00:00:14 #696 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[ │
00:00:14 #697 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}" │
00:00:14 #698 [Verbose] > │ let v6 : (unit -> System.Guid) = closure0() │
00:00:14 #699 [Verbose] > │ let v7 : string = $"99999999-9999-9999-99dc-b{(v6 () |> string).[ │
00:00:14 #700 [Verbose] > │ ^10..]}" │
00:00:14 #701 [Verbose] > │ let v8 : System.Guid = System.Guid v7 │
00:00:14 #702 [Verbose] > │ let v9 : string = $"%A{v5}" │
00:00:14 #703 [Verbose] > │ System.Console.WriteLine v9 │
00:00:14 #704 [Verbose] > │ let v10 : bool = v5 = v8 │
00:00:14 #705 [Verbose] > │ let v12 : bool = │
00:00:14 #706 [Verbose] > │ if v10 then │
00:00:14 #707 [Verbose] > │ true │
00:00:14 #708 [Verbose] > │ else │
00:00:14 #709 [Verbose] > │ method1(v10) │
00:00:14 #710 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v5} / expected: %A{v8}" │
00:00:14 #711 [Verbose] > │ let v14 : bool = v12 = false │
00:00:14 #712 [Verbose] > │ if v14 then │
00:00:14 #713 [Verbose] > │ failwith<unit> v13 │
00:00:14 #714 [Verbose] > │ method0() │
00:00:14 #715 [Verbose] > │ │
00:00:14 #716 [Verbose] > │ 99999999-9999-9999-99dc-ba9876543210 │
00:00:14 #717 [Verbose] > │ │
00:00:14 #718 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #719 [Verbose] >
00:00:14 #720 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #721 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #722 [Verbose] > │ ## ticks_from_guid │
00:00:14 #723 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #724 [Verbose] >
00:00:14 #725 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #726 [Verbose] > inl ticks_from_guid (guid : date_time_guid) : ticks =
00:00:14 #727 [Verbose] > inl guid = guid |> sm'.obj_to_string
00:00:14 #728 [Verbose] > $'`i64
00:00:14 #729 [Verbose] > $"{!guid.[[0..7]]}{!guid.[[9..12]]}{!guid.[[14..17]]}{!guid.[[19..20]]}"'
00:00:14 #730 [Verbose] >
00:00:14 #731 [Verbose] > ╭─[ 286.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #732 [Verbose] > │ () │
00:00:14 #733 [Verbose] > │ │
00:00:14 #734 [Verbose] > │ │
00:00:15 #735 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #736 [Verbose] >
00:00:15 #737 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #738 [Verbose] > // // test
00:00:15 #739 [Verbose] >
00:00:15 #740 [Verbose] > ticks_from_guid (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:00:15 #741 [Verbose] > |> _assert_eq (ticks 0)
00:00:15 #742 [Verbose] >
00:00:15 #743 [Verbose] > ╭─[ 300.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #744 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:15 #745 [Verbose] > │ v0 │
00:00:15 #746 [Verbose] > │ and method0 () : unit = │
00:00:15 #747 [Verbose] > │ let v0 : string = "00000000-0000-0000-00dc-ba9876543210" │
00:00:15 #748 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:15 #749 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:15 #750 [Verbose] > │ let v3 : int64 = int64 $"{v2.[0..7]}{v2.[9..12]}{v2.[14..17]}{v2.[ │
00:00:15 #751 [Verbose] > │ 19..20]}" │
00:00:15 #752 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:15 #753 [Verbose] > │ System.Console.WriteLine v4 │
00:00:15 #754 [Verbose] > │ let v5 : bool = v3 = 0L │
00:00:15 #755 [Verbose] > │ let v7 : bool = │
00:00:15 #756 [Verbose] > │ if v5 then │
00:00:15 #757 [Verbose] > │ true │
00:00:15 #758 [Verbose] > │ else │
00:00:15 #759 [Verbose] > │ method1(v5) │
00:00:15 #760 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v3} / expected: %A{0L}" │
00:00:15 #761 [Verbose] > │ let v9 : bool = v7 = false │
00:00:15 #762 [Verbose] > │ if v9 then │
00:00:15 #763 [Verbose] > │ failwith<unit> v8 │
00:00:15 #764 [Verbose] > │ method0() │
00:00:15 #765 [Verbose] > │ │
00:00:15 #766 [Verbose] > │ 0L │
00:00:15 #767 [Verbose] > │ │
00:00:15 #768 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #769 [Verbose] >
00:00:15 #770 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #771 [Verbose] > // // test
00:00:15 #772 [Verbose] >
00:00:15 #773 [Verbose] > ticks_from_guid (guid.new_guid $'$"99999999-9999-9999-99{(!test_guid () |>
00:00:15 #774 [Verbose] > string).[[^14..]]}"')
00:00:15 #775 [Verbose] > |> _assert_eq (ticks 999999999999999999)
00:00:15 #776 [Verbose] >
00:00:15 #777 [Verbose] > ╭─[ 268.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #778 [Verbose] > │ let rec closure0 () () : System.Guid = │
00:00:15 #779 [Verbose] > │ let v0 : string = "FEDCBA98-7654-3210-FEDC-BA9876543210" │
00:00:15 #780 [Verbose] > │ let v1 : System.Guid = System.Guid v0 │
00:00:15 #781 [Verbose] > │ v1 │
00:00:15 #782 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:15 #783 [Verbose] > │ v0 │
00:00:15 #784 [Verbose] > │ and method0 () : unit = │
00:00:15 #785 [Verbose] > │ let v0 : (unit -> System.Guid) = closure0() │
00:00:15 #786 [Verbose] > │ let v1 : string = $"99999999-9999-9999-99{(v0 () |> string).[^14..]}" │
00:00:15 #787 [Verbose] > │ let v2 : System.Guid = System.Guid v1 │
00:00:15 #788 [Verbose] > │ let v3 : string = v2.ToString () │
00:00:15 #789 [Verbose] > │ let v4 : int64 = int64 $"{v3.[0..7]}{v3.[9..12]}{v3.[14..17]}{v3.[ │
00:00:15 #790 [Verbose] > │ 19..20]}" │
00:00:15 #791 [Verbose] > │ let v5 : string = $"%A{v4}" │
00:00:15 #792 [Verbose] > │ System.Console.WriteLine v5 │
00:00:15 #793 [Verbose] > │ let v6 : bool = v4 = 999999999999999999L │
00:00:15 #794 [Verbose] > │ let v8 : bool = │
00:00:15 #795 [Verbose] > │ if v6 then │
00:00:15 #796 [Verbose] > │ true │
00:00:15 #797 [Verbose] > │ else │
00:00:15 #798 [Verbose] > │ method1(v6) │
00:00:15 #799 [Verbose] > │ let v9 : string = $"__expect / actual: %A{v4} / expected: │
00:00:15 #800 [Verbose] > │ %A{999999999999999999L}" │
00:00:15 #801 [Verbose] > │ let v10 : bool = v8 = false │
00:00:15 #802 [Verbose] > │ if v10 then │
00:00:15 #803 [Verbose] > │ failwith<unit> v9 │
00:00:15 #804 [Verbose] > │ method0() │
00:00:15 #805 [Verbose] > │ │
00:00:15 #806 [Verbose] > │ 999999999999999999L │
00:00:15 #807 [Verbose] > │ │
00:00:15 #808 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #809 [Verbose] >
00:00:15 #810 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #811 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #812 [Verbose] > │ ## new_guid_from_date_time │
00:00:15 #813 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #814 [Verbose] >
00:00:15 #815 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #816 [Verbose] > inl new_guid_from_date_time (date_time : date_time) =
00:00:15 #817 [Verbose] > inl guid = guid.new_raw_guid ()
00:00:15 #818 [Verbose] > date_time_guid_from_date_time guid date_time
00:00:15 #819 [Verbose] >
00:00:15 #820 [Verbose] > ╭─[ 282.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #821 [Verbose] > │ () │
00:00:15 #822 [Verbose] > │ │
00:00:15 #823 [Verbose] > │ │
00:00:15 #824 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #825 [Verbose] >
00:00:15 #826 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #827 [Verbose] > // // test
00:00:15 #828 [Verbose] >
00:00:15 #829 [Verbose] > new_guid_from_date_time $'System.DateTime.UtcNow'
00:00:15 #830 [Verbose] > |> date_time_from_guid
00:00:15 #831 [Verbose] > |> fun date_time => $'(!date_time - System.DateTime.UtcNow).TotalSeconds' : f64
00:00:15 #832 [Verbose] > |> i32
00:00:15 #833 [Verbose] > |> _assert_eq 0
00:00:16 #834 [Verbose] >
00:00:16 #835 [Verbose] > ╭─[ 440.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #836 [Verbose] > │ let rec closure2 (v0 : string, v1 : string) (v2 : string) : string = │
00:00:16 #837 [Verbose] > │ let v3 : string = v2.Replace (v0, v1) │
00:00:16 #838 [Verbose] > │ v3 │
00:00:16 #839 [Verbose] > │ and closure1 (v0 : string) (v1 : string) : (string -> string) = │
00:00:16 #840 [Verbose] > │ closure2(v0, v1) │
00:00:16 #841 [Verbose] > │ and closure0 () (v0 : string) : (string -> (string -> string)) = │
00:00:16 #842 [Verbose] > │ closure1(v0) │
00:00:16 #843 [Verbose] > │ and method1 () : (string -> (string -> (string -> string))) = │
00:00:16 #844 [Verbose] > │ closure0() │
00:00:16 #845 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:16 #846 [Verbose] > │ v0 │
00:00:16 #847 [Verbose] > │ and method0 () : unit = │
00:00:16 #848 [Verbose] > │ let v0 : System.DateTime = System.DateTime.UtcNow │
00:00:16 #849 [Verbose] > │ let v1 : System.Guid = System.Guid.NewGuid () │
00:00:16 #850 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:16 #851 [Verbose] > │ let v3 : string = v0.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:16 #852 [Verbose] > │ let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}" │
00:00:16 #853 [Verbose] > │ let v5 : string = v4.ToString () │
00:00:16 #854 [Verbose] > │ let v6 : (string -> (string -> (string -> string))) = method1() │
00:00:16 #855 [Verbose] > │ let mutable result = None │
00:00:16 #856 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:16 #857 [Verbose] > │ let v7 : System.DateTime = System.DateTime.Parse (v5.[..24] |> v6 "-" │
00:00:16 #858 [Verbose] > │ "") │
00:00:16 #859 [Verbose] > │ v7 │
00:00:16 #860 [Verbose] > │ #endif │
00:00:16 #861 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:16 #862 [Verbose] > │ let v8 : System.DateTime = System.DateTime.Parse (v5.[..24] |> v6 "-" │
00:00:16 #863 [Verbose] > │ "") │
00:00:16 #864 [Verbose] > │ v8 │
00:00:16 #865 [Verbose] > │ #endif │
00:00:16 #866 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:16 #867 [Verbose] > │ let v9 : System.DateTime = System.DateTime.ParseExact (v5.[..24] |> v6 │
00:00:16 #868 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:16 #869 [Verbose] > │ v9 │
00:00:16 #870 [Verbose] > │ #endif │
00:00:16 #871 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:16 #872 [Verbose] > │ let v10 : System.DateTime = System.DateTime.ParseExact (v5.[..24] |> v6 │
00:00:16 #873 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:16 #874 [Verbose] > │ v10 │
00:00:16 #875 [Verbose] > │ #endif │
00:00:16 #876 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:16 #877 [Verbose] > │ let v11 : System.DateTime = System.DateTime.ParseExact (v5.[..24] |> v6 │
00:00:16 #878 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:16 #879 [Verbose] > │ v11 │
00:00:16 #880 [Verbose] > │ #endif │
00:00:16 #881 [Verbose] > │ |> fun x -> result <- Some x │
00:00:16 #882 [Verbose] > │ let v12 : System.DateTime = result |> Option.get │
00:00:16 #883 [Verbose] > │ let v13 : float = (v12 - System.DateTime.UtcNow).TotalSeconds │
00:00:16 #884 [Verbose] > │ let v14 : int32 = int32 v13 │
00:00:16 #885 [Verbose] > │ let v15 : string = $"%A{v14}" │
00:00:16 #886 [Verbose] > │ System.Console.WriteLine v15 │
00:00:16 #887 [Verbose] > │ let v16 : bool = v14 = 0 │
00:00:16 #888 [Verbose] > │ let v18 : bool = │
00:00:16 #889 [Verbose] > │ if v16 then │
00:00:16 #890 [Verbose] > │ true │
00:00:16 #891 [Verbose] > │ else │
00:00:16 #892 [Verbose] > │ method2(v16) │
00:00:16 #893 [Verbose] > │ let v19 : string = $"__expect / actual: %A{v14} / expected: %A{0}" │
00:00:16 #894 [Verbose] > │ let v20 : bool = v18 = false │
00:00:16 #895 [Verbose] > │ if v20 then │
00:00:16 #896 [Verbose] > │ failwith<unit> v19 │
00:00:16 #897 [Verbose] > │ method0() │
00:00:16 #898 [Verbose] > │ │
00:00:16 #899 [Verbose] > │ 0 │
00:00:16 #900 [Verbose] > │ │
00:00:16 #901 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #902 [Verbose] >
00:00:16 #903 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #904 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #905 [Verbose] > │ ## new_guid_from_ticks │
00:00:16 #906 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #907 [Verbose] >
00:00:16 #908 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #909 [Verbose] > inl new_guid_from_ticks (ticks : ticks) =
00:00:16 #910 [Verbose] > inl guid = guid.new_raw_guid ()
00:00:16 #911 [Verbose] > ticks_guid_from_ticks guid ticks
00:00:16 #912 [Verbose] >
00:00:16 #913 [Verbose] > ╭─[ 257.51ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #914 [Verbose] > │ () │
00:00:16 #915 [Verbose] > │ │
00:00:16 #916 [Verbose] > │ │
00:00:16 #917 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #918 [Verbose] >
00:00:16 #919 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #920 [Verbose] > // // test
00:00:16 #921 [Verbose] >
00:00:16 #922 [Verbose] > new_guid_from_ticks $'System.DateTime.UtcNow.Ticks'
00:00:16 #923 [Verbose] > |> ticks_from_guid
00:00:16 #924 [Verbose] > |> fun ticks => $'(!ticks - System.DateTime.UtcNow.Ticks) / 100000L'
00:00:16 #925 [Verbose] > |> _assert_eq 0i64
00:00:16 #926 [Verbose] >
00:00:16 #927 [Verbose] > ╭─[ 330.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #928 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:16 #929 [Verbose] > │ v0 │
00:00:16 #930 [Verbose] > │ and method0 () : unit = │
00:00:16 #931 [Verbose] > │ let v0 : int64 = System.DateTime.UtcNow.Ticks │
00:00:16 #932 [Verbose] > │ let v1 : System.Guid = System.Guid.NewGuid () │
00:00:16 #933 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:16 #934 [Verbose] > │ let v3 : string = v0.ToString () │
00:00:16 #935 [Verbose] > │ let v4 : string = v3.PadLeft (18, '0') │
00:00:16 #936 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[ │
00:00:16 #937 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}" │
00:00:16 #938 [Verbose] > │ let v6 : string = v5.ToString () │
00:00:16 #939 [Verbose] > │ let v7 : int64 = int64 $"{v6.[0..7]}{v6.[9..12]}{v6.[14..17]}{v6.[ │
00:00:16 #940 [Verbose] > │ 19..20]}" │
00:00:16 #941 [Verbose] > │ let v8 : int64 = (v7 - System.DateTime.UtcNow.Ticks) / 100000L │
00:00:16 #942 [Verbose] > │ let v9 : string = $"%A{v8}" │
00:00:16 #943 [Verbose] > │ System.Console.WriteLine v9 │
00:00:16 #944 [Verbose] > │ let v10 : bool = v8 = 0L │
00:00:16 #945 [Verbose] > │ let v12 : bool = │
00:00:16 #946 [Verbose] > │ if v10 then │
00:00:16 #947 [Verbose] > │ true │
00:00:16 #948 [Verbose] > │ else │
00:00:16 #949 [Verbose] > │ method1(v10) │
00:00:16 #950 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v8} / expected: %A{0L}" │
00:00:16 #951 [Verbose] > │ let v14 : bool = v12 = false │
00:00:16 #952 [Verbose] > │ if v14 then │
00:00:16 #953 [Verbose] > │ failwith<unit> v13 │
00:00:16 #954 [Verbose] > │ method0() │
00:00:16 #955 [Verbose] > │ │
00:00:16 #956 [Verbose] > │ 0L │
00:00:16 #957 [Verbose] > │ │
00:00:16 #958 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #959 [Verbose] >
00:00:16 #960 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #961 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #962 [Verbose] > │ ## main │
00:00:16 #963 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #964 [Verbose] >
00:00:16 #965 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #966 [Verbose] > inl main () =
00:00:16 #967 [Verbose] > $"let date_time_guid_from_date_time x = !date_time_guid_from_date_time x" :
00:00:16 #968 [Verbose] > ()
00:00:16 #969 [Verbose] > $"let date_time_from_guid x = !date_time_from_guid x" : ()
00:00:16 #970 [Verbose] > $"let ticks_guid_from_ticks x = !ticks_guid_from_ticks x" : ()
00:00:16 #971 [Verbose] > $"let ticks_from_guid x = !ticks_from_guid x" : ()
00:00:16 #972 [Verbose] > $"let new_guid_from_date_time x = !new_guid_from_date_time x" : ()
00:00:16 #973 [Verbose] > $"let new_guid_from_ticks x = !new_guid_from_ticks x" : ()
00:00:17 #974 [Verbose] >
00:00:17 #975 [Verbose] > ╭─[ 367.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #976 [Verbose] > │ let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid = │
00:00:17 #977 [Verbose] > │ let v2 : string = v0.ToString () │
00:00:17 #978 [Verbose] > │ let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:17 #979 [Verbose] > │ let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}" │
00:00:17 #980 [Verbose] > │ v4 │
00:00:17 #981 [Verbose] > │ and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) = │
00:00:17 #982 [Verbose] > │ closure1(v0) │
00:00:17 #983 [Verbose] > │ and closure5 (v0 : string, v1 : string) (v2 : string) : string = │
00:00:17 #984 [Verbose] > │ let v3 : string = v2.Replace (v0, v1) │
00:00:17 #985 [Verbose] > │ v3 │
00:00:17 #986 [Verbose] > │ and closure4 (v0 : string) (v1 : string) : (string -> string) = │
00:00:17 #987 [Verbose] > │ closure5(v0, v1) │
00:00:17 #988 [Verbose] > │ and closure3 () (v0 : string) : (string -> (string -> string)) = │
00:00:17 #989 [Verbose] > │ closure4(v0) │
00:00:17 #990 [Verbose] > │ and method0 () : (string -> (string -> (string -> string))) = │
00:00:17 #991 [Verbose] > │ closure3() │
00:00:17 #992 [Verbose] > │ and closure2 () (v0 : System.Guid) : System.DateTime = │
00:00:17 #993 [Verbose] > │ let v1 : string = v0.ToString () │
00:00:17 #994 [Verbose] > │ let v2 : (string -> (string -> (string -> string))) = method0() │
00:00:17 #995 [Verbose] > │ let mutable result = None │
00:00:17 #996 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:17 #997 [Verbose] > │ let v3 : System.DateTime = System.DateTime.Parse (v1.[..24] |> v2 "-" │
00:00:17 #998 [Verbose] > │ "") │
00:00:17 #999 [Verbose] > │ v3 │
00:00:17 #1000 [Verbose] > │ #endif │
00:00:17 #1001 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:17 #1002 [Verbose] > │ let v4 : System.DateTime = System.DateTime.Parse (v1.[..24] |> v2 "-" │
00:00:17 #1003 [Verbose] > │ "") │
00:00:17 #1004 [Verbose] > │ v4 │
00:00:17 #1005 [Verbose] > │ #endif │
00:00:17 #1006 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:17 #1007 [Verbose] > │ let v5 : System.DateTime = System.DateTime.ParseExact (v1.[..24] |> v2 │
00:00:17 #1008 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:17 #1009 [Verbose] > │ v5 │
00:00:17 #1010 [Verbose] > │ #endif │
00:00:17 #1011 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:17 #1012 [Verbose] > │ let v6 : System.DateTime = System.DateTime.ParseExact (v1.[..24] |> v2 │
00:00:17 #1013 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:17 #1014 [Verbose] > │ v6 │
00:00:17 #1015 [Verbose] > │ #endif │
00:00:17 #1016 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:17 #1017 [Verbose] > │ let v7 : System.DateTime = System.DateTime.ParseExact (v1.[..24] |> v2 │
00:00:17 #1018 [Verbose] > │ "-" "", "yyyyMMddHHmmssfffffff", null) │
00:00:17 #1019 [Verbose] > │ v7 │
00:00:17 #1020 [Verbose] > │ #endif │
00:00:17 #1021 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #1022 [Verbose] > │ let v8 : System.DateTime = result |> Option.get │
00:00:17 #1023 [Verbose] > │ v8 │
00:00:17 #1024 [Verbose] > │ and closure7 (v0 : System.Guid) (v1 : int64) : System.Guid = │
00:00:17 #1025 [Verbose] > │ let v2 : string = v0.ToString () │
00:00:17 #1026 [Verbose] > │ let v3 : string = v1.ToString () │
00:00:17 #1027 [Verbose] > │ let v4 : string = v3.PadLeft (18, '0') │
00:00:17 #1028 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[ │
00:00:17 #1029 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}" │
00:00:17 #1030 [Verbose] > │ v5 │
00:00:17 #1031 [Verbose] > │ and closure6 () (v0 : System.Guid) : (int64 -> System.Guid) = │
00:00:17 #1032 [Verbose] > │ closure7(v0) │
00:00:17 #1033 [Verbose] > │ and closure8 () (v0 : System.Guid) : int64 = │
00:00:17 #1034 [Verbose] > │ let v1 : string = v0.ToString () │
00:00:17 #1035 [Verbose] > │ let v2 : int64 = int64 $"{v1.[0..7]}{v1.[9..12]}{v1.[14..17]}{v1.[ │
00:00:17 #1036 [Verbose] > │ 19..20]}" │
00:00:17 #1037 [Verbose] > │ v2 │
00:00:17 #1038 [Verbose] > │ and closure9 () (v0 : System.DateTime) : System.Guid = │
00:00:17 #1039 [Verbose] > │ let v1 : System.Guid = System.Guid.NewGuid () │
00:00:17 #1040 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:17 #1041 [Verbose] > │ let v3 : string = v0.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:17 #1042 [Verbose] > │ let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}" │
00:00:17 #1043 [Verbose] > │ v4 │
00:00:17 #1044 [Verbose] > │ and closure10 () (v0 : int64) : System.Guid = │
00:00:17 #1045 [Verbose] > │ let v1 : System.Guid = System.Guid.NewGuid () │
00:00:17 #1046 [Verbose] > │ let v2 : string = v1.ToString () │
00:00:17 #1047 [Verbose] > │ let v3 : string = v0.ToString () │
00:00:17 #1048 [Verbose] > │ let v4 : string = v3.PadLeft (18, '0') │
00:00:17 #1049 [Verbose] > │ let v5 : System.Guid = System.Guid $"{v4.[0..7]}-{v4.[8..11]}-{v4.[ │
00:00:17 #1050 [Verbose] > │ 12..15]}-{v4.[16..17]}{v2.[21..]}" │
00:00:17 #1051 [Verbose] > │ v5 │
00:00:17 #1052 [Verbose] > │ let v0 : (System.Guid -> (System.DateTime -> System.Guid)) = closure0() │
00:00:17 #1053 [Verbose] > │ let date_time_guid_from_date_time x = v0 x │
00:00:17 #1054 [Verbose] > │ let v1 : (System.Guid -> System.DateTime) = closure2() │
00:00:17 #1055 [Verbose] > │ let date_time_from_guid x = v1 x │
00:00:17 #1056 [Verbose] > │ let v2 : (System.Guid -> (int64 -> System.Guid)) = closure6() │
00:00:17 #1057 [Verbose] > │ let ticks_guid_from_ticks x = v2 x │
00:00:17 #1058 [Verbose] > │ let v3 : (System.Guid -> int64) = closure8() │
00:00:17 #1059 [Verbose] > │ let ticks_from_guid x = v3 x │
00:00:17 #1060 [Verbose] > │ let v4 : (System.DateTime -> System.Guid) = closure9() │
00:00:17 #1061 [Verbose] > │ let new_guid_from_date_time x = v4 x │
00:00:17 #1062 [Verbose] > │ let v5 : (int64 -> System.Guid) = closure10() │
00:00:17 #1063 [Verbose] > │ let new_guid_from_ticks x = v5 x │
00:00:17 #1064 [Verbose] > │ () │
00:00:17 #1065 [Verbose] > │ │
00:00:17 #1066 [Verbose] > │ │
00:00:17 #1067 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1068 [Verbose] > [NbConvertApp] Converting notebook date_time.dib.ipynb to html
00:00:19 #1069 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:19 #1070 [Verbose] > validate(nb)
00:00:19 #1071 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:19 #1072 [Verbose] > return _pygments_highlight(
00:00:20 #1073 [Verbose] > [NbConvertApp] Writing 352442 bytes to date_time.dib.html
00:00:20 #1074 [Debug] executeAsync / exitCode: 0 / output.Length: 73348
00:00:20 #1075 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # math │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:07 #13 [Verbose] >
00:00:07 #14 [Verbose] > ╭─[ 4.10s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #15 [Verbose] > │ () │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > │ │
00:00:07 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #19 [Verbose] >
00:00:07 #20 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #21 [Verbose] > // // test
00:00:07 #22 [Verbose] >
00:00:07 #23 [Verbose] > 2 * 2 / 0.4f64 |> sqrt
00:00:07 #24 [Verbose] > |> _assert_approx_eq None 3.1622776601683795
00:00:08 #25 [Verbose] >
00:00:08 #26 [Verbose] > ╭─[ 902.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #27 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #28 [Verbose] > │ let v0 : string = $"%A{3.1622776601683795}" │
00:00:08 #29 [Verbose] > │ System.Console.WriteLine v0 │
00:00:08 #30 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3.1622776601683795} / │
00:00:08 #31 [Verbose] > │ expected: %A{3.1622776601683795}" │
00:00:08 #32 [Verbose] > │ () │
00:00:08 #33 [Verbose] > │ method0() │
00:00:08 #34 [Verbose] > │ │
00:00:08 #35 [Verbose] > │ 3.16227766 │
00:00:08 #36 [Verbose] > │ │
00:00:08 #37 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #38 [Verbose] >
00:00:08 #39 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #40 [Verbose] > // // test
00:00:08 #41 [Verbose] >
00:00:08 #42 [Verbose] > 2f64 / 3
00:00:08 #43 [Verbose] > |> _assert_approx_eq None 0.6666666666666666
00:00:08 #44 [Verbose] >
00:00:08 #45 [Verbose] > ╭─[ 312.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #46 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #47 [Verbose] > │ let v0 : string = $"%A{0.6666666666666666}" │
00:00:08 #48 [Verbose] > │ System.Console.WriteLine v0 │
00:00:08 #49 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.6666666666666666} / │
00:00:08 #50 [Verbose] > │ expected: %A{0.6666666666666666}" │
00:00:08 #51 [Verbose] > │ () │
00:00:08 #52 [Verbose] > │ method0() │
00:00:08 #53 [Verbose] > │ │
00:00:08 #54 [Verbose] > │ 0.6666666667 │
00:00:08 #55 [Verbose] > │ │
00:00:08 #56 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #57 [Verbose] >
00:00:08 #58 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #59 [Verbose] > // // test
00:00:08 #60 [Verbose] >
00:00:08 #61 [Verbose] > 2f64 |> log
00:00:08 #62 [Verbose] > |> _assert_approx_eq None 0.6931471805599453
00:00:08 #63 [Verbose] >
00:00:08 #64 [Verbose] > ╭─[ 237.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #65 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #66 [Verbose] > │ let v0 : string = $"%A{0.6931471805599453}" │
00:00:08 #67 [Verbose] > │ System.Console.WriteLine v0 │
00:00:08 #68 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.6931471805599453} / │
00:00:08 #69 [Verbose] > │ expected: %A{0.6931471805599453}" │
00:00:08 #70 [Verbose] > │ () │
00:00:08 #71 [Verbose] > │ method0() │
00:00:08 #72 [Verbose] > │ │
00:00:08 #73 [Verbose] > │ 0.6931471806 │
00:00:08 #74 [Verbose] > │ │
00:00:08 #75 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #76 [Verbose] >
00:00:08 #77 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #78 [Verbose] > // // test
00:00:08 #79 [Verbose] >
00:00:08 #80 [Verbose] > pi
00:00:08 #81 [Verbose] > |> _assert_approx_eq None 3.141592653589793f64
00:00:08 #82 [Verbose] >
00:00:08 #83 [Verbose] > ╭─[ 234.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #84 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #85 [Verbose] > │ let v0 : string = $"%A{3.141592653589793}" │
00:00:08 #86 [Verbose] > │ System.Console.WriteLine v0 │
00:00:08 #87 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3.141592653589793} / expected: │
00:00:08 #88 [Verbose] > │ %A{3.141592653589793}" │
00:00:08 #89 [Verbose] > │ () │
00:00:08 #90 [Verbose] > │ method0() │
00:00:08 #91 [Verbose] > │ │
00:00:08 #92 [Verbose] > │ 3.141592654 │
00:00:08 #93 [Verbose] > │ │
00:00:08 #94 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #95 [Verbose] >
00:00:08 #96 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #97 [Verbose] > // // test
00:00:08 #98 [Verbose] >
00:00:08 #99 [Verbose] > pi |> cos
00:00:08 #100 [Verbose] > |> _assert_eq -1f64
00:00:09 #101 [Verbose] >
00:00:09 #102 [Verbose] > ╭─[ 261.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #103 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #104 [Verbose] > │ let v0 : string = $"%A{-1.0}" │
00:00:09 #105 [Verbose] > │ System.Console.WriteLine v0 │
00:00:09 #106 [Verbose] > │ let v1 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}" │
00:00:09 #107 [Verbose] > │ () │
00:00:09 #108 [Verbose] > │ method0() │
00:00:09 #109 [Verbose] > │ │
00:00:09 #110 [Verbose] > │ -1.0 │
00:00:09 #111 [Verbose] > │ │
00:00:09 #112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #113 [Verbose] >
00:00:09 #114 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #115 [Verbose] > // // test
00:00:09 #116 [Verbose] >
00:00:09 #117 [Verbose] > pi
00:00:09 #118 [Verbose] > |> cos
00:00:09 #119 [Verbose] > |> fun n => n / 2f64
00:00:09 #120 [Verbose] > |> _assert_approx_eq None -0.5
00:00:09 #121 [Verbose] >
00:00:09 #122 [Verbose] > ╭─[ 354.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #123 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #124 [Verbose] > │ let v0 : string = $"%A{-0.5}" │
00:00:09 #125 [Verbose] > │ System.Console.WriteLine v0 │
00:00:09 #126 [Verbose] > │ let v1 : string = $"__expect / actual: %A{-0.5} / expected: %A{-0.5}" │
00:00:09 #127 [Verbose] > │ () │
00:00:09 #128 [Verbose] > │ method0() │
00:00:09 #129 [Verbose] > │ │
00:00:09 #130 [Verbose] > │ -0.5 │
00:00:09 #131 [Verbose] > │ │
00:00:09 #132 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #133 [Verbose] >
00:00:09 #134 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #135 [Verbose] > // // test
00:00:09 #136 [Verbose] >
00:00:09 #137 [Verbose] > pi / 2 |> cos
00:00:09 #138 [Verbose] > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:00:09 #139 [Verbose] >
00:00:09 #140 [Verbose] > ╭─[ 222.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #141 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #142 [Verbose] > │ let v0 : string = $"%A{6.123233995736766E-17}" │
00:00:09 #143 [Verbose] > │ System.Console.WriteLine v0 │
00:00:09 #144 [Verbose] > │ let v1 : string = $"__expect / actual: %A{6.123233995736766E-17} / │
00:00:09 #145 [Verbose] > │ expected: %A{6.123233995736766E-17}" │
00:00:09 #146 [Verbose] > │ () │
00:00:09 #147 [Verbose] > │ method0() │
00:00:09 #148 [Verbose] > │ │
00:00:09 #149 [Verbose] > │ 6.123233996e-17 │
00:00:09 #150 [Verbose] > │ │
00:00:09 #151 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #152 [Verbose] >
00:00:09 #153 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #154 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #155 [Verbose] > │ ## atan2 │
00:00:09 #156 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #157 [Verbose] >
00:00:09 #158 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #159 [Verbose] > inl atan2 (y : f64) (x : f64) =
00:00:09 #160 [Verbose] > $"System.Math.Atan2 (!y, !x)" : f64
00:00:09 #161 [Verbose] >
00:00:09 #162 [Verbose] > ╭─[ 245.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #163 [Verbose] > │ () │
00:00:09 #164 [Verbose] > │ │
00:00:09 #165 [Verbose] > │ │
00:00:09 #166 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #167 [Verbose] >
00:00:09 #168 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #169 [Verbose] > // // test
00:00:09 #170 [Verbose] >
00:00:09 #171 [Verbose] > 0 |> atan2 1
00:00:09 #172 [Verbose] > |> _assert_eq 1.5707963267948966
00:00:10 #173 [Verbose] >
00:00:10 #174 [Verbose] > ╭─[ 354.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #175 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:10 #176 [Verbose] > │ v0 │
00:00:10 #177 [Verbose] > │ and method0 () : unit = │
00:00:10 #178 [Verbose] > │ let v0 : float = System.Math.Atan2 (1.0, 0.0) │
00:00:10 #179 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:10 #180 [Verbose] > │ System.Console.WriteLine v1 │
00:00:10 #181 [Verbose] > │ let v2 : bool = v0 = 1.5707963267948966 │
00:00:10 #182 [Verbose] > │ let v4 : bool = │
00:00:10 #183 [Verbose] > │ if v2 then │
00:00:10 #184 [Verbose] > │ true │
00:00:10 #185 [Verbose] > │ else │
00:00:10 #186 [Verbose] > │ method1(v2) │
00:00:10 #187 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v0} / expected: │
00:00:10 #188 [Verbose] > │ %A{1.5707963267948966}" │
00:00:10 #189 [Verbose] > │ let v6 : bool = v4 = false │
00:00:10 #190 [Verbose] > │ if v6 then │
00:00:10 #191 [Verbose] > │ failwith<unit> v5 │
00:00:10 #192 [Verbose] > │ method0() │
00:00:10 #193 [Verbose] > │ │
00:00:10 #194 [Verbose] > │ 1.570796327 │
00:00:10 #195 [Verbose] > │ │
00:00:10 #196 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #197 [Verbose] >
00:00:10 #198 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #199 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #200 [Verbose] > │ ## e │
00:00:10 #201 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #202 [Verbose] >
00:00:10 #203 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #204 [Verbose] > inl e () =
00:00:10 #205 [Verbose] > exp 1f64
00:00:10 #206 [Verbose] >
00:00:10 #207 [Verbose] > ╭─[ 300.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #208 [Verbose] > │ () │
00:00:10 #209 [Verbose] > │ │
00:00:10 #210 [Verbose] > │ │
00:00:10 #211 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #212 [Verbose] >
00:00:10 #213 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #214 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #215 [Verbose] > │ ## floor │
00:00:10 #216 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #217 [Verbose] >
00:00:10 #218 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #219 [Verbose] > inl floor forall t {float}. (x : t) : t =
00:00:10 #220 [Verbose] > $"floor !x"
00:00:10 #221 [Verbose] >
00:00:10 #222 [Verbose] > ╭─[ 228.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #223 [Verbose] > │ () │
00:00:10 #224 [Verbose] > │ │
00:00:10 #225 [Verbose] > │ │
00:00:10 #226 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #227 [Verbose] >
00:00:10 #228 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #229 [Verbose] > // // test
00:00:10 #230 [Verbose] >
00:00:10 #231 [Verbose] > 0.6 |> floor
00:00:10 #232 [Verbose] > |> _assert_eq 0f64
00:00:11 #233 [Verbose] >
00:00:11 #234 [Verbose] > ╭─[ 252.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #235 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:11 #236 [Verbose] > │ v0 │
00:00:11 #237 [Verbose] > │ and method0 () : unit = │
00:00:11 #238 [Verbose] > │ let v0 : float = floor 0.6 │
00:00:11 #239 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:11 #240 [Verbose] > │ System.Console.WriteLine v1 │
00:00:11 #241 [Verbose] > │ let v2 : bool = v0 = 0.0 │
00:00:11 #242 [Verbose] > │ let v4 : bool = │
00:00:11 #243 [Verbose] > │ if v2 then │
00:00:11 #244 [Verbose] > │ true │
00:00:11 #245 [Verbose] > │ else │
00:00:11 #246 [Verbose] > │ method1(v2) │
00:00:11 #247 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}" │
00:00:11 #248 [Verbose] > │ let v6 : bool = v4 = false │
00:00:11 #249 [Verbose] > │ if v6 then │
00:00:11 #250 [Verbose] > │ failwith<unit> v5 │
00:00:11 #251 [Verbose] > │ method0() │
00:00:11 #252 [Verbose] > │ │
00:00:11 #253 [Verbose] > │ 0.0 │
00:00:11 #254 [Verbose] > │ │
00:00:11 #255 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #256 [Verbose] >
00:00:11 #257 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #258 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #259 [Verbose] > │ ## log_base │
00:00:11 #260 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #261 [Verbose] >
00:00:11 #262 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #263 [Verbose] > inl log_base (new_base : f64) (a : f64) =
00:00:11 #264 [Verbose] > $"System.Math.Log (!a, !new_base)" : f64
00:00:11 #265 [Verbose] >
00:00:11 #266 [Verbose] > ╭─[ 222.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #267 [Verbose] > │ () │
00:00:11 #268 [Verbose] > │ │
00:00:11 #269 [Verbose] > │ │
00:00:11 #270 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #271 [Verbose] >
00:00:11 #272 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #273 [Verbose] > // // test
00:00:11 #274 [Verbose] >
00:00:11 #275 [Verbose] > 100 |> log_base 10
00:00:11 #276 [Verbose] > |> _assert_eq 2
00:00:11 #277 [Verbose] >
00:00:11 #278 [Verbose] > ╭─[ 309.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #279 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:11 #280 [Verbose] > │ v0 │
00:00:11 #281 [Verbose] > │ and method0 () : unit = │
00:00:11 #282 [Verbose] > │ let v0 : float = System.Math.Log (100.0, 10.0) │
00:00:11 #283 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:11 #284 [Verbose] > │ System.Console.WriteLine v1 │
00:00:11 #285 [Verbose] > │ let v2 : bool = v0 = 2.0 │
00:00:11 #286 [Verbose] > │ let v4 : bool = │
00:00:11 #287 [Verbose] > │ if v2 then │
00:00:11 #288 [Verbose] > │ true │
00:00:11 #289 [Verbose] > │ else │
00:00:11 #290 [Verbose] > │ method1(v2) │
00:00:11 #291 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}" │
00:00:11 #292 [Verbose] > │ let v6 : bool = v4 = false │
00:00:11 #293 [Verbose] > │ if v6 then │
00:00:11 #294 [Verbose] > │ failwith<unit> v5 │
00:00:11 #295 [Verbose] > │ method0() │
00:00:11 #296 [Verbose] > │ │
00:00:11 #297 [Verbose] > │ 2.0 │
00:00:11 #298 [Verbose] > │ │
00:00:11 #299 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #300 [Verbose] >
00:00:11 #301 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #302 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #303 [Verbose] > │ ## round │
00:00:11 #304 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #305 [Verbose] >
00:00:11 #306 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #307 [Verbose] > inl round forall t {float}. (x : t) : t =
00:00:11 #308 [Verbose] > $"round !x"
00:00:11 #309 [Verbose] >
00:00:11 #310 [Verbose] > ╭─[ 235.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #311 [Verbose] > │ () │
00:00:11 #312 [Verbose] > │ │
00:00:11 #313 [Verbose] > │ │
00:00:11 #314 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #315 [Verbose] >
00:00:11 #316 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #317 [Verbose] > // // test
00:00:11 #318 [Verbose] >
00:00:11 #319 [Verbose] > 0.5 |> round
00:00:11 #320 [Verbose] > |> _assert_eq 0f64
00:00:12 #321 [Verbose] >
00:00:12 #322 [Verbose] > ╭─[ 262.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #323 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:12 #324 [Verbose] > │ v0 │
00:00:12 #325 [Verbose] > │ and method0 () : unit = │
00:00:12 #326 [Verbose] > │ let v0 : float = round 0.5 │
00:00:12 #327 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:12 #328 [Verbose] > │ System.Console.WriteLine v1 │
00:00:12 #329 [Verbose] > │ let v2 : bool = v0 = 0.0 │
00:00:12 #330 [Verbose] > │ let v4 : bool = │
00:00:12 #331 [Verbose] > │ if v2 then │
00:00:12 #332 [Verbose] > │ true │
00:00:12 #333 [Verbose] > │ else │
00:00:12 #334 [Verbose] > │ method1(v2) │
00:00:12 #335 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}" │
00:00:12 #336 [Verbose] > │ let v6 : bool = v4 = false │
00:00:12 #337 [Verbose] > │ if v6 then │
00:00:12 #338 [Verbose] > │ failwith<unit> v5 │
00:00:12 #339 [Verbose] > │ method0() │
00:00:12 #340 [Verbose] > │ │
00:00:12 #341 [Verbose] > │ 0.0 │
00:00:12 #342 [Verbose] > │ │
00:00:12 #343 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #344 [Verbose] >
00:00:12 #345 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #346 [Verbose] > // // test
00:00:12 #347 [Verbose] >
00:00:12 #348 [Verbose] > 0.6 |> round
00:00:12 #349 [Verbose] > |> _assert_eq 1f64
00:00:12 #350 [Verbose] >
00:00:12 #351 [Verbose] > ╭─[ 293.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #352 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:12 #353 [Verbose] > │ v0 │
00:00:12 #354 [Verbose] > │ and method0 () : unit = │
00:00:12 #355 [Verbose] > │ let v0 : float = round 0.6 │
00:00:12 #356 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:12 #357 [Verbose] > │ System.Console.WriteLine v1 │
00:00:12 #358 [Verbose] > │ let v2 : bool = v0 = 1.0 │
00:00:12 #359 [Verbose] > │ let v4 : bool = │
00:00:12 #360 [Verbose] > │ if v2 then │
00:00:12 #361 [Verbose] > │ true │
00:00:12 #362 [Verbose] > │ else │
00:00:12 #363 [Verbose] > │ method1(v2) │
00:00:12 #364 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v0} / expected: %A{1.0}" │
00:00:12 #365 [Verbose] > │ let v6 : bool = v4 = false │
00:00:12 #366 [Verbose] > │ if v6 then │
00:00:12 #367 [Verbose] > │ failwith<unit> v5 │
00:00:12 #368 [Verbose] > │ method0() │
00:00:12 #369 [Verbose] > │ │
00:00:12 #370 [Verbose] > │ 1.0 │
00:00:12 #371 [Verbose] > │ │
00:00:12 #372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #373 [Verbose] >
00:00:12 #374 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #375 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #376 [Verbose] > │ ## square │
00:00:12 #377 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #378 [Verbose] >
00:00:12 #379 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #380 [Verbose] > inl square x =
00:00:12 #381 [Verbose] > x ** 2
00:00:12 #382 [Verbose] >
00:00:12 #383 [Verbose] > ╭─[ 254.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #384 [Verbose] > │ () │
00:00:12 #385 [Verbose] > │ │
00:00:12 #386 [Verbose] > │ │
00:00:12 #387 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #388 [Verbose] >
00:00:12 #389 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #390 [Verbose] > // // test
00:00:12 #391 [Verbose] >
00:00:12 #392 [Verbose] > 5f64
00:00:12 #393 [Verbose] > |> sqrt
00:00:12 #394 [Verbose] > |> square
00:00:12 #395 [Verbose] > |> _assert_approx_eq None 5
00:00:12 #396 [Verbose] >
00:00:12 #397 [Verbose] > ╭─[ 267.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #398 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #399 [Verbose] > │ let v0 : string = $"%A{5.000000000000001}" │
00:00:12 #400 [Verbose] > │ System.Console.WriteLine v0 │
00:00:12 #401 [Verbose] > │ let v1 : string = $"__expect / actual: %A{5.000000000000001} / expected: │
00:00:12 #402 [Verbose] > │ %A{5.0}" │
00:00:12 #403 [Verbose] > │ () │
00:00:12 #404 [Verbose] > │ method0() │
00:00:12 #405 [Verbose] > │ │
00:00:12 #406 [Verbose] > │ 5.0 │
00:00:12 #407 [Verbose] > │ │
00:00:12 #408 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #409 [Verbose] >
00:00:12 #410 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #411 [Verbose] > // // test
00:00:12 #412 [Verbose] >
00:00:12 #413 [Verbose] > e () |> square
00:00:12 #414 [Verbose] > |> _assert_approx_eq None 7.3890560989306495
00:00:13 #415 [Verbose] >
00:00:13 #416 [Verbose] > ╭─[ 254.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #417 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #418 [Verbose] > │ let v0 : string = $"%A{7.3890560989306495}" │
00:00:13 #419 [Verbose] > │ System.Console.WriteLine v0 │
00:00:13 #420 [Verbose] > │ let v1 : string = $"__expect / actual: %A{7.3890560989306495} / │
00:00:13 #421 [Verbose] > │ expected: %A{7.3890560989306495}" │
00:00:13 #422 [Verbose] > │ () │
00:00:13 #423 [Verbose] > │ method0() │
00:00:13 #424 [Verbose] > │ │
00:00:13 #425 [Verbose] > │ 7.389056099 │
00:00:13 #426 [Verbose] > │ │
00:00:13 #427 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #428 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html
00:00:15 #429 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:15 #430 [Verbose] > validate(nb)
00:00:15 #431 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:15 #432 [Verbose] > return _pygments_highlight(
00:00:15 #433 [Verbose] > [NbConvertApp] Writing 304029 bytes to math.dib.html
00:00:16 #434 [Debug] executeAsync / exitCode: 0 / output.Length: 26372
00:00:16 #435 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"optionm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # optionm │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > // // test
00:00:02 #11 [Verbose] >
00:00:02 #12 [Verbose] > open testing
00:00:07 #13 [Verbose] >
00:00:07 #14 [Verbose] > ╭─[ 4.22s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #15 [Verbose] > │ () │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > │ │
00:00:07 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #19 [Verbose] >
00:00:07 #20 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #21 [Verbose] > open rust_operators
00:00:07 #22 [Verbose] >
00:00:07 #23 [Verbose] > ╭─[ 262.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #24 [Verbose] > │ () │
00:00:07 #25 [Verbose] > │ │
00:00:07 #26 [Verbose] > │ │
00:00:07 #27 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #28 [Verbose] >
00:00:07 #29 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #30 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #31 [Verbose] > │ ## default_value │
00:00:07 #32 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #33 [Verbose] >
00:00:07 #34 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #35 [Verbose] > inl default_value d =
00:00:07 #36 [Verbose] > optionm.defaultWith d
00:00:07 #37 [Verbose] >
00:00:07 #38 [Verbose] > ╭─[ 247.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #39 [Verbose] > │ () │
00:00:07 #40 [Verbose] > │ │
00:00:07 #41 [Verbose] > │ │
00:00:07 #42 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #43 [Verbose] >
00:00:07 #44 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #45 [Verbose] > // // test
00:00:07 #46 [Verbose] >
00:00:07 #47 [Verbose] > None
00:00:07 #48 [Verbose] > |> default_value 3i32
00:00:07 #49 [Verbose] > |> _assert_eq 3i32
00:00:08 #50 [Verbose] >
00:00:08 #51 [Verbose] > ╭─[ 1.01s - stdout ]───────────────────────────────────────────────────────────╮
00:00:08 #52 [Verbose] > │ let rec method0 () : unit = │
00:00:08 #53 [Verbose] > │ let v0 : string = $"%A{3}" │
00:00:08 #54 [Verbose] > │ System.Console.WriteLine v0 │
00:00:08 #55 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:08 #56 [Verbose] > │ () │
00:00:08 #57 [Verbose] > │ method0() │
00:00:08 #58 [Verbose] > │ │
00:00:08 #59 [Verbose] > │ 3 │
00:00:08 #60 [Verbose] > │ │
00:00:08 #61 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #62 [Verbose] >
00:00:08 #63 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #64 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #65 [Verbose] > │ ## (/??) │
00:00:08 #66 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #67 [Verbose] >
00:00:08 #68 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #69 [Verbose] > inl (/??) a b =
00:00:08 #70 [Verbose] > a |> default_value b
00:00:08 #71 [Verbose] >
00:00:08 #72 [Verbose] > ╭─[ 336.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #73 [Verbose] > │ () │
00:00:08 #74 [Verbose] > │ │
00:00:08 #75 [Verbose] > │ │
00:00:08 #76 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #77 [Verbose] >
00:00:08 #78 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #79 [Verbose] > // // test
00:00:08 #80 [Verbose] >
00:00:08 #81 [Verbose] > None /?? 3i32
00:00:08 #82 [Verbose] > |> _assert_eq 3i32
00:00:09 #83 [Verbose] >
00:00:09 #84 [Verbose] > ╭─[ 271.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #85 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #86 [Verbose] > │ let v0 : string = $"%A{3}" │
00:00:09 #87 [Verbose] > │ System.Console.WriteLine v0 │
00:00:09 #88 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:09 #89 [Verbose] > │ () │
00:00:09 #90 [Verbose] > │ method0() │
00:00:09 #91 [Verbose] > │ │
00:00:09 #92 [Verbose] > │ 3 │
00:00:09 #93 [Verbose] > │ │
00:00:09 #94 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #95 [Verbose] >
00:00:09 #96 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #97 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #98 [Verbose] > │ ## default_with │
00:00:09 #99 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #100 [Verbose] >
00:00:09 #101 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #102 [Verbose] > inl default_with fn =
00:00:09 #103 [Verbose] > function Some x => x | None => fn ()
00:00:09 #104 [Verbose] >
00:00:09 #105 [Verbose] > ╭─[ 241.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #106 [Verbose] > │ () │
00:00:09 #107 [Verbose] > │ │
00:00:09 #108 [Verbose] > │ │
00:00:09 #109 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #110 [Verbose] >
00:00:09 #111 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #112 [Verbose] > // // test
00:00:09 #113 [Verbose] >
00:00:09 #114 [Verbose] > None
00:00:09 #115 [Verbose] > |> default_with (fun () => 3i32)
00:00:09 #116 [Verbose] > |> _assert_eq 3i32
00:00:09 #117 [Verbose] >
00:00:09 #118 [Verbose] > ╭─[ 260.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #119 [Verbose] > │ let rec method0 () : unit = │
00:00:09 #120 [Verbose] > │ let v0 : string = $"%A{3}" │
00:00:09 #121 [Verbose] > │ System.Console.WriteLine v0 │
00:00:09 #122 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:09 #123 [Verbose] > │ () │
00:00:09 #124 [Verbose] > │ method0() │
00:00:09 #125 [Verbose] > │ │
00:00:09 #126 [Verbose] > │ 3 │
00:00:09 #127 [Verbose] > │ │
00:00:09 #128 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #129 [Verbose] >
00:00:09 #130 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #131 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #132 [Verbose] > │ ## choose │
00:00:09 #133 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #134 [Verbose] >
00:00:09 #135 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #136 [Verbose] > inl choose fn a b =
00:00:09 #137 [Verbose] > match a, b with
00:00:09 #138 [Verbose] > | Some x, Some y => fn x y |> Some
00:00:09 #139 [Verbose] > | _ => None
00:00:10 #140 [Verbose] >
00:00:10 #141 [Verbose] > ╭─[ 310.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #142 [Verbose] > │ () │
00:00:10 #143 [Verbose] > │ │
00:00:10 #144 [Verbose] > │ │
00:00:10 #145 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #146 [Verbose] >
00:00:10 #147 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #148 [Verbose] > // // test
00:00:10 #149 [Verbose] >
00:00:10 #150 [Verbose] > (Some 2i32, Some 3)
00:00:10 #151 [Verbose] > ||> choose (+)
00:00:10 #152 [Verbose] > |> _assert_eq (Some 5)
00:00:10 #153 [Verbose] >
00:00:10 #154 [Verbose] > ╭─[ 713.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #155 [Verbose] > │ type [<Struct>] US0 = │
00:00:10 #156 [Verbose] > │ | US0_0 │
00:00:10 #157 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:10 #158 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #159 [Verbose] > │ let v0 : US0 = US0_1(5) │
00:00:10 #160 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:10 #161 [Verbose] > │ System.Console.WriteLine v1 │
00:00:10 #162 [Verbose] > │ let v5 : US0 = US0_1(5) │
00:00:10 #163 [Verbose] > │ let v6 : US0 = US0_1(5) │
00:00:10 #164 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:10 #165 [Verbose] > │ () │
00:00:10 #166 [Verbose] > │ method0() │
00:00:10 #167 [Verbose] > │ │
00:00:10 #168 [Verbose] > │ US0_1 5 │
00:00:10 #169 [Verbose] > │ │
00:00:10 #170 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #171 [Verbose] >
00:00:10 #172 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #173 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #174 [Verbose] > │ ## iter │
00:00:10 #175 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #176 [Verbose] >
00:00:10 #177 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #178 [Verbose] > inl iter fn = function
00:00:10 #179 [Verbose] > | Some x => fn x
00:00:10 #180 [Verbose] > | None => ()
00:00:10 #181 [Verbose] >
00:00:10 #182 [Verbose] > ╭─[ 216.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #183 [Verbose] > │ () │
00:00:10 #184 [Verbose] > │ │
00:00:10 #185 [Verbose] > │ │
00:00:10 #186 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #187 [Verbose] >
00:00:10 #188 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #189 [Verbose] > // // test
00:00:10 #190 [Verbose] >
00:00:10 #191 [Verbose] > inl n = mut 1i32
00:00:10 #192 [Verbose] > inl fn =
00:00:10 #193 [Verbose] > fun n' =>
00:00:10 #194 [Verbose] > n <- *n + n'
00:00:10 #195 [Verbose] > Some 1i32 |> iter fn
00:00:10 #196 [Verbose] > None |> iter fn
00:00:10 #197 [Verbose] > *n
00:00:10 #198 [Verbose] > |> _assert_eq 2i32
00:00:11 #199 [Verbose] >
00:00:11 #200 [Verbose] > ╭─[ 360.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #201 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:11 #202 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:11 #203 [Verbose] > │ v0 │
00:00:11 #204 [Verbose] > │ and method0 () : unit = │
00:00:11 #205 [Verbose] > │ let v0 : Mut0 = {l0 = 1} : Mut0 │
00:00:11 #206 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:11 #207 [Verbose] > │ let v2 : int32 = v1 + 1 │
00:00:11 #208 [Verbose] > │ v0.l0 <- v2 │
00:00:11 #209 [Verbose] > │ let v3 : int32 = v0.l0 │
00:00:11 #210 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:11 #211 [Verbose] > │ System.Console.WriteLine v4 │
00:00:11 #212 [Verbose] > │ let v5 : bool = v3 = 2 │
00:00:11 #213 [Verbose] > │ let v7 : bool = │
00:00:11 #214 [Verbose] > │ if v5 then │
00:00:11 #215 [Verbose] > │ true │
00:00:11 #216 [Verbose] > │ else │
00:00:11 #217 [Verbose] > │ method1(v5) │
00:00:11 #218 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v3} / expected: %A{2}" │
00:00:11 #219 [Verbose] > │ let v9 : bool = v7 = false │
00:00:11 #220 [Verbose] > │ if v9 then │
00:00:11 #221 [Verbose] > │ failwith<unit> v8 │
00:00:11 #222 [Verbose] > │ method0() │
00:00:11 #223 [Verbose] > │ │
00:00:11 #224 [Verbose] > │ 2 │
00:00:11 #225 [Verbose] > │ │
00:00:11 #226 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #227 [Verbose] >
00:00:11 #228 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #229 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #230 [Verbose] > │ ## option' │
00:00:11 #231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #232 [Verbose] >
00:00:11 #233 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #234 [Verbose] > nominal option' t = $"`t option"
00:00:11 #235 [Verbose] >
00:00:11 #236 [Verbose] > inl unbox forall t. (x : option' t) : option t =
00:00:11 #237 [Verbose] > inl some x : option t = Some x
00:00:11 #238 [Verbose] > inl none : option t = None
00:00:11 #239 [Verbose] > $"!x |> Option.map !some |> Option.defaultValue !none"
00:00:11 #240 [Verbose] >
00:00:11 #241 [Verbose] > inl box forall t. (x : option t) : option' t =
00:00:11 #242 [Verbose] > match x with
00:00:11 #243 [Verbose] > | Some x => $"Some !x"
00:00:11 #244 [Verbose] > | None => $"None"
00:00:11 #245 [Verbose] >
00:00:11 #246 [Verbose] > ╭─[ 283.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #247 [Verbose] > │ () │
00:00:11 #248 [Verbose] > │ │
00:00:11 #249 [Verbose] > │ │
00:00:11 #250 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #251 [Verbose] >
00:00:11 #252 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #253 [Verbose] > // // test
00:00:11 #254 [Verbose] >
00:00:11 #255 [Verbose] > inl x = Some 3i32
00:00:11 #256 [Verbose] > inl y : option i32 = None
00:00:11 #257 [Verbose] > inl x' = x |> box |> unbox
00:00:11 #258 [Verbose] > inl y' = y |> box |> unbox
00:00:11 #259 [Verbose] > (x', y') |> _assert_eq (x, y)
00:00:12 #260 [Verbose] >
00:00:12 #261 [Verbose] > ╭─[ 420.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #262 [Verbose] > │ type [<Struct>] US0 = │
00:00:12 #263 [Verbose] > │ | US0_0 │
00:00:12 #264 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:12 #265 [Verbose] > │ let rec closure0 () (v0 : int32) : US0 = │
00:00:12 #266 [Verbose] > │ US0_1(v0) │
00:00:12 #267 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:12 #268 [Verbose] > │ v0 │
00:00:12 #269 [Verbose] > │ and method0 () : unit = │
00:00:12 #270 [Verbose] > │ let v0 : int32 option = Some 3 │
00:00:12 #271 [Verbose] > │ let v1 : (int32 -> US0) = closure0() │
00:00:12 #272 [Verbose] > │ let v2 : US0 = US0_0 │
00:00:12 #273 [Verbose] > │ let v3 : US0 = v0 |> Option.map v1 |> Option.defaultValue v2 │
00:00:12 #274 [Verbose] > │ let v4 : int32 option = None │
00:00:12 #275 [Verbose] > │ let v5 : US0 = US0_0 │
00:00:12 #276 [Verbose] > │ let v6 : US0 = v4 |> Option.map v1 |> Option.defaultValue v5 │
00:00:12 #277 [Verbose] > │ let v7 : string = $"%A{struct (v3, v6)}" │
00:00:12 #278 [Verbose] > │ System.Console.WriteLine v7 │
00:00:12 #279 [Verbose] > │ let v12 : bool = │
00:00:12 #280 [Verbose] > │ match v3 with │
00:00:12 #281 [Verbose] > │ | US0_1(v10) -> (* Some *) │
00:00:12 #282 [Verbose] > │ let v11 : bool = v10 = 3 │
00:00:12 #283 [Verbose] > │ v11 │
00:00:12 #284 [Verbose] > │ | _ -> │
00:00:12 #285 [Verbose] > │ false │
00:00:12 #286 [Verbose] > │ let v14 : bool = │
00:00:12 #287 [Verbose] > │ if v12 then │
00:00:12 #288 [Verbose] > │ match v6 with │
00:00:12 #289 [Verbose] > │ | US0_0 -> (* None *) │
00:00:12 #290 [Verbose] > │ true │
00:00:12 #291 [Verbose] > │ | _ -> │
00:00:12 #292 [Verbose] > │ false │
00:00:12 #293 [Verbose] > │ else │
00:00:12 #294 [Verbose] > │ false │
00:00:12 #295 [Verbose] > │ let v16 : bool = │
00:00:12 #296 [Verbose] > │ if v14 then │
00:00:12 #297 [Verbose] > │ true │
00:00:12 #298 [Verbose] > │ else │
00:00:12 #299 [Verbose] > │ method1(v14) │
00:00:12 #300 [Verbose] > │ let v17 : US0 = US0_1(3) │
00:00:12 #301 [Verbose] > │ let v18 : US0 = US0_0 │
00:00:12 #302 [Verbose] > │ let v19 : string = $"__expect / actual: %A{struct (v3, v6)} / expected: │
00:00:12 #303 [Verbose] > │ %A{struct (v17, v18)}" │
00:00:12 #304 [Verbose] > │ let v20 : bool = v16 = false │
00:00:12 #305 [Verbose] > │ if v20 then │
00:00:12 #306 [Verbose] > │ failwith<unit> v19 │
00:00:12 #307 [Verbose] > │ method0() │
00:00:12 #308 [Verbose] > │ │
00:00:12 #309 [Verbose] > │ struct (US0_1 3, US0_0) │
00:00:12 #310 [Verbose] > │ │
00:00:12 #311 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #312 [Verbose] >
00:00:12 #313 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #314 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #315 [Verbose] > │ ## map │
00:00:12 #316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #317 [Verbose] >
00:00:12 #318 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #319 [Verbose] > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:00:12 #320 [Verbose] > inl x = join x
00:00:12 #321 [Verbose] > inl fn = join fn
00:00:12 #322 [Verbose] > !\($'"!x.map(|x| !fn(x))"')
00:00:12 #323 [Verbose] >
00:00:12 #324 [Verbose] > ╭─[ 295.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #325 [Verbose] > │ () │
00:00:12 #326 [Verbose] > │ │
00:00:12 #327 [Verbose] > │ │
00:00:12 #328 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #329 [Verbose] >
00:00:12 #330 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #331 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #332 [Verbose] > │ ## flatten │
00:00:12 #333 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #334 [Verbose] >
00:00:12 #335 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #336 [Verbose] > inl flatten x =
00:00:12 #337 [Verbose] > match x with
00:00:12 #338 [Verbose] > | Some (Some x) => Some x
00:00:12 #339 [Verbose] > | _ => None
00:00:12 #340 [Verbose] >
00:00:12 #341 [Verbose] > ╭─[ 276.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #342 [Verbose] > │ () │
00:00:12 #343 [Verbose] > │ │
00:00:12 #344 [Verbose] > │ │
00:00:12 #345 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #346 [Verbose] >
00:00:12 #347 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #348 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #349 [Verbose] > │ ## unwrap │
00:00:12 #350 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #351 [Verbose] >
00:00:12 #352 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #353 [Verbose] > inl unwrap forall t. (x : option' t) : t =
00:00:12 #354 [Verbose] > !\($'"!x.unwrap()"')
00:00:13 #355 [Verbose] >
00:00:13 #356 [Verbose] > ╭─[ 303.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #357 [Verbose] > │ () │
00:00:13 #358 [Verbose] > │ │
00:00:13 #359 [Verbose] > │ │
00:00:13 #360 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #361 [Verbose] >
00:00:13 #362 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #364 [Verbose] > │ ## unwrap_or │
00:00:13 #365 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #366 [Verbose] >
00:00:13 #367 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #368 [Verbose] > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:00:13 #369 [Verbose] > !\($'"!x.unwrap_or(!def)"')
00:00:13 #370 [Verbose] >
00:00:13 #371 [Verbose] > ╭─[ 261.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #372 [Verbose] > │ () │
00:00:13 #373 [Verbose] > │ │
00:00:13 #374 [Verbose] > │ │
00:00:13 #375 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #376 [Verbose] >
00:00:13 #377 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #378 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #379 [Verbose] > │ ## rc_upgrade │
00:00:13 #380 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #381 [Verbose] >
00:00:13 #382 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #383 [Verbose] > inl rc_upgrade forall t. (x : rust.weak_rc t) : option (rust.rc t) =
00:00:13 #384 [Verbose] > inl x = join x
00:00:13 #385 [Verbose] > !\($'"std::rc::Weak::upgrade(&!x)"')
00:00:13 #386 [Verbose] > |> unbox
00:00:13 #387 [Verbose] >
00:00:13 #388 [Verbose] > ╭─[ 241.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #389 [Verbose] > │ () │
00:00:13 #390 [Verbose] > │ │
00:00:13 #391 [Verbose] > │ │
00:00:13 #392 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #393 [Verbose] > [NbConvertApp] Converting notebook optionm'.dib.ipynb to html
00:00:15 #394 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:15 #395 [Verbose] > validate(nb)
00:00:16 #396 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:16 #397 [Verbose] > return _pygments_highlight(
00:00:16 #398 [Verbose] > [NbConvertApp] Writing 307155 bytes to optionm'.dib.html
00:00:17 #399 [Debug] executeAsync / exitCode: 0 / output.Length: 23557
00:00:17 #400 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"am'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # am' │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > // // test
00:00:02 #11 [Verbose] >
00:00:02 #12 [Verbose] > open testing
00:00:02 #13 [Verbose] >
00:00:02 #14 [Verbose] > prototype append t : t -> t -> t
00:00:07 #15 [Verbose] >
00:00:07 #16 [Verbose] > ╭─[ 4.39s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #17 [Verbose] > │ () │
00:00:07 #18 [Verbose] > │ │
00:00:07 #19 [Verbose] > │ │
00:00:07 #20 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #21 [Verbose] >
00:00:07 #22 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #23 [Verbose] > open rust_operators
00:00:07 #24 [Verbose] >
00:00:07 #25 [Verbose] > ╭─[ 264.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #26 [Verbose] > │ () │
00:00:07 #27 [Verbose] > │ │
00:00:07 #28 [Verbose] > │ │
00:00:07 #29 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #30 [Verbose] >
00:00:07 #31 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #32 [Verbose] > inl types () =
00:00:07 #33 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0]]\")>]] type Slice<'T> =
00:00:07 #34 [Verbose] > class end"
00:00:07 #35 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0; $1]]\")>]] type
00:00:07 #36 [Verbose] > Slice'<'T, 'U> = class end"
00:00:07 #37 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Vec<$0>\")>]] type Vec<'T> =
00:00:07 #38 [Verbose] > class end"
00:00:07 #39 [Verbose] >
00:00:07 #40 [Verbose] > ╭─[ 224.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #41 [Verbose] > │ () │
00:00:07 #42 [Verbose] > │ │
00:00:07 #43 [Verbose] > │ │
00:00:07 #44 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #45 [Verbose] >
00:00:07 #46 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #47 [Verbose] > nominal slice t = $"Slice<`t>"
00:00:07 #48 [Verbose] > nominal slice' t u = $"Slice'<`t, `u>"
00:00:07 #49 [Verbose] > nominal vec t = $"Vec<`t>"
00:00:07 #50 [Verbose] >
00:00:07 #51 [Verbose] > ╭─[ 249.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #52 [Verbose] > │ () │
00:00:07 #53 [Verbose] > │ │
00:00:07 #54 [Verbose] > │ │
00:00:07 #55 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #56 [Verbose] >
00:00:07 #57 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #58 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #59 [Verbose] > │ ## append │
00:00:07 #60 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #61 [Verbose] >
00:00:07 #62 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #63 [Verbose] > instance append a dim {int; number} t =
00:00:07 #64 [Verbose] > am.append
00:00:08 #65 [Verbose] >
00:00:08 #66 [Verbose] > ╭─[ 382.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #67 [Verbose] > │ () │
00:00:08 #68 [Verbose] > │ │
00:00:08 #69 [Verbose] > │ │
00:00:08 #70 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #71 [Verbose] >
00:00:08 #72 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #73 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #74 [Verbose] > │ ## /@ │
00:00:08 #75 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #76 [Verbose] >
00:00:08 #77 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #78 [Verbose] > inl (/@) a b =
00:00:08 #79 [Verbose] > b |> append a
00:00:08 #80 [Verbose] >
00:00:08 #81 [Verbose] > ╭─[ 275.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #82 [Verbose] > │ () │
00:00:08 #83 [Verbose] > │ │
00:00:08 #84 [Verbose] > │ │
00:00:08 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #86 [Verbose] >
00:00:08 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #88 [Verbose] > // // test
00:00:08 #89 [Verbose] >
00:00:08 #90 [Verbose] > a ;[[ "a"; "b" ]] /@ a ;[[ "c"; "d" ]]
00:00:08 #91 [Verbose] > |> _assert_eq (a ;[[ "a"; "b"; "c"; "d" ]] : _ i32 _)
00:00:09 #92 [Verbose] >
00:00:09 #93 [Verbose] > ╭─[ 1.41s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #94 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:09 #95 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:09 #96 [Verbose] > │ v0 │
00:00:09 #97 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:09 #98 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:09 #99 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:09 #100 [Verbose] > │ v3 │
00:00:09 #101 [Verbose] > │ and method3 (v0 : (string []), v1 : (string []), v2 : int32) : bool = │
00:00:09 #102 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:09 #103 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:09 #104 [Verbose] > │ if v4 then │
00:00:09 #105 [Verbose] > │ let v5 : string = v0.[int v2] │
00:00:09 #106 [Verbose] > │ let v6 : string = v1.[int v2] │
00:00:09 #107 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:09 #108 [Verbose] > │ if v7 then │
00:00:09 #109 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:09 #110 [Verbose] > │ method3(v0, v1, v8) │
00:00:09 #111 [Verbose] > │ else │
00:00:09 #112 [Verbose] > │ false │
00:00:09 #113 [Verbose] > │ else │
00:00:09 #114 [Verbose] > │ true │
00:00:09 #115 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:09 #116 [Verbose] > │ v0 │
00:00:09 #117 [Verbose] > │ and method0 () : unit = │
00:00:09 #118 [Verbose] > │ let v0 : string = "a" │
00:00:09 #119 [Verbose] > │ let v1 : string = "b" │
00:00:09 #120 [Verbose] > │ let v2 : (string []) = [|v0; v1|] │
00:00:09 #121 [Verbose] > │ let v3 : (string []) = method1(v2) │
00:00:09 #122 [Verbose] > │ let v4 : string = "c" │
00:00:09 #123 [Verbose] > │ let v5 : string = "d" │
00:00:09 #124 [Verbose] > │ let v6 : (string []) = [|v4; v5|] │
00:00:09 #125 [Verbose] > │ let v7 : (string []) = method1(v6) │
00:00:09 #126 [Verbose] > │ let v8 : int32 = v3.Length │
00:00:09 #127 [Verbose] > │ let v9 : int32 = v7.Length │
00:00:09 #128 [Verbose] > │ let v10 : int32 = v8 + v9 │
00:00:09 #129 [Verbose] > │ let v11 : (string []) = Array.zeroCreate<string> (v10) │
00:00:09 #130 [Verbose] > │ let v12 : Mut0 = {l0 = 0} : Mut0 │
00:00:09 #131 [Verbose] > │ while method2(v10, v12) do │
00:00:09 #132 [Verbose] > │ let v14 : int32 = v12.l0 │
00:00:09 #133 [Verbose] > │ let v15 : bool = v14 < v8 │
00:00:09 #134 [Verbose] > │ let v19 : string = │
00:00:09 #135 [Verbose] > │ if v15 then │
00:00:09 #136 [Verbose] > │ let v16 : string = v3.[int v14] │
00:00:09 #137 [Verbose] > │ v16 │
00:00:09 #138 [Verbose] > │ else │
00:00:09 #139 [Verbose] > │ let v17 : int32 = v14 - v8 │
00:00:09 #140 [Verbose] > │ let v18 : string = v7.[int v17] │
00:00:09 #141 [Verbose] > │ v18 │
00:00:09 #142 [Verbose] > │ v11.[int v14] <- v19 │
00:00:09 #143 [Verbose] > │ let v20 : int32 = v14 + 1 │
00:00:09 #144 [Verbose] > │ v12.l0 <- v20 │
00:00:09 #145 [Verbose] > │ () │
00:00:09 #146 [Verbose] > │ let v21 : (string []) = [|v0; v1; v4; v5|] │
00:00:09 #147 [Verbose] > │ let v22 : (string []) = method1(v21) │
00:00:09 #148 [Verbose] > │ let v23 : string = $"%A{v11}" │
00:00:09 #149 [Verbose] > │ System.Console.WriteLine v23 │
00:00:09 #150 [Verbose] > │ let v24 : int32 = v11.Length │
00:00:09 #151 [Verbose] > │ let v25 : int32 = v22.Length │
00:00:09 #152 [Verbose] > │ let v26 : bool = v24 = v25 │
00:00:09 #153 [Verbose] > │ let v27 : bool = v26 <> true │
00:00:09 #154 [Verbose] > │ let v30 : bool = │
00:00:09 #155 [Verbose] > │ if v27 then │
00:00:09 #156 [Verbose] > │ false │
00:00:09 #157 [Verbose] > │ else │
00:00:09 #158 [Verbose] > │ let v28 : int32 = 0 │
00:00:09 #159 [Verbose] > │ method3(v11, v22, v28) │
00:00:09 #160 [Verbose] > │ let v32 : bool = │
00:00:09 #161 [Verbose] > │ if v30 then │
00:00:09 #162 [Verbose] > │ true │
00:00:09 #163 [Verbose] > │ else │
00:00:09 #164 [Verbose] > │ method4(v30) │
00:00:09 #165 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v11} / expected: %A{v22}" │
00:00:09 #166 [Verbose] > │ let v34 : bool = v32 = false │
00:00:09 #167 [Verbose] > │ if v34 then │
00:00:09 #168 [Verbose] > │ failwith<unit> v33 │
00:00:09 #169 [Verbose] > │ method0() │
00:00:09 #170 [Verbose] > │ │
00:00:10 #171 [Verbose] > │ [|"a"; "b"; "c"; "d"|] │
00:00:10 #172 [Verbose] > │ │
00:00:10 #173 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #174 [Verbose] >
00:00:10 #175 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #176 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #177 [Verbose] > │ ## collect │
00:00:10 #178 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #179 [Verbose] >
00:00:10 #180 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #181 [Verbose] > inl collect forall t r. (fn : t -> a i32 r) (items : a i32 t) : a i32 r =
00:00:10 #182 [Verbose] > items
00:00:10 #183 [Verbose] > |> am.map fn
00:00:10 #184 [Verbose] > |> am.fold (/@) (a ;[[]])
00:00:10 #185 [Verbose] >
00:00:10 #186 [Verbose] > ╭─[ 360.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #187 [Verbose] > │ () │
00:00:10 #188 [Verbose] > │ │
00:00:10 #189 [Verbose] > │ │
00:00:10 #190 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #191 [Verbose] >
00:00:10 #192 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #193 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #194 [Verbose] > │ ## choose │
00:00:10 #195 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #196 [Verbose] >
00:00:10 #197 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #198 [Verbose] > inl choose f l =
00:00:10 #199 [Verbose] > (l, [[]])
00:00:10 #200 [Verbose] > ||> am.foldBack fun x acc =>
00:00:10 #201 [Verbose] > match f x with
00:00:10 #202 [Verbose] > | Some y => y :: acc
00:00:10 #203 [Verbose] > | None => acc
00:00:10 #204 [Verbose] > |> listm.toArray
00:00:10 #205 [Verbose] >
00:00:10 #206 [Verbose] > ╭─[ 320.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #207 [Verbose] > │ () │
00:00:10 #208 [Verbose] > │ │
00:00:10 #209 [Verbose] > │ │
00:00:10 #210 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #211 [Verbose] >
00:00:10 #212 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #213 [Verbose] > // // test
00:00:10 #214 [Verbose] >
00:00:10 #215 [Verbose] > (am.init 10i32 id : a _ _)
00:00:10 #216 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:10 #217 [Verbose] > |> _assert_eq (a ;[[ 0; 2; 4; 6; 8 ]] : _ i32 _)
00:00:11 #218 [Verbose] >
00:00:11 #219 [Verbose] > ╭─[ 662.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #220 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:11 #221 [Verbose] > │ and UH0 = │
00:00:11 #222 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:11 #223 [Verbose] > │ | UH0_1 │
00:00:11 #224 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0} │
00:00:11 #225 [Verbose] > │ and [<Struct>] US0 = │
00:00:11 #226 [Verbose] > │ | US0_0 │
00:00:11 #227 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:11 #228 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:11 #229 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:11 #230 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:11 #231 [Verbose] > │ v2 │
00:00:11 #232 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:11 #233 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:11 #234 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:11 #235 [Verbose] > │ v3 │
00:00:11 #236 [Verbose] > │ and method4 (v0 : UH0, v1 : int32) : int32 = │
00:00:11 #237 [Verbose] > │ match v0 with │
00:00:11 #238 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:11 #239 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:11 #240 [Verbose] > │ method4(v3, v4) │
00:00:11 #241 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:11 #242 [Verbose] > │ v1 │
00:00:11 #243 [Verbose] > │ and method5 (v0 : (int32 []), v1 : UH0, v2 : int32) : int32 = │
00:00:11 #244 [Verbose] > │ match v1 with │
00:00:11 #245 [Verbose] > │ | UH0_0(v3, v4) -> (* Cons *) │
00:00:11 #246 [Verbose] > │ v0.[int v2] <- v3 │
00:00:11 #247 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:11 #248 [Verbose] > │ method5(v0, v4, v5) │
00:00:11 #249 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:11 #250 [Verbose] > │ v2 │
00:00:11 #251 [Verbose] > │ and method3 (v0 : UH0) : (int32 []) = │
00:00:11 #252 [Verbose] > │ let v1 : int32 = 0 │
00:00:11 #253 [Verbose] > │ let v2 : int32 = method4(v0, v1) │
00:00:11 #254 [Verbose] > │ let v3 : (int32 []) = Array.zeroCreate<int32> (v2) │
00:00:11 #255 [Verbose] > │ let v4 : int32 = 0 │
00:00:11 #256 [Verbose] > │ let v5 : int32 = method5(v3, v0, v4) │
00:00:11 #257 [Verbose] > │ v3 │
00:00:11 #258 [Verbose] > │ and method6 (v0 : (int32 [])) : (int32 []) = │
00:00:11 #259 [Verbose] > │ v0 │
00:00:11 #260 [Verbose] > │ and method7 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool = │
00:00:11 #261 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:11 #262 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:11 #263 [Verbose] > │ if v4 then │
00:00:11 #264 [Verbose] > │ let v5 : int32 = v0.[int v2] │
00:00:11 #265 [Verbose] > │ let v6 : int32 = v1.[int v2] │
00:00:11 #266 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:11 #267 [Verbose] > │ if v7 then │
00:00:11 #268 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:11 #269 [Verbose] > │ method7(v0, v1, v8) │
00:00:11 #270 [Verbose] > │ else │
00:00:11 #271 [Verbose] > │ false │
00:00:11 #272 [Verbose] > │ else │
00:00:11 #273 [Verbose] > │ true │
00:00:11 #274 [Verbose] > │ and method8 (v0 : bool) : bool = │
00:00:11 #275 [Verbose] > │ v0 │
00:00:11 #276 [Verbose] > │ and method0 () : unit = │
00:00:11 #277 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:11 #278 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:11 #279 [Verbose] > │ while method1(v1) do │
00:00:11 #280 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:11 #281 [Verbose] > │ v0.[int v3] <- v3 │
00:00:11 #282 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:11 #283 [Verbose] > │ v1.l0 <- v4 │
00:00:11 #284 [Verbose] > │ () │
00:00:11 #285 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:11 #286 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:11 #287 [Verbose] > │ let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1 │
00:00:11 #288 [Verbose] > │ while method2(v5, v7) do │
00:00:11 #289 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:11 #290 [Verbose] > │ let v10 : int32 = -v9 │
00:00:11 #291 [Verbose] > │ let v11 : int32 = v10 + v5 │
00:00:11 #292 [Verbose] > │ let v12 : int32 = v11 - 1 │
00:00:11 #293 [Verbose] > │ let v13 : UH0 = v7.l1 │
00:00:11 #294 [Verbose] > │ let v14 : int32 = v0.[int v12] │
00:00:11 #295 [Verbose] > │ let v15 : int32 = v14 % 2 │
00:00:11 #296 [Verbose] > │ let v16 : bool = v15 = 0 │
00:00:11 #297 [Verbose] > │ let v19 : US0 = │
00:00:11 #298 [Verbose] > │ if v16 then │
00:00:11 #299 [Verbose] > │ US0_1(v14) │
00:00:11 #300 [Verbose] > │ else │
00:00:11 #301 [Verbose] > │ US0_0 │
00:00:11 #302 [Verbose] > │ let v23 : UH0 = │
00:00:11 #303 [Verbose] > │ match v19 with │
00:00:11 #304 [Verbose] > │ | US0_0 -> (* None *) │
00:00:11 #305 [Verbose] > │ v13 │
00:00:11 #306 [Verbose] > │ | US0_1(v20) -> (* Some *) │
00:00:11 #307 [Verbose] > │ UH0_0(v20, v13) │
00:00:11 #308 [Verbose] > │ let v24 : int32 = v9 + 1 │
00:00:11 #309 [Verbose] > │ v7.l0 <- v24 │
00:00:11 #310 [Verbose] > │ v7.l1 <- v23 │
00:00:11 #311 [Verbose] > │ () │
00:00:11 #312 [Verbose] > │ let v25 : UH0 = v7.l1 │
00:00:11 #313 [Verbose] > │ let v26 : (int32 []) = method3(v25) │
00:00:11 #314 [Verbose] > │ let v27 : (int32 []) = [|0; 2; 4; 6; 8|] │
00:00:11 #315 [Verbose] > │ let v28 : (int32 []) = method6(v27) │
00:00:11 #316 [Verbose] > │ let v29 : string = $"%A{v26}" │
00:00:11 #317 [Verbose] > │ System.Console.WriteLine v29 │
00:00:11 #318 [Verbose] > │ let v30 : int32 = v26.Length │
00:00:11 #319 [Verbose] > │ let v31 : int32 = v28.Length │
00:00:11 #320 [Verbose] > │ let v32 : bool = v30 = v31 │
00:00:11 #321 [Verbose] > │ let v33 : bool = v32 <> true │
00:00:11 #322 [Verbose] > │ let v36 : bool = │
00:00:11 #323 [Verbose] > │ if v33 then │
00:00:11 #324 [Verbose] > │ false │
00:00:11 #325 [Verbose] > │ else │
00:00:11 #326 [Verbose] > │ let v34 : int32 = 0 │
00:00:11 #327 [Verbose] > │ method7(v26, v28, v34) │
00:00:11 #328 [Verbose] > │ let v38 : bool = │
00:00:11 #329 [Verbose] > │ if v36 then │
00:00:11 #330 [Verbose] > │ true │
00:00:11 #331 [Verbose] > │ else │
00:00:11 #332 [Verbose] > │ method8(v36) │
00:00:11 #333 [Verbose] > │ let v39 : string = $"__expect / actual: %A{v26} / expected: %A{v28}" │
00:00:11 #334 [Verbose] > │ let v40 : bool = v38 = false │
00:00:11 #335 [Verbose] > │ if v40 then │
00:00:11 #336 [Verbose] > │ failwith<unit> v39 │
00:00:11 #337 [Verbose] > │ method0() │
00:00:11 #338 [Verbose] > │ │
00:00:11 #339 [Verbose] > │ [|0; 2; 4; 6; 8|] │
00:00:11 #340 [Verbose] > │ │
00:00:11 #341 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #342 [Verbose] >
00:00:11 #343 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #344 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #345 [Verbose] > │ ## sum │
00:00:11 #346 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #347 [Verbose] >
00:00:11 #348 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #349 [Verbose] > inl sum (a' : a _ _) =
00:00:11 #350 [Verbose] > a' |> am.fold (+) 0
00:00:11 #351 [Verbose] >
00:00:11 #352 [Verbose] > ╭─[ 215.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #353 [Verbose] > │ () │
00:00:11 #354 [Verbose] > │ │
00:00:11 #355 [Verbose] > │ │
00:00:11 #356 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #357 [Verbose] >
00:00:11 #358 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #359 [Verbose] > // // test
00:00:11 #360 [Verbose] >
00:00:11 #361 [Verbose] > am.init 10i32 id
00:00:11 #362 [Verbose] > |> sum
00:00:11 #363 [Verbose] > |> _assert_eq 45
00:00:11 #364 [Verbose] >
00:00:11 #365 [Verbose] > ╭─[ 335.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #366 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:11 #367 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32} │
00:00:11 #368 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:11 #369 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:11 #370 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:11 #371 [Verbose] > │ v2 │
00:00:11 #372 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:11 #373 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:11 #374 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:11 #375 [Verbose] > │ v3 │
00:00:11 #376 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:11 #377 [Verbose] > │ v0 │
00:00:11 #378 [Verbose] > │ and method0 () : unit = │
00:00:11 #379 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:11 #380 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:11 #381 [Verbose] > │ while method1(v1) do │
00:00:11 #382 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:11 #383 [Verbose] > │ v0.[int v3] <- v3 │
00:00:11 #384 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:11 #385 [Verbose] > │ v1.l0 <- v4 │
00:00:11 #386 [Verbose] > │ () │
00:00:11 #387 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:11 #388 [Verbose] > │ let v6 : Mut1 = {l0 = 0; l1 = 0} : Mut1 │
00:00:11 #389 [Verbose] > │ while method2(v5, v6) do │
00:00:11 #390 [Verbose] > │ let v8 : int32 = v6.l0 │
00:00:11 #391 [Verbose] > │ let v9 : int32 = v6.l1 │
00:00:11 #392 [Verbose] > │ let v10 : int32 = v0.[int v8] │
00:00:11 #393 [Verbose] > │ let v11 : int32 = v9 + v10 │
00:00:11 #394 [Verbose] > │ let v12 : int32 = v8 + 1 │
00:00:11 #395 [Verbose] > │ v6.l0 <- v12 │
00:00:11 #396 [Verbose] > │ v6.l1 <- v11 │
00:00:11 #397 [Verbose] > │ () │
00:00:11 #398 [Verbose] > │ let v13 : int32 = v6.l1 │
00:00:11 #399 [Verbose] > │ let v14 : string = $"%A{v13}" │
00:00:11 #400 [Verbose] > │ System.Console.WriteLine v14 │
00:00:11 #401 [Verbose] > │ let v15 : bool = v13 = 45 │
00:00:11 #402 [Verbose] > │ let v17 : bool = │
00:00:11 #403 [Verbose] > │ if v15 then │
00:00:11 #404 [Verbose] > │ true │
00:00:11 #405 [Verbose] > │ else │
00:00:11 #406 [Verbose] > │ method3(v15) │
00:00:11 #407 [Verbose] > │ let v18 : string = $"__expect / actual: %A{v13} / expected: %A{45}" │
00:00:11 #408 [Verbose] > │ let v19 : bool = v17 = false │
00:00:11 #409 [Verbose] > │ if v19 then │
00:00:11 #410 [Verbose] > │ failwith<unit> v18 │
00:00:11 #411 [Verbose] > │ method0() │
00:00:11 #412 [Verbose] > │ │
00:00:11 #413 [Verbose] > │ 45 │
00:00:11 #414 [Verbose] > │ │
00:00:11 #415 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #416 [Verbose] >
00:00:11 #417 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #418 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #419 [Verbose] > │ ## init_series │
00:00:11 #420 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #421 [Verbose] >
00:00:11 #422 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #423 [Verbose] > inl init_series start end inc =
00:00:11 #424 [Verbose] > inl total = conv ((end - start) / inc) + 1
00:00:11 #425 [Verbose] > am.init total (conv >> (*) inc >> (+) start) : a i32 _
00:00:12 #426 [Verbose] >
00:00:12 #427 [Verbose] > ╭─[ 286.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #428 [Verbose] > │ () │
00:00:12 #429 [Verbose] > │ │
00:00:12 #430 [Verbose] > │ │
00:00:12 #431 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #432 [Verbose] >
00:00:12 #433 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #434 [Verbose] > // // test
00:00:12 #435 [Verbose] >
00:00:12 #436 [Verbose] > init_series 0 1 0.5
00:00:12 #437 [Verbose] > |> _assert_eq (a ;[[0f64; 0.5; 1]])
00:00:12 #438 [Verbose] >
00:00:12 #439 [Verbose] > ╭─[ 273.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #440 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:12 #441 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:12 #442 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:12 #443 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:12 #444 [Verbose] > │ v2 │
00:00:12 #445 [Verbose] > │ and method2 (v0 : (float [])) : (float []) = │
00:00:12 #446 [Verbose] > │ v0 │
00:00:12 #447 [Verbose] > │ and method3 (v0 : (float []), v1 : (float []), v2 : int32) : bool = │
00:00:12 #448 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:12 #449 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:12 #450 [Verbose] > │ if v4 then │
00:00:12 #451 [Verbose] > │ let v5 : float = v0.[int v2] │
00:00:12 #452 [Verbose] > │ let v6 : float = v1.[int v2] │
00:00:12 #453 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:12 #454 [Verbose] > │ if v7 then │
00:00:12 #455 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:12 #456 [Verbose] > │ method3(v0, v1, v8) │
00:00:12 #457 [Verbose] > │ else │
00:00:12 #458 [Verbose] > │ false │
00:00:12 #459 [Verbose] > │ else │
00:00:12 #460 [Verbose] > │ true │
00:00:12 #461 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:12 #462 [Verbose] > │ v0 │
00:00:12 #463 [Verbose] > │ and method0 () : unit = │
00:00:12 #464 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (3) │
00:00:12 #465 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #466 [Verbose] > │ while method1(v1) do │
00:00:12 #467 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:12 #468 [Verbose] > │ let v4 : float = float v3 │
00:00:12 #469 [Verbose] > │ let v5 : float = 0.5 * v4 │
00:00:12 #470 [Verbose] > │ v0.[int v3] <- v5 │
00:00:12 #471 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:12 #472 [Verbose] > │ v1.l0 <- v6 │
00:00:12 #473 [Verbose] > │ () │
00:00:12 #474 [Verbose] > │ let v7 : (float []) = [|0.0; 0.5; 1.0|] │
00:00:12 #475 [Verbose] > │ let v8 : (float []) = method2(v7) │
00:00:12 #476 [Verbose] > │ let v9 : string = $"%A{v0}" │
00:00:12 #477 [Verbose] > │ System.Console.WriteLine v9 │
00:00:12 #478 [Verbose] > │ let v10 : int32 = v0.Length │
00:00:12 #479 [Verbose] > │ let v11 : int32 = v8.Length │
00:00:12 #480 [Verbose] > │ let v12 : bool = v10 = v11 │
00:00:12 #481 [Verbose] > │ let v13 : bool = v12 <> true │
00:00:12 #482 [Verbose] > │ let v16 : bool = │
00:00:12 #483 [Verbose] > │ if v13 then │
00:00:12 #484 [Verbose] > │ false │
00:00:12 #485 [Verbose] > │ else │
00:00:12 #486 [Verbose] > │ let v14 : int32 = 0 │
00:00:12 #487 [Verbose] > │ method3(v0, v8, v14) │
00:00:12 #488 [Verbose] > │ let v18 : bool = │
00:00:12 #489 [Verbose] > │ if v16 then │
00:00:12 #490 [Verbose] > │ true │
00:00:12 #491 [Verbose] > │ else │
00:00:12 #492 [Verbose] > │ method4(v16) │
00:00:12 #493 [Verbose] > │ let v19 : string = $"__expect / actual: %A{v0} / expected: %A{v8}" │
00:00:12 #494 [Verbose] > │ let v20 : bool = v18 = false │
00:00:12 #495 [Verbose] > │ if v20 then │
00:00:12 #496 [Verbose] > │ failwith<unit> v19 │
00:00:12 #497 [Verbose] > │ method0() │
00:00:12 #498 [Verbose] > │ │
00:00:12 #499 [Verbose] > │ [|0.0; 0.5; 1.0|] │
00:00:12 #500 [Verbose] > │ │
00:00:12 #501 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #502 [Verbose] >
00:00:12 #503 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #504 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #505 [Verbose] > │ ## head │
00:00:12 #506 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #507 [Verbose] >
00:00:12 #508 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #509 [Verbose] > inl head (ar : a _ _) =
00:00:12 #510 [Verbose] > if var_is ar || length ar > 0
00:00:12 #511 [Verbose] > then index ar 0
00:00:12 #512 [Verbose] > else error_type "The length of the array should be greater than 0."
00:00:12 #513 [Verbose] >
00:00:12 #514 [Verbose] > ╭─[ 264.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #515 [Verbose] > │ () │
00:00:12 #516 [Verbose] > │ │
00:00:12 #517 [Verbose] > │ │
00:00:12 #518 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #519 [Verbose] >
00:00:12 #520 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #521 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #522 [Verbose] > │ ## last │
00:00:12 #523 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #524 [Verbose] >
00:00:12 #525 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #526 [Verbose] > inl last (ar : a _ _) =
00:00:12 #527 [Verbose] > inl len = length ar
00:00:12 #528 [Verbose] > if var_is ar || len > 0
00:00:12 #529 [Verbose] > then index ar (len - 1)
00:00:12 #530 [Verbose] > else error_type "The length of the array should be greater than 0."
00:00:13 #531 [Verbose] >
00:00:13 #532 [Verbose] > ╭─[ 332.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #533 [Verbose] > │ () │
00:00:13 #534 [Verbose] > │ │
00:00:13 #535 [Verbose] > │ │
00:00:13 #536 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #537 [Verbose] >
00:00:13 #538 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #539 [Verbose] > // // test
00:00:13 #540 [Verbose] >
00:00:13 #541 [Verbose] > am.init 10i32 id
00:00:13 #542 [Verbose] > |> last
00:00:13 #543 [Verbose] > |> _assert_eq 9
00:00:13 #544 [Verbose] >
00:00:13 #545 [Verbose] > ╭─[ 278.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #546 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:13 #547 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:13 #548 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:13 #549 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:13 #550 [Verbose] > │ v2 │
00:00:13 #551 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:13 #552 [Verbose] > │ v0 │
00:00:13 #553 [Verbose] > │ and method0 () : unit = │
00:00:13 #554 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:13 #555 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:13 #556 [Verbose] > │ while method1(v1) do │
00:00:13 #557 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:13 #558 [Verbose] > │ v0.[int v3] <- v3 │
00:00:13 #559 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:13 #560 [Verbose] > │ v1.l0 <- v4 │
00:00:13 #561 [Verbose] > │ () │
00:00:13 #562 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:13 #563 [Verbose] > │ let v6 : int32 = v5 - 1 │
00:00:13 #564 [Verbose] > │ let v7 : int32 = v0.[int v6] │
00:00:13 #565 [Verbose] > │ let v8 : string = $"%A{v7}" │
00:00:13 #566 [Verbose] > │ System.Console.WriteLine v8 │
00:00:13 #567 [Verbose] > │ let v9 : bool = v7 = 9 │
00:00:13 #568 [Verbose] > │ let v11 : bool = │
00:00:13 #569 [Verbose] > │ if v9 then │
00:00:13 #570 [Verbose] > │ true │
00:00:13 #571 [Verbose] > │ else │
00:00:13 #572 [Verbose] > │ method2(v9) │
00:00:13 #573 [Verbose] > │ let v12 : string = $"__expect / actual: %A{v7} / expected: %A{9}" │
00:00:13 #574 [Verbose] > │ let v13 : bool = v11 = false │
00:00:13 #575 [Verbose] > │ if v13 then │
00:00:13 #576 [Verbose] > │ failwith<unit> v12 │
00:00:13 #577 [Verbose] > │ method0() │
00:00:13 #578 [Verbose] > │ │
00:00:13 #579 [Verbose] > │ 9 │
00:00:13 #580 [Verbose] > │ │
00:00:13 #581 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #582 [Verbose] >
00:00:13 #583 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #584 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #585 [Verbose] > │ ## try_pick │
00:00:13 #586 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #587 [Verbose] >
00:00:13 #588 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #589 [Verbose] > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:00:13 #590 [Verbose] > (array, None)
00:00:13 #591 [Verbose] > ||> am.foldBack fun x acc =>
00:00:13 #592 [Verbose] > match acc with
00:00:13 #593 [Verbose] > | Some _ => acc
00:00:13 #594 [Verbose] > | None => x |> fn
00:00:13 #595 [Verbose] >
00:00:13 #596 [Verbose] > ╭─[ 235.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #597 [Verbose] > │ () │
00:00:13 #598 [Verbose] > │ │
00:00:13 #599 [Verbose] > │ │
00:00:13 #600 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #601 [Verbose] >
00:00:13 #602 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #603 [Verbose] > // // test
00:00:13 #604 [Verbose] >
00:00:13 #605 [Verbose] > am.init 10i32 id
00:00:13 #606 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:00:13 #607 [Verbose] > |> _assert_eq (Some 5i32)
00:00:14 #608 [Verbose] >
00:00:14 #609 [Verbose] > ╭─[ 411.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #610 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:14 #611 [Verbose] > │ and [<Struct>] US0 = │
00:00:14 #612 [Verbose] > │ | US0_0 │
00:00:14 #613 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:14 #614 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : US0} │
00:00:14 #615 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:14 #616 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:14 #617 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:14 #618 [Verbose] > │ v2 │
00:00:14 #619 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:14 #620 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #621 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #622 [Verbose] > │ v3 │
00:00:14 #623 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:14 #624 [Verbose] > │ v0 │
00:00:14 #625 [Verbose] > │ and method0 () : unit = │
00:00:14 #626 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:14 #627 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #628 [Verbose] > │ while method1(v1) do │
00:00:14 #629 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:14 #630 [Verbose] > │ v0.[int v3] <- v3 │
00:00:14 #631 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:14 #632 [Verbose] > │ v1.l0 <- v4 │
00:00:14 #633 [Verbose] > │ () │
00:00:14 #634 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:14 #635 [Verbose] > │ let v6 : US0 = US0_0 │
00:00:14 #636 [Verbose] > │ let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1 │
00:00:14 #637 [Verbose] > │ while method2(v5, v7) do │
00:00:14 #638 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:14 #639 [Verbose] > │ let v10 : int32 = -v9 │
00:00:14 #640 [Verbose] > │ let v11 : int32 = v10 + v5 │
00:00:14 #641 [Verbose] > │ let v12 : int32 = v11 - 1 │
00:00:14 #642 [Verbose] > │ let v13 : US0 = v7.l1 │
00:00:14 #643 [Verbose] > │ let v14 : int32 = v0.[int v12] │
00:00:14 #644 [Verbose] > │ let v21 : US0 = │
00:00:14 #645 [Verbose] > │ match v13 with │
00:00:14 #646 [Verbose] > │ | US0_0 -> (* None *) │
00:00:14 #647 [Verbose] > │ let v16 : bool = v14 = 5 │
00:00:14 #648 [Verbose] > │ if v16 then │
00:00:14 #649 [Verbose] > │ US0_1(v14) │
00:00:14 #650 [Verbose] > │ else │
00:00:14 #651 [Verbose] > │ US0_0 │
00:00:14 #652 [Verbose] > │ | US0_1(v15) -> (* Some *) │
00:00:14 #653 [Verbose] > │ v13 │
00:00:14 #654 [Verbose] > │ let v22 : int32 = v9 + 1 │
00:00:14 #655 [Verbose] > │ v7.l0 <- v22 │
00:00:14 #656 [Verbose] > │ v7.l1 <- v21 │
00:00:14 #657 [Verbose] > │ () │
00:00:14 #658 [Verbose] > │ let v23 : US0 = v7.l1 │
00:00:14 #659 [Verbose] > │ let v24 : string = $"%A{v23}" │
00:00:14 #660 [Verbose] > │ System.Console.WriteLine v24 │
00:00:14 #661 [Verbose] > │ let v28 : bool = │
00:00:14 #662 [Verbose] > │ match v23 with │
00:00:14 #663 [Verbose] > │ | US0_1(v26) -> (* Some *) │
00:00:14 #664 [Verbose] > │ let v27 : bool = v26 = 5 │
00:00:14 #665 [Verbose] > │ v27 │
00:00:14 #666 [Verbose] > │ | _ -> │
00:00:14 #667 [Verbose] > │ false │
00:00:14 #668 [Verbose] > │ let v30 : bool = │
00:00:14 #669 [Verbose] > │ if v28 then │
00:00:14 #670 [Verbose] > │ true │
00:00:14 #671 [Verbose] > │ else │
00:00:14 #672 [Verbose] > │ method3(v28) │
00:00:14 #673 [Verbose] > │ let v31 : US0 = US0_1(5) │
00:00:14 #674 [Verbose] > │ let v32 : string = $"__expect / actual: %A{v23} / expected: %A{v31}" │
00:00:14 #675 [Verbose] > │ let v33 : bool = v30 = false │
00:00:14 #676 [Verbose] > │ if v33 then │
00:00:14 #677 [Verbose] > │ failwith<unit> v32 │
00:00:14 #678 [Verbose] > │ method0() │
00:00:14 #679 [Verbose] > │ │
00:00:14 #680 [Verbose] > │ US0_1 5 │
00:00:14 #681 [Verbose] > │ │
00:00:14 #682 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #683 [Verbose] >
00:00:14 #684 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #685 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #686 [Verbose] > │ ## indexed' │
00:00:14 #687 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #688 [Verbose] >
00:00:14 #689 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #690 [Verbose] > inl indexed' forall t dim {int; number} dim' {int; number} u {number}. (ar : a
00:00:14 #691 [Verbose] > dim t) : a dim' (u * t) =
00:00:14 #692 [Verbose] > ((0, a ;[[]]), ar)
00:00:14 #693 [Verbose] > ||> am.fold fun (i, acc) x =>
00:00:14 #694 [Verbose] > i + 1, acc /@ a ;[[i, x]]
00:00:14 #695 [Verbose] > |> snd
00:00:14 #696 [Verbose] >
00:00:14 #697 [Verbose] > ╭─[ 228.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #698 [Verbose] > │ () │
00:00:14 #699 [Verbose] > │ │
00:00:14 #700 [Verbose] > │ │
00:00:14 #701 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #702 [Verbose] >
00:00:14 #703 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #704 [Verbose] > // // test
00:00:14 #705 [Verbose] >
00:00:14 #706 [Verbose] > am.init 3i32 ((*) 2)
00:00:14 #707 [Verbose] > |> indexed'
00:00:14 #708 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)
00:00:14 #709 [Verbose] >
00:00:14 #710 [Verbose] > ╭─[ 397.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #711 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:14 #712 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32; mutable l2 : (struct │
00:00:14 #713 [Verbose] > │ (int32 * int32) [])} │
00:00:14 #714 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:14 #715 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:14 #716 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:14 #717 [Verbose] > │ v2 │
00:00:14 #718 [Verbose] > │ and method2 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │
00:00:14 #719 [Verbose] > │ = │
00:00:14 #720 [Verbose] > │ v0 │
00:00:14 #721 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool = │
00:00:14 #722 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #723 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #724 [Verbose] > │ v3 │
00:00:14 #725 [Verbose] > │ and method4 (v0 : int32, v1 : Mut0) : bool = │
00:00:14 #726 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #727 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #728 [Verbose] > │ v3 │
00:00:14 #729 [Verbose] > │ and method5 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32) │
00:00:14 #730 [Verbose] > │ []), v2 : int32) : bool = │
00:00:14 #731 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:14 #732 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:14 #733 [Verbose] > │ if v4 then │
00:00:14 #734 [Verbose] > │ let struct (v5 : int32, v6 : int32) = v0.[int v2] │
00:00:14 #735 [Verbose] > │ let struct (v7 : int32, v8 : int32) = v1.[int v2] │
00:00:14 #736 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:14 #737 [Verbose] > │ let v11 : bool = │
00:00:14 #738 [Verbose] > │ if v9 then │
00:00:14 #739 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:14 #740 [Verbose] > │ v10 │
00:00:14 #741 [Verbose] > │ else │
00:00:14 #742 [Verbose] > │ false │
00:00:14 #743 [Verbose] > │ if v11 then │
00:00:14 #744 [Verbose] > │ let v12 : int32 = v2 + 1 │
00:00:14 #745 [Verbose] > │ method5(v0, v1, v12) │
00:00:14 #746 [Verbose] > │ else │
00:00:14 #747 [Verbose] > │ false │
00:00:14 #748 [Verbose] > │ else │
00:00:14 #749 [Verbose] > │ true │
00:00:14 #750 [Verbose] > │ and method6 (v0 : bool) : bool = │
00:00:14 #751 [Verbose] > │ v0 │
00:00:14 #752 [Verbose] > │ and method0 () : unit = │
00:00:14 #753 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (3) │
00:00:14 #754 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #755 [Verbose] > │ while method1(v1) do │
00:00:14 #756 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:14 #757 [Verbose] > │ let v4 : int32 = 2 * v3 │
00:00:14 #758 [Verbose] > │ v0.[int v3] <- v4 │
00:00:14 #759 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:14 #760 [Verbose] > │ v1.l0 <- v5 │
00:00:14 #761 [Verbose] > │ () │
00:00:14 #762 [Verbose] > │ let v6 : (struct (int32 * int32) []) = [||] │
00:00:14 #763 [Verbose] > │ let v7 : (struct (int32 * int32) []) = method2(v6) │
00:00:14 #764 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:14 #765 [Verbose] > │ let v9 : Mut1 = {l0 = 0; l1 = 0; l2 = v7} : Mut1 │
00:00:14 #766 [Verbose] > │ while method3(v8, v9) do │
00:00:14 #767 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:14 #768 [Verbose] > │ let struct (v12 : int32, v13 : (struct (int32 * int32) [])) = v9.l1, │
00:00:14 #769 [Verbose] > │ v9.l2 │
00:00:14 #770 [Verbose] > │ let v14 : int32 = v0.[int v11] │
00:00:14 #771 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:14 #772 [Verbose] > │ let v16 : (struct (int32 * int32) []) = [|struct (v12, v14)|] │
00:00:14 #773 [Verbose] > │ let v17 : (struct (int32 * int32) []) = method2(v16) │
00:00:14 #774 [Verbose] > │ let v18 : int32 = v13.Length │
00:00:14 #775 [Verbose] > │ let v19 : int32 = v17.Length │
00:00:14 #776 [Verbose] > │ let v20 : int32 = v18 + v19 │
00:00:14 #777 [Verbose] > │ let v21 : (struct (int32 * int32) []) = Array.zeroCreate<struct │
00:00:14 #778 [Verbose] > │ (int32 * int32)> (v20) │
00:00:14 #779 [Verbose] > │ let v22 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #780 [Verbose] > │ while method4(v20, v22) do │
00:00:14 #781 [Verbose] > │ let v24 : int32 = v22.l0 │
00:00:14 #782 [Verbose] > │ let v25 : bool = v24 < v18 │
00:00:14 #783 [Verbose] > │ let struct (v31 : int32, v32 : int32) = │
00:00:14 #784 [Verbose] > │ if v25 then │
00:00:14 #785 [Verbose] > │ let struct (v26 : int32, v27 : int32) = v13.[int v24] │
00:00:14 #786 [Verbose] > │ struct (v26, v27) │
00:00:14 #787 [Verbose] > │ else │
00:00:14 #788 [Verbose] > │ let v28 : int32 = v24 - v18 │
00:00:14 #789 [Verbose] > │ let struct (v29 : int32, v30 : int32) = v17.[int v28] │
00:00:14 #790 [Verbose] > │ struct (v29, v30) │
00:00:14 #791 [Verbose] > │ v21.[int v24] <- struct (v31, v32) │
00:00:14 #792 [Verbose] > │ let v33 : int32 = v24 + 1 │
00:00:14 #793 [Verbose] > │ v22.l0 <- v33 │
00:00:14 #794 [Verbose] > │ () │
00:00:14 #795 [Verbose] > │ let v34 : int32 = v11 + 1 │
00:00:14 #796 [Verbose] > │ v9.l0 <- v34 │
00:00:14 #797 [Verbose] > │ v9.l1 <- v15 │
00:00:14 #798 [Verbose] > │ v9.l2 <- v21 │
00:00:14 #799 [Verbose] > │ () │
00:00:14 #800 [Verbose] > │ let struct (v35 : int32, v36 : (struct (int32 * int32) [])) = v9.l1, │
00:00:14 #801 [Verbose] > │ v9.l2 │
00:00:14 #802 [Verbose] > │ let v37 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2); │
00:00:14 #803 [Verbose] > │ struct (2, 4)|] │
00:00:14 #804 [Verbose] > │ let v38 : (struct (int32 * int32) []) = method2(v37) │
00:00:14 #805 [Verbose] > │ let v39 : string = $"%A{v36}" │
00:00:14 #806 [Verbose] > │ System.Console.WriteLine v39 │
00:00:14 #807 [Verbose] > │ let v40 : int32 = v36.Length │
00:00:14 #808 [Verbose] > │ let v41 : int32 = v38.Length │
00:00:14 #809 [Verbose] > │ let v42 : bool = v40 = v41 │
00:00:14 #810 [Verbose] > │ let v43 : bool = v42 <> true │
00:00:14 #811 [Verbose] > │ let v46 : bool = │
00:00:14 #812 [Verbose] > │ if v43 then │
00:00:14 #813 [Verbose] > │ false │
00:00:14 #814 [Verbose] > │ else │
00:00:14 #815 [Verbose] > │ let v44 : int32 = 0 │
00:00:14 #816 [Verbose] > │ method5(v36, v38, v44) │
00:00:14 #817 [Verbose] > │ let v48 : bool = │
00:00:14 #818 [Verbose] > │ if v46 then │
00:00:14 #819 [Verbose] > │ true │
00:00:14 #820 [Verbose] > │ else │
00:00:14 #821 [Verbose] > │ method6(v46) │
00:00:14 #822 [Verbose] > │ let v49 : string = $"__expect / actual: %A{v36} / expected: %A{v38}" │
00:00:14 #823 [Verbose] > │ let v50 : bool = v48 = false │
00:00:14 #824 [Verbose] > │ if v50 then │
00:00:14 #825 [Verbose] > │ failwith<unit> v49 │
00:00:14 #826 [Verbose] > │ method0() │
00:00:14 #827 [Verbose] > │ │
00:00:14 #828 [Verbose] > │ [|struct (0, 0); struct (1, 2); struct (2, 4)|] │
00:00:14 #829 [Verbose] > │ │
00:00:14 #830 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #831 [Verbose] >
00:00:14 #832 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #833 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #834 [Verbose] > │ ## map_base │
00:00:14 #835 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #836 [Verbose] >
00:00:14 #837 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #838 [Verbose] > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:00:14 #839 [Verbose] > a x
00:00:14 #840 [Verbose] > |> am.map fn
00:00:14 #841 [Verbose] > |> fun (a x : _ i64 _) => x
00:00:15 #842 [Verbose] >
00:00:15 #843 [Verbose] > ╭─[ 365.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #844 [Verbose] > │ () │
00:00:15 #845 [Verbose] > │ │
00:00:15 #846 [Verbose] > │ │
00:00:15 #847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #848 [Verbose] >
00:00:15 #849 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #850 [Verbose] > inl average forall el {number}. (array : a _ el) : el =
00:00:15 #851 [Verbose] > $"!array |> Array.average"
00:00:15 #852 [Verbose] >
00:00:15 #853 [Verbose] > inl length forall dim el {number}. (array : a dim el) : dim =
00:00:15 #854 [Verbose] > $"!array |> Array.length"
00:00:15 #855 [Verbose] >
00:00:15 #856 [Verbose] > inl parallel_map forall dim el el'. (fn : el -> el') (array : a dim el) : a dim
00:00:15 #857 [Verbose] > el' =
00:00:15 #858 [Verbose] > $"!array |> Array.Parallel.map !fn"
00:00:15 #859 [Verbose] >
00:00:15 #860 [Verbose] > inl sort_by forall dim el. (fn : el -> _) (array : a dim el) : a dim el =
00:00:15 #861 [Verbose] > $"!array |> Array.sortBy !fn"
00:00:15 #862 [Verbose] >
00:00:15 #863 [Verbose] > inl sort_descending forall dim el. (array : a dim el) : a dim el =
00:00:15 #864 [Verbose] > $"!array |> Array.sortDescending"
00:00:15 #865 [Verbose] >
00:00:15 #866 [Verbose] > inl transpose forall dim el. (array : a dim (a dim el)) : a dim (a dim el) =
00:00:15 #867 [Verbose] > $"!array |> Array.transpose"
00:00:15 #868 [Verbose] >
00:00:15 #869 [Verbose] > inl try_item forall dim el. (i : i32) (array : a dim el) : option el =
00:00:15 #870 [Verbose] > $"!array |> Array.tryItem !i" |> optionm'.unbox
00:00:15 #871 [Verbose] >
00:00:15 #872 [Verbose] > ╭─[ 244.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #873 [Verbose] > │ () │
00:00:15 #874 [Verbose] > │ │
00:00:15 #875 [Verbose] > │ │
00:00:15 #876 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #877 [Verbose] >
00:00:15 #878 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #879 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #880 [Verbose] > │ ## indexed │
00:00:15 #881 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #882 [Verbose] >
00:00:15 #883 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #884 [Verbose] > inl indexed (array : a _ _) =
00:00:15 #885 [Verbose] > (([[]], 0), array)
00:00:15 #886 [Verbose] > ||> am.fold fun (acc, i) x =>
00:00:15 #887 [Verbose] > (i, x) :: acc, i + 1
00:00:15 #888 [Verbose] > |> fst
00:00:15 #889 [Verbose] > |> listm.rev
00:00:15 #890 [Verbose] > |> listm.toArray
00:00:15 #891 [Verbose] >
00:00:15 #892 [Verbose] > ╭─[ 231.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #893 [Verbose] > │ () │
00:00:15 #894 [Verbose] > │ │
00:00:15 #895 [Verbose] > │ │
00:00:15 #896 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #897 [Verbose] >
00:00:15 #898 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #899 [Verbose] > // // test
00:00:15 #900 [Verbose] >
00:00:15 #901 [Verbose] > am.init 3i32 ((*) 2)
00:00:15 #902 [Verbose] > |> indexed
00:00:15 #903 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)
00:00:16 #904 [Verbose] >
00:00:16 #905 [Verbose] > ╭─[ 497.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #906 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:16 #907 [Verbose] > │ and UH0 = │
00:00:16 #908 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:16 #909 [Verbose] > │ | UH0_1 │
00:00:16 #910 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0; mutable l2 : int32} │
00:00:16 #911 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:16 #912 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:16 #913 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:16 #914 [Verbose] > │ v2 │
00:00:16 #915 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:16 #916 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:16 #917 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:16 #918 [Verbose] > │ v3 │
00:00:16 #919 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:16 #920 [Verbose] > │ match v0 with │
00:00:16 #921 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:16 #922 [Verbose] > │ let v5 : UH0 = UH0_0(v2, v3, v1) │
00:00:16 #923 [Verbose] > │ method3(v4, v5) │
00:00:16 #924 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:16 #925 [Verbose] > │ v1 │
00:00:16 #926 [Verbose] > │ and method5 (v0 : UH0, v1 : int32) : int32 = │
00:00:16 #927 [Verbose] > │ match v0 with │
00:00:16 #928 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:16 #929 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:16 #930 [Verbose] > │ method5(v4, v5) │
00:00:16 #931 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:16 #932 [Verbose] > │ v1 │
00:00:16 #933 [Verbose] > │ and method6 (v0 : (struct (int32 * int32) []), v1 : UH0, v2 : int32) : int32 │
00:00:16 #934 [Verbose] > │ = │
00:00:16 #935 [Verbose] > │ match v1 with │
00:00:16 #936 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:16 #937 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:16 #938 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:16 #939 [Verbose] > │ method6(v0, v5, v6) │
00:00:16 #940 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:16 #941 [Verbose] > │ v2 │
00:00:16 #942 [Verbose] > │ and method4 (v0 : UH0) : (struct (int32 * int32) []) = │
00:00:16 #943 [Verbose] > │ let v1 : int32 = 0 │
00:00:16 #944 [Verbose] > │ let v2 : int32 = method5(v0, v1) │
00:00:16 #945 [Verbose] > │ let v3 : (struct (int32 * int32) []) = Array.zeroCreate<struct (int32 * │
00:00:16 #946 [Verbose] > │ int32)> (v2) │
00:00:16 #947 [Verbose] > │ let v4 : int32 = 0 │
00:00:16 #948 [Verbose] > │ let v5 : int32 = method6(v3, v0, v4) │
00:00:16 #949 [Verbose] > │ v3 │
00:00:16 #950 [Verbose] > │ and method7 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │
00:00:16 #951 [Verbose] > │ = │
00:00:16 #952 [Verbose] > │ v0 │
00:00:16 #953 [Verbose] > │ and method8 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32) │
00:00:16 #954 [Verbose] > │ []), v2 : int32) : bool = │
00:00:16 #955 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:16 #956 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:16 #957 [Verbose] > │ if v4 then │
00:00:16 #958 [Verbose] > │ let struct (v5 : int32, v6 : int32) = v0.[int v2] │
00:00:16 #959 [Verbose] > │ let struct (v7 : int32, v8 : int32) = v1.[int v2] │
00:00:16 #960 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:16 #961 [Verbose] > │ let v11 : bool = │
00:00:16 #962 [Verbose] > │ if v9 then │
00:00:16 #963 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:16 #964 [Verbose] > │ v10 │
00:00:16 #965 [Verbose] > │ else │
00:00:16 #966 [Verbose] > │ false │
00:00:16 #967 [Verbose] > │ if v11 then │
00:00:16 #968 [Verbose] > │ let v12 : int32 = v2 + 1 │
00:00:16 #969 [Verbose] > │ method8(v0, v1, v12) │
00:00:16 #970 [Verbose] > │ else │
00:00:16 #971 [Verbose] > │ false │
00:00:16 #972 [Verbose] > │ else │
00:00:16 #973 [Verbose] > │ true │
00:00:16 #974 [Verbose] > │ and method9 (v0 : bool) : bool = │
00:00:16 #975 [Verbose] > │ v0 │
00:00:16 #976 [Verbose] > │ and method0 () : unit = │
00:00:16 #977 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (3) │
00:00:16 #978 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:16 #979 [Verbose] > │ while method1(v1) do │
00:00:16 #980 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:16 #981 [Verbose] > │ let v4 : int32 = 2 * v3 │
00:00:16 #982 [Verbose] > │ v0.[int v3] <- v4 │
00:00:16 #983 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:16 #984 [Verbose] > │ v1.l0 <- v5 │
00:00:16 #985 [Verbose] > │ () │
00:00:16 #986 [Verbose] > │ let v6 : int32 = v0.Length │
00:00:16 #987 [Verbose] > │ let v7 : UH0 = UH0_1 │
00:00:16 #988 [Verbose] > │ let v8 : Mut1 = {l0 = 0; l1 = v7; l2 = 0} : Mut1 │
00:00:16 #989 [Verbose] > │ while method2(v6, v8) do │
00:00:16 #990 [Verbose] > │ let v10 : int32 = v8.l0 │
00:00:16 #991 [Verbose] > │ let struct (v11 : UH0, v12 : int32) = v8.l1, v8.l2 │
00:00:16 #992 [Verbose] > │ let v13 : int32 = v0.[int v10] │
00:00:16 #993 [Verbose] > │ let v14 : int32 = v12 + 1 │
00:00:16 #994 [Verbose] > │ let v15 : int32 = v10 + 1 │
00:00:16 #995 [Verbose] > │ let v16 : UH0 = UH0_0(v12, v13, v11) │
00:00:16 #996 [Verbose] > │ v8.l0 <- v15 │
00:00:16 #997 [Verbose] > │ v8.l1 <- v16 │
00:00:16 #998 [Verbose] > │ v8.l2 <- v14 │
00:00:16 #999 [Verbose] > │ () │
00:00:16 #1000 [Verbose] > │ let struct (v17 : UH0, v18 : int32) = v8.l1, v8.l2 │
00:00:16 #1001 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:16 #1002 [Verbose] > │ let v20 : UH0 = method3(v17, v19) │
00:00:16 #1003 [Verbose] > │ let v21 : (struct (int32 * int32) []) = method4(v20) │
00:00:16 #1004 [Verbose] > │ let v22 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2); │
00:00:16 #1005 [Verbose] > │ struct (2, 4)|] │
00:00:16 #1006 [Verbose] > │ let v23 : (struct (int32 * int32) []) = method7(v22) │
00:00:16 #1007 [Verbose] > │ let v24 : string = $"%A{v21}" │
00:00:16 #1008 [Verbose] > │ System.Console.WriteLine v24 │
00:00:16 #1009 [Verbose] > │ let v25 : int32 = v21.Length │
00:00:16 #1010 [Verbose] > │ let v26 : int32 = v23.Length │
00:00:16 #1011 [Verbose] > │ let v27 : bool = v25 = v26 │
00:00:16 #1012 [Verbose] > │ let v28 : bool = v27 <> true │
00:00:16 #1013 [Verbose] > │ let v31 : bool = │
00:00:16 #1014 [Verbose] > │ if v28 then │
00:00:16 #1015 [Verbose] > │ false │
00:00:16 #1016 [Verbose] > │ else │
00:00:16 #1017 [Verbose] > │ let v29 : int32 = 0 │
00:00:16 #1018 [Verbose] > │ method8(v21, v23, v29) │
00:00:16 #1019 [Verbose] > │ let v33 : bool = │
00:00:16 #1020 [Verbose] > │ if v31 then │
00:00:16 #1021 [Verbose] > │ true │
00:00:16 #1022 [Verbose] > │ else │
00:00:16 #1023 [Verbose] > │ method9(v31) │
00:00:16 #1024 [Verbose] > │ let v34 : string = $"__expect / actual: %A{v21} / expected: %A{v23}" │
00:00:16 #1025 [Verbose] > │ let v35 : bool = v33 = false │
00:00:16 #1026 [Verbose] > │ if v35 then │
00:00:16 #1027 [Verbose] > │ failwith<unit> v34 │
00:00:16 #1028 [Verbose] > │ method0() │
00:00:16 #1029 [Verbose] > │ │
00:00:16 #1030 [Verbose] > │ [|struct (0, 0); struct (1, 2); struct (2, 4)|] │
00:00:16 #1031 [Verbose] > │ │
00:00:16 #1032 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1033 [Verbose] >
00:00:16 #1034 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #1035 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #1036 [Verbose] > │ ## from_vec │
00:00:16 #1037 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1038 [Verbose] >
00:00:16 #1039 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #1040 [Verbose] > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:00:16 #1041 [Verbose] > inl vec = join vec
00:00:16 #1042 [Verbose] > !\($'"fable_library_rust::NativeArray_::array_from(!vec)"')
00:00:16 #1043 [Verbose] >
00:00:16 #1044 [Verbose] > ╭─[ 257.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #1045 [Verbose] > │ () │
00:00:16 #1046 [Verbose] > │ │
00:00:16 #1047 [Verbose] > │ │
00:00:16 #1048 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1049 [Verbose] >
00:00:16 #1050 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #1051 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #1052 [Verbose] > │ ## to_vec │
00:00:16 #1053 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1054 [Verbose] >
00:00:16 #1055 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #1056 [Verbose] > inl to_vec forall t. (ar : array_base t) : vec t =
00:00:16 #1057 [Verbose] > inl ar = join ar
00:00:16 #1058 [Verbose] > !\($'"!ar.to_vec()"')
00:00:16 #1059 [Verbose] >
00:00:16 #1060 [Verbose] > ╭─[ 223.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #1061 [Verbose] > │ () │
00:00:16 #1062 [Verbose] > │ │
00:00:16 #1063 [Verbose] > │ │
00:00:16 #1064 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1065 [Verbose] >
00:00:16 #1066 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #1067 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #1068 [Verbose] > │ ## vec_push │
00:00:16 #1069 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #1070 [Verbose] >
00:00:16 #1071 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #1072 [Verbose] > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:00:16 #1073 [Verbose] > inl el = join el
00:00:16 #1074 [Verbose] > inl vec = join vec
00:00:16 #1075 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:16 #1076 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:16 #1077 [Verbose] > !\($'"!vec.push(!el)"')
00:00:16 #1078 [Verbose] > !\($'"!vec"')
00:00:17 #1079 [Verbose] >
00:00:17 #1080 [Verbose] > ╭─[ 301.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1081 [Verbose] > │ () │
00:00:17 #1082 [Verbose] > │ │
00:00:17 #1083 [Verbose] > │ │
00:00:17 #1084 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1085 [Verbose] >
00:00:17 #1086 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1087 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1088 [Verbose] > │ ## vec_reverse │
00:00:17 #1089 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1090 [Verbose] >
00:00:17 #1091 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1092 [Verbose] > inl vec_reverse forall el. (vec : vec el) : vec el =
00:00:17 #1093 [Verbose] > inl vec = join vec
00:00:17 #1094 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:17 #1095 [Verbose] > !\($'"!vec.reverse()"')
00:00:17 #1096 [Verbose] > !\($'"!vec"')
00:00:17 #1097 [Verbose] >
00:00:17 #1098 [Verbose] > ╭─[ 231.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1099 [Verbose] > │ () │
00:00:17 #1100 [Verbose] > │ │
00:00:17 #1101 [Verbose] > │ │
00:00:17 #1102 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1103 [Verbose] >
00:00:17 #1104 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1105 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1106 [Verbose] > │ ## vec_retain │
00:00:17 #1107 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1108 [Verbose] >
00:00:17 #1109 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1110 [Verbose] > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:00:17 #1111 [Verbose] > inl vec = join vec
00:00:17 #1112 [Verbose] > inl fn = join fn
00:00:17 #1113 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:17 #1114 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:17 #1115 [Verbose] > !\($'"!vec.retain(|x| !fn(x.clone()))"')
00:00:17 #1116 [Verbose] > !\($'"!vec"')
00:00:17 #1117 [Verbose] >
00:00:17 #1118 [Verbose] > ╭─[ 216.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1119 [Verbose] > │ () │
00:00:17 #1120 [Verbose] > │ │
00:00:17 #1121 [Verbose] > │ │
00:00:17 #1122 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1123 [Verbose] >
00:00:17 #1124 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1125 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1126 [Verbose] > │ ## vec_sort_by_key │
00:00:17 #1127 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1128 [Verbose] >
00:00:17 #1129 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1130 [Verbose] > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:00:17 #1131 [Verbose] > inl vec = join vec
00:00:17 #1132 [Verbose] > inl fn = join fn
00:00:17 #1133 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:17 #1134 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:17 #1135 [Verbose] > !\($'"!vec.sort_by_key(|x| !fn(x.clone()))"')
00:00:17 #1136 [Verbose] > !\($'"!vec"')
00:00:17 #1137 [Verbose] >
00:00:17 #1138 [Verbose] > ╭─[ 256.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1139 [Verbose] > │ () │
00:00:17 #1140 [Verbose] > │ │
00:00:17 #1141 [Verbose] > │ │
00:00:17 #1142 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1143 [Verbose] >
00:00:17 #1144 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1145 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1146 [Verbose] > │ ## vec_extend │
00:00:17 #1147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1148 [Verbose] >
00:00:17 #1149 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1150 [Verbose] > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:00:17 #1151 [Verbose] > inl el = join el
00:00:17 #1152 [Verbose] > inl vec = join vec
00:00:17 #1153 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:17 #1154 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:17 #1155 [Verbose] > !\($'"!vec.extend(!el)"')
00:00:17 #1156 [Verbose] > !\($'"!vec"')
00:00:18 #1157 [Verbose] >
00:00:18 #1158 [Verbose] > ╭─[ 250.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1159 [Verbose] > │ () │
00:00:18 #1160 [Verbose] > │ │
00:00:18 #1161 [Verbose] > │ │
00:00:18 #1162 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1163 [Verbose] >
00:00:18 #1164 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1165 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1166 [Verbose] > │ ## vec_collect │
00:00:18 #1167 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1168 [Verbose] >
00:00:18 #1169 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1170 [Verbose] > inl vec_collect fn vec =
00:00:18 #1171 [Verbose] > ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:00:18 #1172 [Verbose] > ||> am.fold fun acc x =>
00:00:18 #1173 [Verbose] > acc |> vec_extend (fn x)
00:00:18 #1174 [Verbose] >
00:00:18 #1175 [Verbose] > ╭─[ 238.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1176 [Verbose] > │ () │
00:00:18 #1177 [Verbose] > │ │
00:00:18 #1178 [Verbose] > │ │
00:00:18 #1179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1180 [Verbose] >
00:00:18 #1181 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1182 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1183 [Verbose] > │ ## vec_collect_option │
00:00:18 #1184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1185 [Verbose] >
00:00:18 #1186 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1187 [Verbose] > inl vec_collect_option vec =
00:00:18 #1188 [Verbose] > ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:00:18 #1189 [Verbose] > ||> am.fold fun acc x =>
00:00:18 #1190 [Verbose] > x
00:00:18 #1191 [Verbose] > |> resultm.unbox
00:00:18 #1192 [Verbose] > |> fun x =>
00:00:18 #1193 [Verbose] > match acc, x |> resultm.map optionm'.unbox with
00:00:18 #1194 [Verbose] > | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:00:18 #1195 [Verbose] > | _, Error error => error |> Error
00:00:18 #1196 [Verbose] > | _ => acc
00:00:18 #1197 [Verbose] >
00:00:18 #1198 [Verbose] > ╭─[ 234.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1199 [Verbose] > │ () │
00:00:18 #1200 [Verbose] > │ │
00:00:18 #1201 [Verbose] > │ │
00:00:18 #1202 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1203 [Verbose] >
00:00:18 #1204 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1205 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1206 [Verbose] > │ ## vec_collect_into │
00:00:18 #1207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1208 [Verbose] >
00:00:18 #1209 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1210 [Verbose] > inl vec_collect_into forall (c : * -> * -> *) t e.
00:00:18 #1211 [Verbose] > (x : vec (c t e))
00:00:18 #1212 [Verbose] > : c (vec t) e
00:00:18 #1213 [Verbose] > =
00:00:18 #1214 [Verbose] > !\($'"!x.into_iter().collect()"')
00:00:18 #1215 [Verbose] >
00:00:18 #1216 [Verbose] > ╭─[ 268.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1217 [Verbose] > │ () │
00:00:18 #1218 [Verbose] > │ │
00:00:18 #1219 [Verbose] > │ │
00:00:18 #1220 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1221 [Verbose] >
00:00:18 #1222 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1223 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1224 [Verbose] > │ ## vec_mapi │
00:00:18 #1225 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1226 [Verbose] >
00:00:18 #1227 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1228 [Verbose] > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:00:18 #1229 [Verbose] > inl fn = join fn
00:00:18 #1230 [Verbose] > inl ar = join ar
00:00:18 #1231 [Verbose] > !\($'"!ar.iter().enumerate().map(|(i, x)|
00:00:18 #1232 [Verbose] > !fn(i.try_into().unwrap())(x.clone())).collect()"')
00:00:19 #1233 [Verbose] >
00:00:19 #1234 [Verbose] > ╭─[ 261.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1235 [Verbose] > │ () │
00:00:19 #1236 [Verbose] > │ │
00:00:19 #1237 [Verbose] > │ │
00:00:19 #1238 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1239 [Verbose] >
00:00:19 #1240 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1241 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1242 [Verbose] > │ ## vec_map │
00:00:19 #1243 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1244 [Verbose] >
00:00:19 #1245 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1246 [Verbose] > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:00:19 #1247 [Verbose] > inl fn = join fn
00:00:19 #1248 [Verbose] > inl ar = join ar
00:00:19 #1249 [Verbose] > !\($'"!ar.iter().map(|x| !fn(x.clone())).collect()"')
00:00:19 #1250 [Verbose] >
00:00:19 #1251 [Verbose] > ╭─[ 222.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1252 [Verbose] > │ () │
00:00:19 #1253 [Verbose] > │ │
00:00:19 #1254 [Verbose] > │ │
00:00:19 #1255 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1256 [Verbose] >
00:00:19 #1257 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1258 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1259 [Verbose] > │ ## vec_filter │
00:00:19 #1260 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1261 [Verbose] >
00:00:19 #1262 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1263 [Verbose] > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =
00:00:19 #1264 [Verbose] > inl fn = join fn
00:00:19 #1265 [Verbose] > inl ar = join ar
00:00:19 #1266 [Verbose] > !\($'"!ar.into_iter().filter(|x| !fn(x.clone().clone())).collect()"')
00:00:19 #1267 [Verbose] >
00:00:19 #1268 [Verbose] > ╭─[ 214.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1269 [Verbose] > │ () │
00:00:19 #1270 [Verbose] > │ │
00:00:19 #1271 [Verbose] > │ │
00:00:19 #1272 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1273 [Verbose] >
00:00:19 #1274 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1275 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1276 [Verbose] > │ ## enumerate │
00:00:19 #1277 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1278 [Verbose] >
00:00:19 #1279 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1280 [Verbose] > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:00:19 #1281 [Verbose] > t) =
00:00:19 #1282 [Verbose] > inl (a ar) = ar
00:00:19 #1283 [Verbose] > inl ar = ar |> to_vec
00:00:19 #1284 [Verbose] > !\($'"!ar.into_iter().enumerate().map(std::rc::Rc::new).collect()"')
00:00:19 #1285 [Verbose] > |> vec_map from_pair
00:00:19 #1286 [Verbose] > |> from_vec
00:00:19 #1287 [Verbose] >
00:00:19 #1288 [Verbose] > ╭─[ 255.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1289 [Verbose] > │ () │
00:00:19 #1290 [Verbose] > │ │
00:00:19 #1291 [Verbose] > │ │
00:00:19 #1292 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1293 [Verbose] >
00:00:19 #1294 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1295 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1296 [Verbose] > │ ## slice' │
00:00:19 #1297 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1298 [Verbose] >
00:00:19 #1299 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1300 [Verbose] > inl slice' forall dim el. (x : option el) : slice' el dim =
00:00:19 #1301 [Verbose] > match x with
00:00:19 #1302 [Verbose] > | Some x => !\($'"[[!x]]"')
00:00:19 #1303 [Verbose] > | None =>
00:00:19 #1304 [Verbose] > !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:00:19 #1305 [Verbose] > // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:00:19 #1306 [Verbose] > slice' el 10
00:00:19 #1307 [Verbose] > // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:00:19 #1308 [Verbose] >
00:00:19 #1309 [Verbose] > ╭─[ 239.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1310 [Verbose] > │ () │
00:00:19 #1311 [Verbose] > │ │
00:00:19 #1312 [Verbose] > │ │
00:00:19 #1313 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1314 [Verbose] >
00:00:19 #1315 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1316 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1317 [Verbose] > │ ## as_slice │
00:00:19 #1318 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1319 [Verbose] >
00:00:19 #1320 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1321 [Verbose] > inl as_slice forall t. (x : array_base t) : rust.ref' (slice t) =
00:00:19 #1322 [Verbose] > inl x = x |> to_vec
00:00:19 #1323 [Verbose] > !\($'"!x.as_slice()"')
00:00:20 #1324 [Verbose] >
00:00:20 #1325 [Verbose] > ╭─[ 321.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1326 [Verbose] > │ () │
00:00:20 #1327 [Verbose] > │ │
00:00:20 #1328 [Verbose] > │ │
00:00:20 #1329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1330 [Verbose] > [NbConvertApp] Converting notebook am'.dib.ipynb to html
00:00:22 #1331 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:22 #1332 [Verbose] > validate(nb)
00:00:22 #1333 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:22 #1334 [Verbose] > return _pygments_highlight(
00:00:23 #1335 [Verbose] > [NbConvertApp] Writing 384950 bytes to am'.dib.html
00:00:24 #1336 [Debug] executeAsync / exitCode: 0 / output.Length: 88639
00:00:24 #1337 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"sm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # sm' │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:08 #13 [Verbose] >
00:00:08 #14 [Verbose] > ╭─[ 4.74s - stdout ]───────────────────────────────────────────────────────────╮
00:00:08 #15 [Verbose] > │ () │
00:00:08 #16 [Verbose] > │ │
00:00:08 #17 [Verbose] > │ │
00:00:08 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #19 [Verbose] >
00:00:08 #20 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #21 [Verbose] > open rust_operators
00:00:08 #22 [Verbose] >
00:00:08 #23 [Verbose] > ╭─[ 242.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #24 [Verbose] > │ () │
00:00:08 #25 [Verbose] > │ │
00:00:08 #26 [Verbose] > │ │
00:00:08 #27 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #28 [Verbose] >
00:00:08 #29 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #30 [Verbose] > inl types () =
00:00:08 #31 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class
00:00:08 #32 [Verbose] > end"
00:00:08 #33 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"base64::DecodeError\")>]]
00:00:08 #34 [Verbose] > type base64_DecodeError = class end"
00:00:08 #35 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"borsh::io::Error\")>]] type
00:00:08 #36 [Verbose] > borsh_io_Error = class end"
00:00:08 #37 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"js_sys::JsString\")>]] type
00:00:08 #38 [Verbose] > js_sys_JsString = class end"
00:00:08 #39 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Error\")>]] type
00:00:08 #40 [Verbose] > serde_json_Error = class end"
00:00:08 #41 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Value\")>]] type
00:00:08 #42 [Verbose] > serde_json_Value = class end"
00:00:08 #43 [Verbose] > global "[[<Fable.Core.Erase;
00:00:08 #44 [Verbose] > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]] type serde_wasm_bindgen_Error
00:00:08 #45 [Verbose] > = class end"
00:00:08 #46 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::str::Utf8Error\")>]]
00:00:08 #47 [Verbose] > type std_str_Utf8Error = class end"
00:00:08 #48 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]
00:00:08 #49 [Verbose] > type std_string_String = class end"
00:00:09 #50 [Verbose] >
00:00:09 #51 [Verbose] > ╭─[ 256.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #52 [Verbose] > │ () │
00:00:09 #53 [Verbose] > │ │
00:00:09 #54 [Verbose] > │ │
00:00:09 #55 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #56 [Verbose] >
00:00:09 #57 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #58 [Verbose] > // // test
00:00:09 #59 [Verbose] >
00:00:09 #60 [Verbose] > inl types () =
00:00:09 #61 [Verbose] > rust.types ()
00:00:09 #62 [Verbose] > types ()
00:00:09 #63 [Verbose] >
00:00:09 #64 [Verbose] > ╭─[ 305.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #65 [Verbose] > │ () │
00:00:09 #66 [Verbose] > │ │
00:00:09 #67 [Verbose] > │ │
00:00:09 #68 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #69 [Verbose] >
00:00:09 #70 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #71 [Verbose] > nominal base64_decode_error = $"base64_DecodeError"
00:00:09 #72 [Verbose] > nominal borsh_io_error = $"borsh_io_Error"
00:00:09 #73 [Verbose] > nominal utf8_error = $"std_str_Utf8Error"
00:00:09 #74 [Verbose] > nominal json_value = $"serde_json_Value"
00:00:09 #75 [Verbose] > nominal json_error = $"serde_json_Error"
00:00:09 #76 [Verbose] > nominal serde_wasm_bindgen_error = $"serde_wasm_bindgen_Error"
00:00:09 #77 [Verbose] > nominal std_string = $"std_string_String"
00:00:09 #78 [Verbose] > nominal js_string = $"js_sys_JsString"
00:00:09 #79 [Verbose] > nominal str = $"Str"
00:00:09 #80 [Verbose] >
00:00:09 #81 [Verbose] > ╭─[ 235.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #82 [Verbose] > │ () │
00:00:09 #83 [Verbose] > │ │
00:00:09 #84 [Verbose] > │ │
00:00:09 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #86 [Verbose] >
00:00:09 #87 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #88 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #89 [Verbose] > │ ## contains │
00:00:09 #90 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #91 [Verbose] >
00:00:09 #92 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #93 [Verbose] > inl contains (value : string) (s : string) : bool =
00:00:09 #94 [Verbose] > $"!s.Contains !value"
00:00:09 #95 [Verbose] >
00:00:09 #96 [Verbose] > ╭─[ 253.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #97 [Verbose] > │ () │
00:00:09 #98 [Verbose] > │ │
00:00:09 #99 [Verbose] > │ │
00:00:09 #100 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #101 [Verbose] >
00:00:09 #102 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #103 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #104 [Verbose] > │ ## ends_with │
00:00:09 #105 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #106 [Verbose] >
00:00:09 #107 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #108 [Verbose] > inl ends_with (value : string) (s : string) : bool =
00:00:09 #109 [Verbose] > $"!s.EndsWith !value"
00:00:10 #110 [Verbose] >
00:00:10 #111 [Verbose] > ╭─[ 235.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #112 [Verbose] > │ () │
00:00:10 #113 [Verbose] > │ │
00:00:10 #114 [Verbose] > │ │
00:00:10 #115 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #116 [Verbose] >
00:00:10 #117 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #118 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #119 [Verbose] > │ ## pad_left │
00:00:10 #120 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #121 [Verbose] >
00:00:10 #122 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #123 [Verbose] > inl pad_left total_width padding_char (s : string) : string =
00:00:10 #124 [Verbose] > $"!s.PadLeft (!total_width, !padding_char)"
00:00:10 #125 [Verbose] >
00:00:10 #126 [Verbose] > ╭─[ 298.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #127 [Verbose] > │ () │
00:00:10 #128 [Verbose] > │ │
00:00:10 #129 [Verbose] > │ │
00:00:10 #130 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #131 [Verbose] >
00:00:10 #132 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #133 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #134 [Verbose] > │ ## pad_right │
00:00:10 #135 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #136 [Verbose] >
00:00:10 #137 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #138 [Verbose] > inl pad_right (pad : i32) (s : string) : string =
00:00:10 #139 [Verbose] > $"!s.PadRight !pad"
00:00:10 #140 [Verbose] >
00:00:10 #141 [Verbose] > ╭─[ 296.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #142 [Verbose] > │ () │
00:00:10 #143 [Verbose] > │ │
00:00:10 #144 [Verbose] > │ │
00:00:10 #145 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #146 [Verbose] >
00:00:10 #147 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #148 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #149 [Verbose] > │ ## replace │
00:00:10 #150 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #151 [Verbose] >
00:00:10 #152 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #153 [Verbose] > inl replace (old_value : string) (new_value : string) (s : string) : string =
00:00:10 #154 [Verbose] > $"!s.Replace (!old_value, !new_value)"
00:00:11 #155 [Verbose] >
00:00:11 #156 [Verbose] > ╭─[ 359.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #157 [Verbose] > │ () │
00:00:11 #158 [Verbose] > │ │
00:00:11 #159 [Verbose] > │ │
00:00:11 #160 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #161 [Verbose] >
00:00:11 #162 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #163 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #164 [Verbose] > │ ## split │
00:00:11 #165 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #166 [Verbose] >
00:00:11 #167 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #168 [Verbose] > inl split (separator : string) (str : string) : array_base string =
00:00:11 #169 [Verbose] > $"!str.Split !separator"
00:00:11 #170 [Verbose] >
00:00:11 #171 [Verbose] > ╭─[ 312.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #172 [Verbose] > │ () │
00:00:11 #173 [Verbose] > │ │
00:00:11 #174 [Verbose] > │ │
00:00:11 #175 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #176 [Verbose] >
00:00:11 #177 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #178 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #179 [Verbose] > │ ## split_string │
00:00:11 #180 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #181 [Verbose] >
00:00:11 #182 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #183 [Verbose] > inl split_string (separator : array_base string) (str : string) : array_base
00:00:11 #184 [Verbose] > string =
00:00:11 #185 [Verbose] > $"!str.Split (!separator, StringSplitOptions.None)"
00:00:11 #186 [Verbose] >
00:00:11 #187 [Verbose] > ╭─[ 341.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #188 [Verbose] > │ () │
00:00:11 #189 [Verbose] > │ │
00:00:11 #190 [Verbose] > │ │
00:00:11 #191 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #192 [Verbose] >
00:00:11 #193 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #194 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #195 [Verbose] > │ ## starts_with │
00:00:11 #196 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #197 [Verbose] >
00:00:11 #198 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #199 [Verbose] > inl starts_with (value : std_string) (s : std_string) : bool =
00:00:11 #200 [Verbose] > inl s = join s
00:00:11 #201 [Verbose] > !\($'"!s.starts_with(&!value)"')
00:00:11 #202 [Verbose] >
00:00:11 #203 [Verbose] > ╭─[ 235.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #204 [Verbose] > │ () │
00:00:11 #205 [Verbose] > │ │
00:00:11 #206 [Verbose] > │ │
00:00:11 #207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #208 [Verbose] >
00:00:11 #209 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #210 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #211 [Verbose] > │ ## substring │
00:00:11 #212 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #213 [Verbose] >
00:00:11 #214 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #215 [Verbose] > inl substring forall t {int}. (start : t) (len : t) (str : string) : string =
00:00:11 #216 [Verbose] > $"!str.Substring (!start, !len)"
00:00:12 #217 [Verbose] >
00:00:12 #218 [Verbose] > ╭─[ 218.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #219 [Verbose] > │ () │
00:00:12 #220 [Verbose] > │ │
00:00:12 #221 [Verbose] > │ │
00:00:12 #222 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #223 [Verbose] >
00:00:12 #224 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #225 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #226 [Verbose] > │ ## to_lower │
00:00:12 #227 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #228 [Verbose] >
00:00:12 #229 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #230 [Verbose] > inl to_lower (input : string) : string =
00:00:12 #231 [Verbose] > $"!input.ToLower ()"
00:00:12 #232 [Verbose] >
00:00:12 #233 [Verbose] > ╭─[ 259.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #234 [Verbose] > │ () │
00:00:12 #235 [Verbose] > │ │
00:00:12 #236 [Verbose] > │ │
00:00:12 #237 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #238 [Verbose] >
00:00:12 #239 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #240 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #241 [Verbose] > │ ## to_upper │
00:00:12 #242 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #243 [Verbose] >
00:00:12 #244 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #245 [Verbose] > inl to_upper (input : string) : string =
00:00:12 #246 [Verbose] > $"!input.ToUpper ()"
00:00:12 #247 [Verbose] >
00:00:12 #248 [Verbose] > ╭─[ 287.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #249 [Verbose] > │ () │
00:00:12 #250 [Verbose] > │ │
00:00:12 #251 [Verbose] > │ │
00:00:12 #252 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #253 [Verbose] >
00:00:12 #254 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #255 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #256 [Verbose] > │ ## trim │
00:00:12 #257 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #258 [Verbose] >
00:00:12 #259 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #260 [Verbose] > inl trim (input : string) : string =
00:00:12 #261 [Verbose] > $"!input.Trim ()"
00:00:12 #262 [Verbose] >
00:00:12 #263 [Verbose] > ╭─[ 223.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #264 [Verbose] > │ () │
00:00:12 #265 [Verbose] > │ │
00:00:12 #266 [Verbose] > │ │
00:00:12 #267 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #268 [Verbose] >
00:00:12 #269 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #270 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #271 [Verbose] > │ ## trim_end │
00:00:12 #272 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #273 [Verbose] >
00:00:12 #274 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #275 [Verbose] > inl trim_end (trim_chars : array_base char) (input : string) : string =
00:00:13 #276 [Verbose] > $"!input.TrimEnd !trim_chars"
00:00:13 #277 [Verbose] >
00:00:13 #278 [Verbose] > ╭─[ 243.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #279 [Verbose] > │ () │
00:00:13 #280 [Verbose] > │ │
00:00:13 #281 [Verbose] > │ │
00:00:13 #282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #283 [Verbose] >
00:00:13 #284 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #285 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #286 [Verbose] > │ ## trim_start │
00:00:13 #287 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #288 [Verbose] >
00:00:13 #289 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #290 [Verbose] > inl trim_start (trim_chars : array_base char) (input : string) : string =
00:00:13 #291 [Verbose] > $"!input.TrimStart !trim_chars"
00:00:13 #292 [Verbose] >
00:00:13 #293 [Verbose] > ╭─[ 331.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #294 [Verbose] > │ () │
00:00:13 #295 [Verbose] > │ │
00:00:13 #296 [Verbose] > │ │
00:00:13 #297 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #298 [Verbose] >
00:00:13 #299 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #300 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #301 [Verbose] > │ ## ellipsis │
00:00:13 #302 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #303 [Verbose] >
00:00:13 #304 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #305 [Verbose] > inl ellipsis forall t {int; number}. (max : t) (s : string) =
00:00:13 #306 [Verbose] > if sm.length s <= max
00:00:13 #307 [Verbose] > then s
00:00:13 #308 [Verbose] > else s |> substring 0 max |> fun x => $'!x + "..."'
00:00:13 #309 [Verbose] >
00:00:13 #310 [Verbose] > ╭─[ 249.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #311 [Verbose] > │ () │
00:00:13 #312 [Verbose] > │ │
00:00:13 #313 [Verbose] > │ │
00:00:13 #314 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #315 [Verbose] >
00:00:13 #316 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #317 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #318 [Verbose] > │ ## raw_string_literal │
00:00:13 #319 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #320 [Verbose] >
00:00:13 #321 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #322 [Verbose] > inl raw_string_literal (s : string) : rust.ref' str =
00:00:13 #323 [Verbose] > !\($"\"r#\\\"\" + !s + \"\\\"#\"")
00:00:14 #324 [Verbose] >
00:00:14 #325 [Verbose] > ╭─[ 324.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #326 [Verbose] > │ () │
00:00:14 #327 [Verbose] > │ │
00:00:14 #328 [Verbose] > │ │
00:00:14 #329 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #330 [Verbose] >
00:00:14 #331 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #332 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #333 [Verbose] > │ ## raw_string_literal_static │
00:00:14 #334 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #335 [Verbose] >
00:00:14 #336 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #337 [Verbose] > inl raw_string_literal_static (s : string) : rust.static_ref' str =
00:00:14 #338 [Verbose] > !\($"\"r#\\\"\" + !s + \"\\\"#\"")
00:00:14 #339 [Verbose] >
00:00:14 #340 [Verbose] > ╭─[ 264.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #341 [Verbose] > │ () │
00:00:14 #342 [Verbose] > │ │
00:00:14 #343 [Verbose] > │ │
00:00:14 #344 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #345 [Verbose] >
00:00:14 #346 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #347 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #348 [Verbose] > │ ## include_str │
00:00:14 #349 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #350 [Verbose] >
00:00:14 #351 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #352 [Verbose] > inl include_str (path : string) : rust.ref' str =
00:00:14 #353 [Verbose] > !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:00:14 #354 [Verbose] >
00:00:14 #355 [Verbose] > ╭─[ 323.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #356 [Verbose] > │ () │
00:00:14 #357 [Verbose] > │ │
00:00:14 #358 [Verbose] > │ │
00:00:14 #359 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #360 [Verbose] >
00:00:14 #361 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #362 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #363 [Verbose] > │ ## as_str │
00:00:14 #364 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #365 [Verbose] >
00:00:14 #366 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #367 [Verbose] > inl as_str (s : string) : rust.ref' str =
00:00:14 #368 [Verbose] > inl s = join s
00:00:14 #369 [Verbose] > !\($'$"fable_library_rust::String_::LrcStr::as_str(&!s)"')
00:00:15 #370 [Verbose] >
00:00:15 #371 [Verbose] > ╭─[ 244.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #372 [Verbose] > │ () │
00:00:15 #373 [Verbose] > │ │
00:00:15 #374 [Verbose] > │ │
00:00:15 #375 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #376 [Verbose] >
00:00:15 #377 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #378 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #379 [Verbose] > │ ## from_std_string │
00:00:15 #380 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #381 [Verbose] >
00:00:15 #382 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #383 [Verbose] > inl from_std_string (str : std_string) : string =
00:00:15 #384 [Verbose] > inl str = join str
00:00:15 #385 [Verbose] > !\($'"fable_library_rust::String_::fromString(!str)"')
00:00:15 #386 [Verbose] >
00:00:15 #387 [Verbose] > ╭─[ 255.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #388 [Verbose] > │ () │
00:00:15 #389 [Verbose] > │ │
00:00:15 #390 [Verbose] > │ │
00:00:15 #391 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #392 [Verbose] >
00:00:15 #393 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #394 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #395 [Verbose] > │ ## ref_to_std_string │
00:00:15 #396 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #397 [Verbose] >
00:00:15 #398 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #399 [Verbose] > inl ref_to_std_string (str : rust.ref' str) : std_string =
00:00:15 #400 [Verbose] > !\($'"String::from(!str)"')
00:00:15 #401 [Verbose] >
00:00:15 #402 [Verbose] > ╭─[ 239.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #403 [Verbose] > │ () │
00:00:15 #404 [Verbose] > │ │
00:00:15 #405 [Verbose] > │ │
00:00:15 #406 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #407 [Verbose] >
00:00:15 #408 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #409 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #410 [Verbose] > │ ## to_std_string │
00:00:15 #411 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #412 [Verbose] >
00:00:15 #413 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #414 [Verbose] > inl to_std_string (s : string) : std_string =
00:00:15 #415 [Verbose] > inl s = join s
00:00:15 #416 [Verbose] > s |> as_str |> ref_to_std_string
00:00:15 #417 [Verbose] >
00:00:15 #418 [Verbose] > ╭─[ 254.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #419 [Verbose] > │ () │
00:00:15 #420 [Verbose] > │ │
00:00:15 #421 [Verbose] > │ │
00:00:15 #422 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #423 [Verbose] >
00:00:15 #424 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #425 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #426 [Verbose] > │ ## as_str_std │
00:00:15 #427 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #428 [Verbose] >
00:00:15 #429 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #430 [Verbose] > inl as_str_std (s : std_string) : rust.ref' str =
00:00:15 #431 [Verbose] > inl s = join s
00:00:15 #432 [Verbose] > !\($'"!s.as_str()"')
00:00:16 #433 [Verbose] >
00:00:16 #434 [Verbose] > ╭─[ 234.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #435 [Verbose] > │ () │
00:00:16 #436 [Verbose] > │ │
00:00:16 #437 [Verbose] > │ │
00:00:16 #438 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #439 [Verbose] >
00:00:16 #440 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #441 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #442 [Verbose] > │ ## into_boxed_str │
00:00:16 #443 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #444 [Verbose] >
00:00:16 #445 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #446 [Verbose] > inl into_boxed_str (s : std_string) : rust.box str =
00:00:16 #447 [Verbose] > !\($'"!s.into_boxed_str()"')
00:00:16 #448 [Verbose] >
00:00:16 #449 [Verbose] > ╭─[ 284.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #450 [Verbose] > │ () │
00:00:16 #451 [Verbose] > │ │
00:00:16 #452 [Verbose] > │ │
00:00:16 #453 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #454 [Verbose] >
00:00:16 #455 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #456 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #457 [Verbose] > │ ## format' │
00:00:16 #458 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #459 [Verbose] >
00:00:16 #460 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #461 [Verbose] > inl format' x : std_string =
00:00:16 #462 [Verbose] > !\\(x, $'@@$"format\!(""{{}}"", $0)"')
00:00:16 #463 [Verbose] >
00:00:16 #464 [Verbose] > ╭─[ 288.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #465 [Verbose] > │ () │
00:00:16 #466 [Verbose] > │ │
00:00:16 #467 [Verbose] > │ │
00:00:16 #468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #469 [Verbose] >
00:00:16 #470 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #471 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #472 [Verbose] > │ ## format_debug │
00:00:16 #473 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #474 [Verbose] >
00:00:16 #475 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #476 [Verbose] > inl format_debug x : string =
00:00:16 #477 [Verbose] > $'$"%A{!x}"'
00:00:16 #478 [Verbose] >
00:00:16 #479 [Verbose] > ╭─[ 236.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #480 [Verbose] > │ () │
00:00:16 #481 [Verbose] > │ │
00:00:16 #482 [Verbose] > │ │
00:00:16 #483 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #484 [Verbose] >
00:00:16 #485 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #486 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #487 [Verbose] > │ ## format_debug' │
00:00:16 #488 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #489 [Verbose] >
00:00:16 #490 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #491 [Verbose] > inl format_debug' x : std_string =
00:00:16 #492 [Verbose] > !\\(x, $'@@$"format\!(""{{:?}}"", $0)"')
00:00:17 #493 [Verbose] >
00:00:17 #494 [Verbose] > ╭─[ 273.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #495 [Verbose] > │ () │
00:00:17 #496 [Verbose] > │ │
00:00:17 #497 [Verbose] > │ │
00:00:17 #498 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #499 [Verbose] >
00:00:17 #500 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #501 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #502 [Verbose] > │ ## format_pretty' │
00:00:17 #503 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #504 [Verbose] >
00:00:17 #505 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #506 [Verbose] > inl format_pretty' x : std_string =
00:00:17 #507 [Verbose] > !\\(x, $'@@$"format\!(""{{:#?}}"", $0)"')
00:00:17 #508 [Verbose] >
00:00:17 #509 [Verbose] > ╭─[ 328.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #510 [Verbose] > │ () │
00:00:17 #511 [Verbose] > │ │
00:00:17 #512 [Verbose] > │ │
00:00:17 #513 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #514 [Verbose] >
00:00:17 #515 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #516 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #517 [Verbose] > │ ## format_exception │
00:00:17 #518 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #519 [Verbose] >
00:00:17 #520 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #521 [Verbose] > inl format_exception (ex : exn) : string =
00:00:17 #522 [Verbose] > $'$"{!ex.GetType ()}: {!ex.Message}"'
00:00:17 #523 [Verbose] >
00:00:17 #524 [Verbose] > ╭─[ 230.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #525 [Verbose] > │ () │
00:00:17 #526 [Verbose] > │ │
00:00:17 #527 [Verbose] > │ │
00:00:17 #528 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #529 [Verbose] >
00:00:17 #530 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #531 [Verbose] > // // test
00:00:17 #532 [Verbose] >
00:00:17 #533 [Verbose] > fun () => failwith "test"
00:00:17 #534 [Verbose] > |> _throws
00:00:17 #535 [Verbose] > |> optionm.map sm'.format_exception
00:00:17 #536 [Verbose] > |> _assert_eq (Some "System.Exception: test")
00:00:20 #537 [Verbose] >
00:00:20 #538 [Verbose] > ╭─[ 3.09s - stdout ]───────────────────────────────────────────────────────────╮
00:00:20 #539 [Verbose] > │ type [<Struct>] US0 = │
00:00:20 #540 [Verbose] > │ | US0_0 │
00:00:20 #541 [Verbose] > │ | US0_1 of f1_0 : exn │
00:00:20 #542 [Verbose] > │ and [<Struct>] US1 = │
00:00:20 #543 [Verbose] > │ | US1_0 │
00:00:20 #544 [Verbose] > │ | US1_1 of f1_0 : string │
00:00:20 #545 [Verbose] > │ let rec closure0 () () : unit = │
00:00:20 #546 [Verbose] > │ failwith<unit> "test" │
00:00:20 #547 [Verbose] > │ and closure1 () (v0 : exn) : US0 = │
00:00:20 #548 [Verbose] > │ US0_1(v0) │
00:00:20 #549 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:20 #550 [Verbose] > │ v0 │
00:00:20 #551 [Verbose] > │ and method0 () : unit = │
00:00:20 #552 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:20 #553 [Verbose] > │ let v1 : US0 = US0_0 │
00:00:20 #554 [Verbose] > │ let v2 : (exn -> US0) = closure1() │
00:00:20 #555 [Verbose] > │ let v3 : US0 = try v0 (); v1 with ex -> ex |> v2 │
00:00:20 #556 [Verbose] > │ let v9 : US1 = │
00:00:20 #557 [Verbose] > │ match v3 with │
00:00:20 #558 [Verbose] > │ | US0_0 -> (* None *) │
00:00:20 #559 [Verbose] > │ US1_0 │
00:00:20 #560 [Verbose] > │ | US0_1(v4) -> (* Some *) │
00:00:20 #561 [Verbose] > │ let v5 : string = $"{v4.GetType ()}: {v4.Message}" │
00:00:20 #562 [Verbose] > │ US1_1(v5) │
00:00:20 #563 [Verbose] > │ let v10 : string = $"%A{v9}" │
00:00:20 #564 [Verbose] > │ System.Console.WriteLine v10 │
00:00:20 #565 [Verbose] > │ let v15 : bool = │
00:00:20 #566 [Verbose] > │ match v9 with │
00:00:20 #567 [Verbose] > │ | US1_1(v13) -> (* Some *) │
00:00:20 #568 [Verbose] > │ let v14 : bool = v13 = "System.Exception: test" │
00:00:20 #569 [Verbose] > │ v14 │
00:00:20 #570 [Verbose] > │ | _ -> │
00:00:20 #571 [Verbose] > │ false │
00:00:20 #572 [Verbose] > │ let v17 : bool = │
00:00:20 #573 [Verbose] > │ if v15 then │
00:00:20 #574 [Verbose] > │ true │
00:00:20 #575 [Verbose] > │ else │
00:00:20 #576 [Verbose] > │ method1(v15) │
00:00:20 #577 [Verbose] > │ let v18 : string = "System.Exception: test" │
00:00:20 #578 [Verbose] > │ let v19 : US1 = US1_1(v18) │
00:00:20 #579 [Verbose] > │ let v20 : string = $"__expect / actual: %A{v9} / expected: %A{v19}" │
00:00:20 #580 [Verbose] > │ let v21 : bool = v17 = false │
00:00:20 #581 [Verbose] > │ if v21 then │
00:00:20 #582 [Verbose] > │ failwith<unit> v20 │
00:00:20 #583 [Verbose] > │ method0() │
00:00:20 #584 [Verbose] > │ │
00:00:20 #585 [Verbose] > │ US1_1 "System.Exception: test" │
00:00:20 #586 [Verbose] > │ │
00:00:20 #587 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #588 [Verbose] >
00:00:20 #589 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #590 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #591 [Verbose] > │ ## format_ellipsis' │
00:00:20 #592 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #593 [Verbose] >
00:00:20 #594 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #595 [Verbose] > inl format_ellipsis' s =
00:00:20 #596 [Verbose] > s
00:00:20 #597 [Verbose] > |> format_debug
00:00:20 #598 [Verbose] > |> ellipsis 400i32
00:00:21 #599 [Verbose] >
00:00:21 #600 [Verbose] > ╭─[ 288.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #601 [Verbose] > │ () │
00:00:21 #602 [Verbose] > │ │
00:00:21 #603 [Verbose] > │ │
00:00:21 #604 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #605 [Verbose] >
00:00:21 #606 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #607 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #608 [Verbose] > │ ## obj_to_string │
00:00:21 #609 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #610 [Verbose] >
00:00:21 #611 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #612 [Verbose] > inl obj_to_string x : string =
00:00:21 #613 [Verbose] > $"!x.ToString ()"
00:00:21 #614 [Verbose] >
00:00:21 #615 [Verbose] > ╭─[ 388.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #616 [Verbose] > │ () │
00:00:21 #617 [Verbose] > │ │
00:00:21 #618 [Verbose] > │ │
00:00:21 #619 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #620 [Verbose] >
00:00:21 #621 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #622 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #623 [Verbose] > │ ## to_string any │
00:00:21 #624 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #625 [Verbose] >
00:00:21 #626 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #627 [Verbose] > instance to_string any =
00:00:21 #628 [Verbose] > obj_to_string
00:00:21 #629 [Verbose] >
00:00:21 #630 [Verbose] > ╭─[ 254.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #631 [Verbose] > │ () │
00:00:21 #632 [Verbose] > │ │
00:00:21 #633 [Verbose] > │ │
00:00:21 #634 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #635 [Verbose] >
00:00:21 #636 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #637 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #638 [Verbose] > │ ## to_string result t u │
00:00:21 #639 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #640 [Verbose] >
00:00:21 #641 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #642 [Verbose] > instance to_string result t u = fun x =>
00:00:21 #643 [Verbose] > real
00:00:21 #644 [Verbose] > open rust
00:00:21 #645 [Verbose] > typecase (t * u) with
00:00:21 #646 [Verbose] > | string * string =>
00:00:21 #647 [Verbose] > match x with
00:00:21 #648 [Verbose] > | Ok x => x
00:00:21 #649 [Verbose] > | Error x => $'"Error: " + !x + ""' : string
00:00:21 #650 [Verbose] > | std_string * std_string =>
00:00:21 #651 [Verbose] > match x with
00:00:21 #652 [Verbose] > | Ok x => from_std_string x
00:00:21 #653 [Verbose] > | Error x => $'"Error: " + string !x + ""' : string
00:00:21 #654 [Verbose] > | _ => obj_to_string `u x
00:00:22 #655 [Verbose] >
00:00:22 #656 [Verbose] > ╭─[ 279.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #657 [Verbose] > │ () │
00:00:22 #658 [Verbose] > │ │
00:00:22 #659 [Verbose] > │ │
00:00:22 #660 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #661 [Verbose] >
00:00:22 #662 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #663 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #664 [Verbose] > │ ## serialize │
00:00:22 #665 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #666 [Verbose] >
00:00:22 #667 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #668 [Verbose] > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:00:22 #669 [Verbose] > !\($'"serde_json::to_string(&!x)"')
00:00:22 #670 [Verbose] >
00:00:22 #671 [Verbose] > ╭─[ 327.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #672 [Verbose] > │ () │
00:00:22 #673 [Verbose] > │ │
00:00:22 #674 [Verbose] > │ │
00:00:22 #675 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #676 [Verbose] >
00:00:22 #677 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #678 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #679 [Verbose] > │ ## deserialize │
00:00:22 #680 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #681 [Verbose] >
00:00:22 #682 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #683 [Verbose] > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:00:22 #684 [Verbose] > inl json = json |> as_str
00:00:22 #685 [Verbose] > !\($'"serde_json::from_str(&!json)"')
00:00:22 #686 [Verbose] > |> resultm.map_error' fun (x : json_error) => x |> format'
00:00:22 #687 [Verbose] >
00:00:22 #688 [Verbose] > ╭─[ 238.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #689 [Verbose] > │ () │
00:00:22 #690 [Verbose] > │ │
00:00:22 #691 [Verbose] > │ │
00:00:22 #692 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #693 [Verbose] >
00:00:22 #694 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #695 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #696 [Verbose] > │ ## borsh_deserialize │
00:00:22 #697 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #698 [Verbose] >
00:00:22 #699 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #700 [Verbose] > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:00:22 #701 [Verbose] > std_string =
00:00:22 #702 [Verbose] > inl data = data |> am'.as_slice
00:00:22 #703 [Verbose] > !\($'"let mut !data = !data"')
00:00:22 #704 [Verbose] > inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:00:22 #705 [Verbose] > result
00:00:22 #706 [Verbose] > |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:00:22 #707 [Verbose] >
00:00:22 #708 [Verbose] > ╭─[ 235.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #709 [Verbose] > │ () │
00:00:22 #710 [Verbose] > │ │
00:00:22 #711 [Verbose] > │ │
00:00:22 #712 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #713 [Verbose] >
00:00:22 #714 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #715 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #716 [Verbose] > │ ## deserialize_vec │
00:00:22 #717 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #718 [Verbose] >
00:00:22 #719 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #720 [Verbose] > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:00:22 #721 [Verbose] > std_string =
00:00:22 #722 [Verbose] > inl value = join value
00:00:22 #723 [Verbose] > !\($'"serde_json::from_value(!value)"')
00:00:22 #724 [Verbose] > |> resultm.map_error' fun (x : json_error) => x |> format'
00:00:23 #725 [Verbose] >
00:00:23 #726 [Verbose] > ╭─[ 325.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #727 [Verbose] > │ () │
00:00:23 #728 [Verbose] > │ │
00:00:23 #729 [Verbose] > │ │
00:00:23 #730 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #731 [Verbose] >
00:00:23 #732 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #733 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #734 [Verbose] > │ ## encode_uri_component │
00:00:23 #735 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #736 [Verbose] >
00:00:23 #737 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #738 [Verbose] > inl encode_uri_component (s : std_string) : js_string =
00:00:23 #739 [Verbose] > !\($'"js_sys::encode_uri_component(&!s)"')
00:00:23 #740 [Verbose] >
00:00:23 #741 [Verbose] > ╭─[ 274.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #742 [Verbose] > │ () │
00:00:23 #743 [Verbose] > │ │
00:00:23 #744 [Verbose] > │ │
00:00:23 #745 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #746 [Verbose] >
00:00:23 #747 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #748 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #749 [Verbose] > │ ## strip_prefix │
00:00:23 #750 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #751 [Verbose] >
00:00:23 #752 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #753 [Verbose] > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref'
00:00:23 #754 [Verbose] > str) =
00:00:23 #755 [Verbose] > inl s = join s
00:00:23 #756 [Verbose] > !\($'"!s.strip_prefix(!prefix)"')
00:00:23 #757 [Verbose] >
00:00:23 #758 [Verbose] > ╭─[ 270.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #759 [Verbose] > │ () │
00:00:23 #760 [Verbose] > │ │
00:00:23 #761 [Verbose] > │ │
00:00:23 #762 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #763 [Verbose] >
00:00:23 #764 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #765 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #766 [Verbose] > │ ## base64_decode │
00:00:23 #767 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #768 [Verbose] >
00:00:23 #769 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #770 [Verbose] > inl base64_decode (s : std_string) : result std_string std_string =
00:00:23 #771 [Verbose] > fun () =>
00:00:23 #772 [Verbose] > inl s = join s
00:00:23 #773 [Verbose] > inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:00:23 #774 [Verbose] >
00:00:23 #775 [Verbose] > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:00:23 #776 [Verbose] > inl bytes =
00:00:23 #777 [Verbose] > bytes
00:00:23 #778 [Verbose] > |> resultm.map_error' format'
00:00:23 #779 [Verbose] > |> resultm.try'
00:00:23 #780 [Verbose] > inl result : resultm.result' std_string utf8_error =
00:00:23 #781 [Verbose] > !\($'"std::str::from_utf8(&!bytes).map(String::from)"')
00:00:23 #782 [Verbose] > result
00:00:23 #783 [Verbose] > |> resultm.map_error' format'
00:00:23 #784 [Verbose] > |> fun x =>
00:00:23 #785 [Verbose] > join x ()
00:00:23 #786 [Verbose] > |> resultm.unbox
00:00:24 #787 [Verbose] >
00:00:24 #788 [Verbose] > ╭─[ 319.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #789 [Verbose] > │ () │
00:00:24 #790 [Verbose] > │ │
00:00:24 #791 [Verbose] > │ │
00:00:24 #792 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #793 [Verbose] >
00:00:24 #794 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #795 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #796 [Verbose] > │ ## concat_array_trailing │
00:00:24 #797 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #798 [Verbose] >
00:00:24 #799 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #800 [Verbose] > inl concat_array_trailing separator input =
00:00:24 #801 [Verbose] > ("", input)
00:00:24 #802 [Verbose] > ||> am.fold fun acc (x : string) =>
00:00:24 #803 [Verbose] > $'!acc + !x + !separator + ""'
00:00:24 #804 [Verbose] >
00:00:24 #805 [Verbose] > ╭─[ 296.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #806 [Verbose] > │ () │
00:00:24 #807 [Verbose] > │ │
00:00:24 #808 [Verbose] > │ │
00:00:24 #809 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #810 [Verbose] >
00:00:24 #811 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #812 [Verbose] > // // test
00:00:24 #813 [Verbose] > // // rust=
00:00:24 #814 [Verbose] >
00:00:24 #815 [Verbose] > ;[[
00:00:24 #816 [Verbose] > "1"
00:00:24 #817 [Verbose] > "2"
00:00:24 #818 [Verbose] > "3"
00:00:24 #819 [Verbose] > ]]
00:00:24 #820 [Verbose] > |> fun x =>
00:00:24 #821 [Verbose] > inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:00:24 #822 [Verbose] > code
00:00:24 #823 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:32 #824 [Verbose] >
00:00:32 #825 [Verbose] > ╭─[ 7.91s - return value ]─────────────────────────────────────────────────────╮
00:00:32 #826 [Verbose] > │ .rs output: │
00:00:32 #827 [Verbose] > │ "1 │
00:00:32 #828 [Verbose] > │ 2 │
00:00:32 #829 [Verbose] > │ 3 │
00:00:32 #830 [Verbose] > │ " │
00:00:32 #831 [Verbose] > │ │
00:00:32 #832 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #833 [Verbose] >
00:00:32 #834 [Verbose] > ╭─[ 7.93s - stdout ]───────────────────────────────────────────────────────────╮
00:00:32 #835 [Verbose] > │ │
00:00:32 #836 [Verbose] > │ .fsx: │
00:00:32 #837 [Verbose] > │ type Mut0 = {mutable l0 : int32; mutable l1 : string} │
00:00:32 #838 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:32 #839 [Verbose] > │ v0 │
00:00:32 #840 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:32 #841 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:32 #842 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:32 #843 [Verbose] > │ v3 │
00:00:32 #844 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:32 #845 [Verbose] > │ v0 │
00:00:32 #846 [Verbose] > │ and method0 () : unit = │
00:00:32 #847 [Verbose] > │ let v0 : string = "1" │
00:00:32 #848 [Verbose] > │ let v1 : string = "2" │
00:00:32 #849 [Verbose] > │ let v2 : string = "3" │
00:00:32 #850 [Verbose] > │ let v3 : (string []) = [|v0; v1; v2|] │
00:00:32 #851 [Verbose] > │ let v4 : (string []) = method1(v3) │
00:00:32 #852 [Verbose] > │ let v5 : int32 = v4.Length │
00:00:32 #853 [Verbose] > │ let v6 : string = "" │
00:00:32 #854 [Verbose] > │ let v7 : Mut0 = {l0 = 0; l1 = v6} : Mut0 │
00:00:32 #855 [Verbose] > │ while method2(v5, v7) do │
00:00:32 #856 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:32 #857 [Verbose] > │ let v10 : string = v7.l1 │
00:00:32 #858 [Verbose] > │ let v11 : string = v4.[int v9] │
00:00:32 #859 [Verbose] > │ let v12 : string = "\n" │
00:00:32 #860 [Verbose] > │ let v13 : string = v10 + v11 + v12 + "" │
00:00:32 #861 [Verbose] > │ let v14 : int32 = v9 + 1 │
00:00:32 #862 [Verbose] > │ v7.l0 <- v14 │
00:00:32 #863 [Verbose] > │ v7.l1 <- v13 │
00:00:32 #864 [Verbose] > │ () │
00:00:32 #865 [Verbose] > │ let v15 : string = v7.l1 │
00:00:32 #866 [Verbose] > │ let v16 : string = $"%A{v15}" │
00:00:32 #867 [Verbose] > │ System.Console.WriteLine v16 │
00:00:32 #868 [Verbose] > │ let v18 : bool = v15 = "1\n2\n3\n" │
00:00:32 #869 [Verbose] > │ let v20 : bool = │
00:00:32 #870 [Verbose] > │ if v18 then │
00:00:32 #871 [Verbose] > │ true │
00:00:32 #872 [Verbose] > │ else │
00:00:32 #873 [Verbose] > │ method3(v18) │
00:00:32 #874 [Verbose] > │ let v21 : string = "1\n2\n3\n" │
00:00:32 #875 [Verbose] > │ let v22 : string = $"__expect / actual: %A{v15} / expected: %A{v21}" │
00:00:32 #876 [Verbose] > │ let v23 : bool = v20 = false │
00:00:32 #877 [Verbose] > │ if v23 then │
00:00:32 #878 [Verbose] > │ failwith<unit> v22 │
00:00:32 #879 [Verbose] > │ method0() │
00:00:32 #880 [Verbose] > │ │
00:00:32 #881 [Verbose] > │ │
00:00:32 #882 [Verbose] > │ .rs: │
00:00:32 #883 [Verbose] > │ #![allow(dead_code,)] │
00:00:32 #884 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:32 #885 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:32 #886 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:32 #887 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:32 #888 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:32 #889 [Verbose] > │ #![allow(unused_imports,)] │
00:00:32 #890 [Verbose] > │ #![allow(unused_macros,)] │
00:00:32 #891 [Verbose] > │ #![allow(unused_parens,)] │
00:00:32 #892 [Verbose] > │ #![allow(unused_variables,)] │
00:00:32 #893 [Verbose] > │ mod module_ccfa04bf { │
00:00:32 #894 [Verbose] > │ pub mod Spiral_eval { │
00:00:32 #895 [Verbose] > │ use super::*; │
00:00:32 #896 [Verbose] > │ use fable_library_rust::Native_::LrcPtr; │
00:00:32 #897 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:32 #898 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:32 #899 [Verbose] > │ use fable_library_rust::NativeArray_::Array; │
00:00:32 #900 [Verbose] > │ use fable_library_rust::NativeArray_::count; │
00:00:32 #901 [Verbose] > │ use fable_library_rust::NativeArray_::new_array; │
00:00:32 #902 [Verbose] > │ use fable_library_rust::String_::append; │
00:00:32 #903 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:32 #904 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:32 #905 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:32 #906 [Verbose] > │ #[derive(Clone, Debug, Default, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:32 #907 [Verbose] > │ pub struct Mut0 { │
00:00:32 #908 [Verbose] > │ pub l0: MutCell<i32>, │
00:00:32 #909 [Verbose] > │ pub l1: MutCell<string>, │
00:00:32 #910 [Verbose] > │ } │
00:00:32 #911 [Verbose] > │ impl core::fmt::Display for Spiral_eval::Mut0 { │
00:00:32 #912 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:32 #913 [Verbose] > │ { │
00:00:32 #914 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:32 #915 [Verbose] > │ } │
00:00:32 #916 [Verbose] > │ } │
00:00:32 #917 [Verbose] > │ pub fn method1(v0: Array<string>) -> Array<string> { v0 } │
00:00:32 #918 [Verbose] > │ pub fn method2(v0: i32, v1: LrcPtr<Spiral_eval::Mut0>) -> bool { │
00:00:32 #919 [Verbose] > │ v1.l0.get().clone() < v0 │
00:00:32 #920 [Verbose] > │ } │
00:00:32 #921 [Verbose] > │ pub fn method3(v0: bool) -> bool { v0 } │
00:00:32 #922 [Verbose] > │ pub fn method0() { │
00:00:32 #923 [Verbose] > │ let v4: Array<string> = │
00:00:32 #924 [Verbose] > │ Spiral_eval::method1(new_array(&[string("1"), string("2"), │
00:00:32 #925 [Verbose] > │ string("3")])); │
00:00:32 #926 [Verbose] > │ let v5: i32 = count(v4.clone()); │
00:00:32 #927 [Verbose] > │ let v7: LrcPtr<Spiral_eval::Mut0> = │
00:00:32 #928 [Verbose] > │ LrcPtr::new(Spiral_eval::Mut0{l0: MutCell::new(0_i32), │
00:00:32 #929 [Verbose] > │ l1: │
00:00:32 #930 [Verbose] > │ MutCell::new(string("")),}); │
00:00:32 #931 [Verbose] > │ while Spiral_eval::method2(v5, v7.clone()) { │
00:00:32 #932 [Verbose] > │ let v9: i32 = v7.l0.get().clone(); │
00:00:32 #933 [Verbose] > │ let v13: string = │
00:00:32 #934 [Verbose] > │ append(append(append(v7.l1.get().clone(), v4[ │
00:00:32 #935 [Verbose] > │ v9].clone()), │
00:00:32 #936 [Verbose] > │ string("\n")), string("")); │
00:00:32 #937 [Verbose] > │ let v14: i32 = v9 + 1_i32; │
00:00:32 #938 [Verbose] > │ v7.l0.set(v14); │
00:00:32 #939 [Verbose] > │ v7.l1.set(v13); │
00:00:32 #940 [Verbose] > │ () │
00:00:32 #941 [Verbose] > │ } │
00:00:32 #942 [Verbose] > │ { │
00:00:32 #943 [Verbose] > │ let v15: string = v7.l1.get().clone(); │
00:00:32 #944 [Verbose] > │ let v16: string = sprintf!("{:?}", v15.clone()); │
00:00:32 #945 [Verbose] > │ printfn!("{0}", v16); │
00:00:32 #946 [Verbose] > │ { │
00:00:32 #947 [Verbose] > │ let v18: bool = v15.clone() == string("1\n2\n3\n"); │
00:00:32 #948 [Verbose] > │ if (if v18 { true } else { Spiral_eval::method3(v18) }) │
00:00:32 #949 [Verbose] > │ == │
00:00:32 #950 [Verbose] > │ false { │
00:00:32 #951 [Verbose] > │ panic!("{}", │
00:00:32 #952 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:32 #953 [Verbose] > │ {:?}", v15, string("1\n2\n3\n"))); │
00:00:32 #954 [Verbose] > │ } │
00:00:32 #955 [Verbose] > │ } │
00:00:32 #956 [Verbose] > │ } │
00:00:32 #957 [Verbose] > │ } │
00:00:32 #958 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:32 #959 [Verbose] > │ } │
00:00:32 #960 [Verbose] > │ } │
00:00:32 #961 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:32 #962 [Verbose] > │ │
00:00:32 #963 [Verbose] > │ │
00:00:32 #964 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #965 [Verbose] >
00:00:32 #966 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 #967 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 #968 [Verbose] > │ ## concat_list_trailing │
00:00:32 #969 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #970 [Verbose] >
00:00:32 #971 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #972 [Verbose] > inl concat_list_trailing separator input =
00:00:32 #973 [Verbose] > ("", input)
00:00:32 #974 [Verbose] > ||> listm.fold fun acc (x : string) =>
00:00:32 #975 [Verbose] > $'!acc + !x + !separator + ""'
00:00:32 #976 [Verbose] >
00:00:32 #977 [Verbose] > ╭─[ 315.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #978 [Verbose] > │ () │
00:00:32 #979 [Verbose] > │ │
00:00:32 #980 [Verbose] > │ │
00:00:32 #981 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #982 [Verbose] >
00:00:32 #983 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #984 [Verbose] > // // test
00:00:32 #985 [Verbose] > // // rust=
00:00:32 #986 [Verbose] >
00:00:32 #987 [Verbose] > [[
00:00:32 #988 [Verbose] > "1"
00:00:32 #989 [Verbose] > "2"
00:00:32 #990 [Verbose] > "3"
00:00:32 #991 [Verbose] > ]]
00:00:32 #992 [Verbose] > |> fun x =>
00:00:32 #993 [Verbose] > inl code = (x : _) |> sm'.concat_list_trailing "\n"
00:00:32 #994 [Verbose] > code
00:00:32 #995 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:38 #996 [Verbose] >
00:00:38 #997 [Verbose] > ╭─[ 5.67s - return value ]─────────────────────────────────────────────────────╮
00:00:38 #998 [Verbose] > │ .rs output: │
00:00:38 #999 [Verbose] > │ "1 │
00:00:38 #1000 [Verbose] > │ 2 │
00:00:38 #1001 [Verbose] > │ 3 │
00:00:38 #1002 [Verbose] > │ " │
00:00:38 #1003 [Verbose] > │ │
00:00:38 #1004 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #1005 [Verbose] >
00:00:38 #1006 [Verbose] > ╭─[ 5.68s - stdout ]───────────────────────────────────────────────────────────╮
00:00:38 #1007 [Verbose] > │ │
00:00:38 #1008 [Verbose] > │ .fsx: │
00:00:38 #1009 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:38 #1010 [Verbose] > │ v0 │
00:00:38 #1011 [Verbose] > │ and method0 () : unit = │
00:00:38 #1012 [Verbose] > │ let v0 : string = "" │
00:00:38 #1013 [Verbose] > │ let v1 : string = "1" │
00:00:38 #1014 [Verbose] > │ let v2 : string = "\n" │
00:00:38 #1015 [Verbose] > │ let v3 : string = v0 + v1 + v2 + "" │
00:00:38 #1016 [Verbose] > │ let v4 : string = "2" │
00:00:38 #1017 [Verbose] > │ let v5 : string = v3 + v4 + v2 + "" │
00:00:38 #1018 [Verbose] > │ let v6 : string = "3" │
00:00:38 #1019 [Verbose] > │ let v7 : string = v5 + v6 + v2 + "" │
00:00:38 #1020 [Verbose] > │ let v8 : string = $"%A{v7}" │
00:00:38 #1021 [Verbose] > │ System.Console.WriteLine v8 │
00:00:38 #1022 [Verbose] > │ let v10 : bool = v7 = "1\n2\n3\n" │
00:00:38 #1023 [Verbose] > │ let v12 : bool = │
00:00:38 #1024 [Verbose] > │ if v10 then │
00:00:38 #1025 [Verbose] > │ true │
00:00:38 #1026 [Verbose] > │ else │
00:00:38 #1027 [Verbose] > │ method1(v10) │
00:00:38 #1028 [Verbose] > │ let v13 : string = "1\n2\n3\n" │
00:00:38 #1029 [Verbose] > │ let v14 : string = $"__expect / actual: %A{v7} / expected: %A{v13}" │
00:00:38 #1030 [Verbose] > │ let v15 : bool = v12 = false │
00:00:38 #1031 [Verbose] > │ if v15 then │
00:00:38 #1032 [Verbose] > │ failwith<unit> v14 │
00:00:38 #1033 [Verbose] > │ method0() │
00:00:38 #1034 [Verbose] > │ │
00:00:38 #1035 [Verbose] > │ │
00:00:38 #1036 [Verbose] > │ .rs: │
00:00:38 #1037 [Verbose] > │ #![allow(dead_code,)] │
00:00:38 #1038 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:38 #1039 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:38 #1040 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:38 #1041 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:38 #1042 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:38 #1043 [Verbose] > │ #![allow(unused_imports,)] │
00:00:38 #1044 [Verbose] > │ #![allow(unused_macros,)] │
00:00:38 #1045 [Verbose] > │ #![allow(unused_parens,)] │
00:00:38 #1046 [Verbose] > │ #![allow(unused_variables,)] │
00:00:38 #1047 [Verbose] > │ mod module_ccfa04bf { │
00:00:38 #1048 [Verbose] > │ pub mod Spiral_eval { │
00:00:38 #1049 [Verbose] > │ use super::*; │
00:00:38 #1050 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:38 #1051 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:38 #1052 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:38 #1053 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:38 #1054 [Verbose] > │ pub fn method1(v0: bool) -> bool { v0 } │
00:00:38 #1055 [Verbose] > │ pub fn method0() { │
00:00:38 #1056 [Verbose] > │ let v7: string = string("1\n2\n3\n"); │
00:00:38 #1057 [Verbose] > │ let v8: string = sprintf!("{:?}", v7.clone()); │
00:00:38 #1058 [Verbose] > │ printfn!("{0}", v8); │
00:00:38 #1059 [Verbose] > │ { │
00:00:38 #1060 [Verbose] > │ let v10: bool = v7.clone() == string("1\n2\n3\n"); │
00:00:38 #1061 [Verbose] > │ if (if v10 { true } else { Spiral_eval::method1(v10) }) == │
00:00:38 #1062 [Verbose] > │ false { │
00:00:38 #1063 [Verbose] > │ panic!("{}", │
00:00:38 #1064 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:38 #1065 [Verbose] > │ {:?}", v7, string("1\n2\n3\n"))); │
00:00:38 #1066 [Verbose] > │ } │
00:00:38 #1067 [Verbose] > │ } │
00:00:38 #1068 [Verbose] > │ } │
00:00:38 #1069 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:38 #1070 [Verbose] > │ } │
00:00:38 #1071 [Verbose] > │ } │
00:00:38 #1072 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:38 #1073 [Verbose] > │ │
00:00:38 #1074 [Verbose] > │ │
00:00:38 #1075 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #1076 [Verbose] >
00:00:38 #1077 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 #1078 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 #1079 [Verbose] > │ ## concat_list_heap_trailing │
00:00:38 #1080 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #1081 [Verbose] >
00:00:38 #1082 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #1083 [Verbose] > inl concat_list_heap_trailing separator input =
00:00:38 #1084 [Verbose] > ("", input)
00:00:38 #1085 [Verbose] > ||> listm.fold fun acc (x : string) =>
00:00:38 #1086 [Verbose] > inl acc = acc |> to_std_string
00:00:38 #1087 [Verbose] > inl x = x |> as_str
00:00:38 #1088 [Verbose] > inl separator = separator |> as_str
00:00:38 #1089 [Verbose] > !\($'"!acc + !x + !separator"')
00:00:38 #1090 [Verbose] > |> from_std_string
00:00:38 #1091 [Verbose] >
00:00:38 #1092 [Verbose] > ╭─[ 253.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #1093 [Verbose] > │ () │
00:00:38 #1094 [Verbose] > │ │
00:00:38 #1095 [Verbose] > │ │
00:00:38 #1096 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #1097 [Verbose] >
00:00:38 #1098 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #1099 [Verbose] > // // test
00:00:38 #1100 [Verbose] > // // rust=
00:00:38 #1101 [Verbose] >
00:00:38 #1102 [Verbose] > types ()
00:00:38 #1103 [Verbose] >
00:00:38 #1104 [Verbose] > [[
00:00:38 #1105 [Verbose] > "1"
00:00:38 #1106 [Verbose] > "2"
00:00:38 #1107 [Verbose] > "3"
00:00:38 #1108 [Verbose] > ]]
00:00:38 #1109 [Verbose] > |> fun x =>
00:00:38 #1110 [Verbose] > inl code = (x : _) |> sm'.concat_list_heap_trailing "\n"
00:00:38 #1111 [Verbose] > code
00:00:38 #1112 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:45 #1113 [Verbose] >
00:00:45 #1114 [Verbose] > ╭─[ 6.98s - return value ]─────────────────────────────────────────────────────╮
00:00:45 #1115 [Verbose] > │ .rs output: │
00:00:45 #1116 [Verbose] > │ "1 │
00:00:45 #1117 [Verbose] > │ 2 │
00:00:45 #1118 [Verbose] > │ 3 │
00:00:45 #1119 [Verbose] > │ " │
00:00:45 #1120 [Verbose] > │ │
00:00:45 #1121 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 #1122 [Verbose] >
00:00:45 #1123 [Verbose] > ╭─[ 6.98s - stdout ]───────────────────────────────────────────────────────────╮
00:00:45 #1124 [Verbose] > │ │
00:00:45 #1125 [Verbose] > │ .fsx: │
00:00:45 #1126 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:00:45 #1127 [Verbose] > │ end │
00:00:45 #1128 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:00:45 #1129 [Verbose] > │ class end │
00:00:45 #1130 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:00:45 #1131 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:00:45 #1132 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:00:45 #1133 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:00:45 #1134 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:00:45 #1135 [Verbose] > │ class end │
00:00:45 #1136 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:00:45 #1137 [Verbose] > │ class end │
00:00:45 #1138 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:00:45 #1139 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:00:45 #1140 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:45 #1141 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:00:45 #1142 [Verbose] > │ class end │
00:00:45 #1143 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:00:45 #1144 [Verbose] > │ class end │
00:00:45 #1145 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:00:45 #1146 [Verbose] > │ class end │
00:00:45 #1147 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:00:45 #1148 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:00:45 #1149 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:00:45 #1150 [Verbose] > │ std_pin_Pin<'T> = class end │
00:00:45 #1151 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:00:45 #1152 [Verbose] > │ = class end │
00:00:45 #1153 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:00:45 #1154 [Verbose] > │ std_rc_Weak<'T> = class end │
00:00:45 #1155 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:00:45 #1156 [Verbose] > │ std_sync_Arc<'T> = class end │
00:00:45 #1157 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:45 #1158 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:00:45 #1159 [Verbose] > │ base64_DecodeError = class end │
00:00:45 #1160 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:00:45 #1161 [Verbose] > │ borsh_io_Error = class end │
00:00:45 #1162 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:00:45 #1163 [Verbose] > │ js_sys_JsString = class end │
00:00:45 #1164 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:00:45 #1165 [Verbose] > │ serde_json_Error = class end │
00:00:45 #1166 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:00:45 #1167 [Verbose] > │ serde_json_Value = class end │
00:00:45 #1168 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:00:45 #1169 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:00:45 #1170 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:00:45 #1171 [Verbose] > │ std_str_Utf8Error = class end │
00:00:45 #1172 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:45 #1173 [Verbose] > │ std_string_String = class end │
00:00:45 #1174 [Verbose] > │ let rec method1 () : string = │
00:00:45 #1175 [Verbose] > │ let v0 : string = "" │
00:00:45 #1176 [Verbose] > │ v0 │
00:00:45 #1177 [Verbose] > │ and method2 (v0 : string) : string = │
00:00:45 #1178 [Verbose] > │ v0 │
00:00:45 #1179 [Verbose] > │ and method3 () : string = │
00:00:45 #1180 [Verbose] > │ let v0 : string = "1" │
00:00:45 #1181 [Verbose] > │ v0 │
00:00:45 #1182 [Verbose] > │ and method4 () : string = │
00:00:45 #1183 [Verbose] > │ let v0 : string = "\n" │
00:00:45 #1184 [Verbose] > │ v0 │
00:00:45 #1185 [Verbose] > │ and method5 (v0 : std_string_String) : std_string_String = │
00:00:45 #1186 [Verbose] > │ v0 │
00:00:45 #1187 [Verbose] > │ and method6 (v0 : string) : string = │
00:00:45 #1188 [Verbose] > │ v0 │
00:00:45 #1189 [Verbose] > │ and method7 () : string = │
00:00:45 #1190 [Verbose] > │ let v0 : string = "2" │
00:00:45 #1191 [Verbose] > │ v0 │
00:00:45 #1192 [Verbose] > │ and method8 () : string = │
00:00:45 #1193 [Verbose] > │ let v0 : string = "3" │
00:00:45 #1194 [Verbose] > │ v0 │
00:00:45 #1195 [Verbose] > │ and method9 (v0 : bool) : bool = │
00:00:45 #1196 [Verbose] > │ v0 │
00:00:45 #1197 [Verbose] > │ and method0 () : unit = │
00:00:45 #1198 [Verbose] > │ let v0 : string = method1() │
00:00:45 #1199 [Verbose] > │ let v1 : string = method2(v0) │
00:00:45 #1200 [Verbose] > │ let v2 : string = $"fable_library_rust::String_::LrcStr::as_str(&v1)" │
00:00:45 #1201 [Verbose] > │ let v3 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v2 │
00:00:45 #1202 [Verbose] > │ let v4 : string = "String::from(v3)" │
00:00:45 #1203 [Verbose] > │ let v5 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v4 │
00:00:45 #1204 [Verbose] > │ let v6 : string = method3() │
00:00:45 #1205 [Verbose] > │ let v7 : string = $"fable_library_rust::String_::LrcStr::as_str(&v6)" │
00:00:45 #1206 [Verbose] > │ let v8 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v7 │
00:00:45 #1207 [Verbose] > │ let v9 : string = method4() │
00:00:45 #1208 [Verbose] > │ let v10 : string = $"fable_library_rust::String_::LrcStr::as_str(&v9)" │
00:00:45 #1209 [Verbose] > │ let v11 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v10 │
00:00:45 #1210 [Verbose] > │ let v12 : string = "v5 + v8 + v11" │
00:00:45 #1211 [Verbose] > │ let v13 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v12 │
00:00:45 #1212 [Verbose] > │ let v14 : std_string_String = method5(v13) │
00:00:45 #1213 [Verbose] > │ let v15 : string = "fable_library_rust::String_::fromString(v14)" │
00:00:45 #1214 [Verbose] > │ let v16 : string = Fable.Core.RustInterop.emitRustExpr () v15 │
00:00:45 #1215 [Verbose] > │ let v17 : string = method6(v16) │
00:00:45 #1216 [Verbose] > │ let v18 : string = method2(v17) │
00:00:45 #1217 [Verbose] > │ let v19 : string = $"fable_library_rust::String_::LrcStr::as_str(&v18)" │
00:00:45 #1218 [Verbose] > │ let v20 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v19 │
00:00:45 #1219 [Verbose] > │ let v21 : string = "String::from(v20)" │
00:00:45 #1220 [Verbose] > │ let v22 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v21 │
00:00:45 #1221 [Verbose] > │ let v23 : string = method7() │
00:00:45 #1222 [Verbose] > │ let v24 : string = $"fable_library_rust::String_::LrcStr::as_str(&v23)" │
00:00:45 #1223 [Verbose] > │ let v25 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v24 │
00:00:45 #1224 [Verbose] > │ let v26 : string = method4() │
00:00:45 #1225 [Verbose] > │ let v27 : string = $"fable_library_rust::String_::LrcStr::as_str(&v26)" │
00:00:45 #1226 [Verbose] > │ let v28 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v27 │
00:00:45 #1227 [Verbose] > │ let v29 : string = "v22 + v25 + v28" │
00:00:45 #1228 [Verbose] > │ let v30 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v29 │
00:00:45 #1229 [Verbose] > │ let v31 : std_string_String = method5(v30) │
00:00:45 #1230 [Verbose] > │ let v32 : string = "fable_library_rust::String_::fromString(v31)" │
00:00:45 #1231 [Verbose] > │ let v33 : string = Fable.Core.RustInterop.emitRustExpr () v32 │
00:00:45 #1232 [Verbose] > │ let v34 : string = method6(v33) │
00:00:45 #1233 [Verbose] > │ let v35 : string = method2(v34) │
00:00:45 #1234 [Verbose] > │ let v36 : string = $"fable_library_rust::String_::LrcStr::as_str(&v35)" │
00:00:45 #1235 [Verbose] > │ let v37 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v36 │
00:00:45 #1236 [Verbose] > │ let v38 : string = "String::from(v37)" │
00:00:45 #1237 [Verbose] > │ let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v38 │
00:00:45 #1238 [Verbose] > │ let v40 : string = method8() │
00:00:45 #1239 [Verbose] > │ let v41 : string = $"fable_library_rust::String_::LrcStr::as_str(&v40)" │
00:00:45 #1240 [Verbose] > │ let v42 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v41 │
00:00:45 #1241 [Verbose] > │ let v43 : string = method4() │
00:00:45 #1242 [Verbose] > │ let v44 : string = $"fable_library_rust::String_::LrcStr::as_str(&v43)" │
00:00:45 #1243 [Verbose] > │ let v45 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v44 │
00:00:45 #1244 [Verbose] > │ let v46 : string = "v39 + v42 + v45" │
00:00:45 #1245 [Verbose] > │ let v47 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v46 │
00:00:45 #1246 [Verbose] > │ let v48 : std_string_String = method5(v47) │
00:00:45 #1247 [Verbose] > │ let v49 : string = "fable_library_rust::String_::fromString(v48)" │
00:00:45 #1248 [Verbose] > │ let v50 : string = Fable.Core.RustInterop.emitRustExpr () v49 │
00:00:45 #1249 [Verbose] > │ let v51 : string = $"%A{v50}" │
00:00:45 #1250 [Verbose] > │ System.Console.WriteLine v51 │
00:00:45 #1251 [Verbose] > │ let v53 : bool = v50 = "1\n2\n3\n" │
00:00:45 #1252 [Verbose] > │ let v55 : bool = │
00:00:45 #1253 [Verbose] > │ if v53 then │
00:00:45 #1254 [Verbose] > │ true │
00:00:45 #1255 [Verbose] > │ else │
00:00:45 #1256 [Verbose] > │ method9(v53) │
00:00:45 #1257 [Verbose] > │ let v56 : string = "1\n2\n3\n" │
00:00:45 #1258 [Verbose] > │ let v57 : string = $"__expect / actual: %A{v50} / expected: %A{v56}" │
00:00:45 #1259 [Verbose] > │ let v58 : bool = v55 = false │
00:00:45 #1260 [Verbose] > │ if v58 then │
00:00:45 #1261 [Verbose] > │ failwith<unit> v57 │
00:00:45 #1262 [Verbose] > │ method0() │
00:00:45 #1263 [Verbose] > │ │
00:00:45 #1264 [Verbose] > │ │
00:00:45 #1265 [Verbose] > │ .rs: │
00:00:45 #1266 [Verbose] > │ #![allow(dead_code,)] │
00:00:45 #1267 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:45 #1268 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:45 #1269 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:45 #1270 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:45 #1271 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:45 #1272 [Verbose] > │ #![allow(unused_imports,)] │
00:00:45 #1273 [Verbose] > │ #![allow(unused_macros,)] │
00:00:45 #1274 [Verbose] > │ #![allow(unused_parens,)] │
00:00:45 #1275 [Verbose] > │ #![allow(unused_variables,)] │
00:00:45 #1276 [Verbose] > │ mod module_ccfa04bf { │
00:00:45 #1277 [Verbose] > │ pub mod Spiral_eval { │
00:00:45 #1278 [Verbose] > │ use super::*; │
00:00:45 #1279 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:45 #1280 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:45 #1281 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:45 #1282 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:45 #1283 [Verbose] > │ pub fn method1() -> string { string("") } │
00:00:45 #1284 [Verbose] > │ pub fn method2(v0: string) -> string { v0 } │
00:00:45 #1285 [Verbose] > │ pub fn method3() -> string { string("1") } │
00:00:45 #1286 [Verbose] > │ pub fn method4() -> string { string("\n") } │
00:00:45 #1287 [Verbose] > │ pub fn method5(v0: std::string::String) -> std::string::String { v0 │
00:00:45 #1288 [Verbose] > │ } │
00:00:45 #1289 [Verbose] > │ pub fn method6(v0: string) -> string { v0 } │
00:00:45 #1290 [Verbose] > │ pub fn method7() -> string { string("2") } │
00:00:45 #1291 [Verbose] > │ pub fn method8() -> string { string("3") } │
00:00:45 #1292 [Verbose] > │ pub fn method9(v0: bool) -> bool { v0 } │
00:00:45 #1293 [Verbose] > │ pub fn method0() { │
00:00:45 #1294 [Verbose] > │ let v1: string = Spiral_eval::method2(Spiral_eval::method1()); │
00:00:45 #1295 [Verbose] > │ let v3: &str = fable_library_rust::String_::LrcStr::as_str(&v1); │
00:00:45 #1296 [Verbose] > │ let v5: std::string::String = String::from(v3); │
00:00:45 #1297 [Verbose] > │ let v6: string = Spiral_eval::method3(); │
00:00:45 #1298 [Verbose] > │ let v8: &str = fable_library_rust::String_::LrcStr::as_str(&v6); │
00:00:45 #1299 [Verbose] > │ let v9: string = Spiral_eval::method4(); │
00:00:45 #1300 [Verbose] > │ let v11: &str = │
00:00:45 #1301 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v9); │
00:00:45 #1302 [Verbose] > │ let v14: std::string::String = │
00:00:45 #1303 [Verbose] > │ Spiral_eval::method5(v5 + v8 + v11); │
00:00:45 #1304 [Verbose] > │ let v18: string = │
00:00:45 #1305 [Verbose] > │ │
00:00:45 #1306 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │
00:00:45 #1307 [Verbose] > │ tring(v14))); │
00:00:45 #1308 [Verbose] > │ let v20: &str = │
00:00:45 #1309 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v18); │
00:00:45 #1310 [Verbose] > │ let v22: std::string::String = String::from(v20); │
00:00:45 #1311 [Verbose] > │ let v23: string = Spiral_eval::method7(); │
00:00:45 #1312 [Verbose] > │ let v25: &str = │
00:00:45 #1313 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v23); │
00:00:45 #1314 [Verbose] > │ let v26: string = Spiral_eval::method4(); │
00:00:45 #1315 [Verbose] > │ let v28: &str = │
00:00:45 #1316 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v26); │
00:00:45 #1317 [Verbose] > │ let v31: std::string::String = │
00:00:45 #1318 [Verbose] > │ Spiral_eval::method5(v22 + v25 + v28); │
00:00:45 #1319 [Verbose] > │ let v35: string = │
00:00:45 #1320 [Verbose] > │ │
00:00:45 #1321 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │
00:00:45 #1322 [Verbose] > │ tring(v31))); │
00:00:45 #1323 [Verbose] > │ let v37: &str = │
00:00:45 #1324 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v35); │
00:00:45 #1325 [Verbose] > │ let v39: std::string::String = String::from(v37); │
00:00:45 #1326 [Verbose] > │ let v40: string = Spiral_eval::method8(); │
00:00:45 #1327 [Verbose] > │ let v42: &str = │
00:00:45 #1328 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v40); │
00:00:45 #1329 [Verbose] > │ let v43: string = Spiral_eval::method4(); │
00:00:45 #1330 [Verbose] > │ let v45: &str = │
00:00:45 #1331 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v43); │
00:00:45 #1332 [Verbose] > │ let v48: std::string::String = │
00:00:45 #1333 [Verbose] > │ Spiral_eval::method5(v39 + v42 + v45); │
00:00:45 #1334 [Verbose] > │ let v50: string = fable_library_rust::String_::fromString(v48); │
00:00:45 #1335 [Verbose] > │ let v51: string = sprintf!("{:?}", v50.clone()); │
00:00:45 #1336 [Verbose] > │ printfn!("{0}", v51); │
00:00:45 #1337 [Verbose] > │ { │
00:00:45 #1338 [Verbose] > │ let v53: bool = v50.clone() == string("1\n2\n3\n"); │
00:00:45 #1339 [Verbose] > │ if (if v53 { true } else { Spiral_eval::method9(v53) }) == │
00:00:45 #1340 [Verbose] > │ false { │
00:00:45 #1341 [Verbose] > │ panic!("{}", │
00:00:45 #1342 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:45 #1343 [Verbose] > │ {:?}", v50, string("1\n2\n3\n"))); │
00:00:45 #1344 [Verbose] > │ } │
00:00:45 #1345 [Verbose] > │ } │
00:00:45 #1346 [Verbose] > │ } │
00:00:45 #1347 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:45 #1348 [Verbose] > │ } │
00:00:45 #1349 [Verbose] > │ } │
00:00:45 #1350 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:45 #1351 [Verbose] > │ │
00:00:45 #1352 [Verbose] > │ │
00:00:45 #1353 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 #1354 [Verbose] >
00:00:45 #1355 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 #1356 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 #1357 [Verbose] > │ ## concat │
00:00:45 #1358 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 #1359 [Verbose] >
00:00:45 #1360 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 #1361 [Verbose] > inl concat (a : string) (b : a _ _) : string =
00:00:45 #1362 [Verbose] > $"!b |> String.concat !a"
00:00:46 #1363 [Verbose] >
00:00:46 #1364 [Verbose] > ╭─[ 262.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:46 #1365 [Verbose] > │ () │
00:00:46 #1366 [Verbose] > │ │
00:00:46 #1367 [Verbose] > │ │
00:00:46 #1368 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #1369 [Verbose] >
00:00:46 #1370 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 #1371 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 #1372 [Verbose] > │ ## join' │
00:00:46 #1373 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #1374 [Verbose] >
00:00:46 #1375 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 #1376 [Verbose] > inl join' (concat : string) (s : a _ string) : string =
00:00:46 #1377 [Verbose] > $"System.String.Join (!concat, !s)"
00:00:46 #1378 [Verbose] >
00:00:46 #1379 [Verbose] > ╭─[ 325.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:46 #1380 [Verbose] > │ () │
00:00:46 #1381 [Verbose] > │ │
00:00:46 #1382 [Verbose] > │ │
00:00:46 #1383 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #1384 [Verbose] >
00:00:46 #1385 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 #1386 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 #1387 [Verbose] > │ ## to_char_array │
00:00:46 #1388 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #1389 [Verbose] >
00:00:46 #1390 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 #1391 [Verbose] > inl to_char_array (str : string) : a i32 char =
00:00:46 #1392 [Verbose] > am.init (str |> sm.length) (fun i => sm.index str i)
00:00:46 #1393 [Verbose] >
00:00:46 #1394 [Verbose] > ╭─[ 396.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:46 #1395 [Verbose] > │ () │
00:00:46 #1396 [Verbose] > │ │
00:00:46 #1397 [Verbose] > │ │
00:00:46 #1398 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #1399 [Verbose] >
00:00:46 #1400 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 #1401 [Verbose] > // // test
00:00:46 #1402 [Verbose] >
00:00:46 #1403 [Verbose] > "abc"
00:00:46 #1404 [Verbose] > |> to_char_array
00:00:46 #1405 [Verbose] > |> _assert_eq (a ;[['a'; 'b'; 'c']])
00:00:47 #1406 [Verbose] >
00:00:47 #1407 [Verbose] > ╭─[ 496.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 #1408 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:47 #1409 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:47 #1410 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:47 #1411 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:47 #1412 [Verbose] > │ v2 │
00:00:47 #1413 [Verbose] > │ and method2 (v0 : (char [])) : (char []) = │
00:00:47 #1414 [Verbose] > │ v0 │
00:00:47 #1415 [Verbose] > │ and method3 (v0 : (char []), v1 : (char []), v2 : int32) : bool = │
00:00:47 #1416 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:47 #1417 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:47 #1418 [Verbose] > │ if v4 then │
00:00:47 #1419 [Verbose] > │ let v5 : char = v0.[int v2] │
00:00:47 #1420 [Verbose] > │ let v6 : char = v1.[int v2] │
00:00:47 #1421 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:47 #1422 [Verbose] > │ if v7 then │
00:00:47 #1423 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:47 #1424 [Verbose] > │ method3(v0, v1, v8) │
00:00:47 #1425 [Verbose] > │ else │
00:00:47 #1426 [Verbose] > │ false │
00:00:47 #1427 [Verbose] > │ else │
00:00:47 #1428 [Verbose] > │ true │
00:00:47 #1429 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:47 #1430 [Verbose] > │ v0 │
00:00:47 #1431 [Verbose] > │ and method0 () : unit = │
00:00:47 #1432 [Verbose] > │ let v0 : (char []) = Array.zeroCreate<char> (3) │
00:00:47 #1433 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:47 #1434 [Verbose] > │ while method1(v1) do │
00:00:47 #1435 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:47 #1436 [Verbose] > │ let v4 : char = "abc".[int v3] │
00:00:47 #1437 [Verbose] > │ v0.[int v3] <- v4 │
00:00:47 #1438 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:47 #1439 [Verbose] > │ v1.l0 <- v5 │
00:00:47 #1440 [Verbose] > │ () │
00:00:47 #1441 [Verbose] > │ let v6 : (char []) = [|'a'; 'b'; 'c'|] │
00:00:47 #1442 [Verbose] > │ let v7 : (char []) = method2(v6) │
00:00:47 #1443 [Verbose] > │ let v8 : string = $"%A{v0}" │
00:00:47 #1444 [Verbose] > │ System.Console.WriteLine v8 │
00:00:47 #1445 [Verbose] > │ let v9 : int32 = v0.Length │
00:00:47 #1446 [Verbose] > │ let v10 : int32 = v7.Length │
00:00:47 #1447 [Verbose] > │ let v11 : bool = v9 = v10 │
00:00:47 #1448 [Verbose] > │ let v12 : bool = v11 <> true │
00:00:47 #1449 [Verbose] > │ let v15 : bool = │
00:00:47 #1450 [Verbose] > │ if v12 then │
00:00:47 #1451 [Verbose] > │ false │
00:00:47 #1452 [Verbose] > │ else │
00:00:47 #1453 [Verbose] > │ let v13 : int32 = 0 │
00:00:47 #1454 [Verbose] > │ method3(v0, v7, v13) │
00:00:47 #1455 [Verbose] > │ let v17 : bool = │
00:00:47 #1456 [Verbose] > │ if v15 then │
00:00:47 #1457 [Verbose] > │ true │
00:00:47 #1458 [Verbose] > │ else │
00:00:47 #1459 [Verbose] > │ method4(v15) │
00:00:47 #1460 [Verbose] > │ let v18 : string = $"__expect / actual: %A{v0} / expected: %A{v7}" │
00:00:47 #1461 [Verbose] > │ let v19 : bool = v17 = false │
00:00:47 #1462 [Verbose] > │ if v19 then │
00:00:47 #1463 [Verbose] > │ failwith<unit> v18 │
00:00:47 #1464 [Verbose] > │ method0() │
00:00:47 #1465 [Verbose] > │ │
00:00:47 #1466 [Verbose] > │ [|'a'; 'b'; 'c'|] │
00:00:47 #1467 [Verbose] > │ │
00:00:47 #1468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #1469 [Verbose] >
00:00:47 #1470 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 #1471 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 #1472 [Verbose] > │ ## to_char_list │
00:00:47 #1473 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #1474 [Verbose] >
00:00:47 #1475 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #1476 [Verbose] > inl to_char_list (str : string) : list char =
00:00:47 #1477 [Verbose] > listm.init (str |> sm.length) (fun (i : i64) => sm.index str i)
00:00:47 #1478 [Verbose] >
00:00:47 #1479 [Verbose] > ╭─[ 218.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 #1480 [Verbose] > │ () │
00:00:47 #1481 [Verbose] > │ │
00:00:47 #1482 [Verbose] > │ │
00:00:47 #1483 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #1484 [Verbose] >
00:00:47 #1485 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #1486 [Verbose] > // // test
00:00:47 #1487 [Verbose] >
00:00:47 #1488 [Verbose] > "abc"
00:00:47 #1489 [Verbose] > |> to_char_list
00:00:47 #1490 [Verbose] > |> _assert_eq [['a'; 'b'; 'c']]
00:00:47 #1491 [Verbose] >
00:00:47 #1492 [Verbose] > ╭─[ 367.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 #1493 [Verbose] > │ type UH0 = │
00:00:47 #1494 [Verbose] > │ | UH0_0 of char * UH0 │
00:00:47 #1495 [Verbose] > │ | UH0_1 │
00:00:47 #1496 [Verbose] > │ let rec method0 () : unit = │
00:00:47 #1497 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:47 #1498 [Verbose] > │ let v1 : UH0 = UH0_0('c', v0) │
00:00:47 #1499 [Verbose] > │ let v2 : UH0 = UH0_0('b', v1) │
00:00:47 #1500 [Verbose] > │ let v3 : UH0 = UH0_0('a', v2) │
00:00:47 #1501 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:47 #1502 [Verbose] > │ System.Console.WriteLine v4 │
00:00:47 #1503 [Verbose] > │ let v23 : UH0 = UH0_1 │
00:00:47 #1504 [Verbose] > │ let v24 : UH0 = UH0_0('c', v23) │
00:00:47 #1505 [Verbose] > │ let v25 : UH0 = UH0_0('b', v24) │
00:00:47 #1506 [Verbose] > │ let v26 : UH0 = UH0_0('a', v25) │
00:00:47 #1507 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:47 #1508 [Verbose] > │ let v28 : UH0 = UH0_0('c', v27) │
00:00:47 #1509 [Verbose] > │ let v29 : UH0 = UH0_0('b', v28) │
00:00:47 #1510 [Verbose] > │ let v30 : UH0 = UH0_0('a', v29) │
00:00:47 #1511 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}" │
00:00:47 #1512 [Verbose] > │ () │
00:00:47 #1513 [Verbose] > │ method0() │
00:00:47 #1514 [Verbose] > │ │
00:00:47 #1515 [Verbose] > │ UH0_0 ('a', UH0_0 ('b', UH0_0 ('c', UH0_1))) │
00:00:47 #1516 [Verbose] > │ │
00:00:47 #1517 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #1518 [Verbose] >
00:00:47 #1519 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 #1520 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 #1521 [Verbose] > │ ## to_string std_string │
00:00:47 #1522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #1523 [Verbose] >
00:00:47 #1524 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #1525 [Verbose] > open rust
00:00:47 #1526 [Verbose] > instance to_string std_string = from_std_string
00:00:48 #1527 [Verbose] >
00:00:48 #1528 [Verbose] > ╭─[ 269.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:48 #1529 [Verbose] > │ () │
00:00:48 #1530 [Verbose] > │ │
00:00:48 #1531 [Verbose] > │ │
00:00:48 #1532 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #1533 [Verbose] > [NbConvertApp] Converting notebook sm'.dib.ipynb to html
00:00:50 #1534 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:50 #1535 [Verbose] > validate(nb)
00:00:51 #1536 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:51 #1537 [Verbose] > return _pygments_highlight(
00:00:52 #1538 [Verbose] > [NbConvertApp] Writing 410660 bytes to sm'.dib.html
00:00:53 #1539 [Debug] executeAsync / exitCode: 0 / output.Length: 99542
00:00:53 #1540 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"listm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # listm │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:03 #13 [Verbose] >
00:00:03 #14 [Verbose] > prototype append t : t -> t -> t
00:00:08 #15 [Verbose] >
00:00:08 #16 [Verbose] > ╭─[ 5.17s - stdout ]───────────────────────────────────────────────────────────╮
00:00:08 #17 [Verbose] > │ () │
00:00:08 #18 [Verbose] > │ │
00:00:08 #19 [Verbose] > │ │
00:00:08 #20 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #21 [Verbose] >
00:00:08 #22 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #23 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #24 [Verbose] > │ ## append │
00:00:08 #25 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #26 [Verbose] >
00:00:08 #27 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #28 [Verbose] > instance append list t =
00:00:08 #29 [Verbose] > listm.append
00:00:09 #30 [Verbose] >
00:00:09 #31 [Verbose] > ╭─[ 362.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #32 [Verbose] > │ () │
00:00:09 #33 [Verbose] > │ │
00:00:09 #34 [Verbose] > │ │
00:00:09 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #36 [Verbose] >
00:00:09 #37 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #38 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #39 [Verbose] > │ ## /@ │
00:00:09 #40 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #41 [Verbose] >
00:00:09 #42 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #43 [Verbose] > inl (/@) a b =
00:00:09 #44 [Verbose] > b |> append a
00:00:09 #45 [Verbose] >
00:00:09 #46 [Verbose] > ╭─[ 278.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #47 [Verbose] > │ () │
00:00:09 #48 [Verbose] > │ │
00:00:09 #49 [Verbose] > │ │
00:00:09 #50 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #51 [Verbose] >
00:00:09 #52 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #53 [Verbose] > // // test
00:00:09 #54 [Verbose] >
00:00:09 #55 [Verbose] > [[ "a"; "b" ]] /@ [[ "c"; "d" ]]
00:00:09 #56 [Verbose] > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:00:11 #57 [Verbose] >
00:00:11 #58 [Verbose] > ╭─[ 1.69s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #59 [Verbose] > │ type UH0 = │
00:00:11 #60 [Verbose] > │ | UH0_0 of string * UH0 │
00:00:11 #61 [Verbose] > │ | UH0_1 │
00:00:11 #62 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #63 [Verbose] > │ let v0 : string = "a" │
00:00:11 #64 [Verbose] > │ let v1 : string = "b" │
00:00:11 #65 [Verbose] > │ let v2 : string = "c" │
00:00:11 #66 [Verbose] > │ let v3 : string = "d" │
00:00:11 #67 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:11 #68 [Verbose] > │ let v5 : UH0 = UH0_0(v3, v4) │
00:00:11 #69 [Verbose] > │ let v6 : UH0 = UH0_0(v2, v5) │
00:00:11 #70 [Verbose] > │ let v7 : UH0 = UH0_0(v1, v6) │
00:00:11 #71 [Verbose] > │ let v8 : UH0 = UH0_0(v0, v7) │
00:00:11 #72 [Verbose] > │ let v9 : string = $"%A{v8}" │
00:00:11 #73 [Verbose] > │ System.Console.WriteLine v9 │
00:00:11 #74 [Verbose] > │ let v35 : UH0 = UH0_1 │
00:00:11 #75 [Verbose] > │ let v36 : UH0 = UH0_0(v3, v35) │
00:00:11 #76 [Verbose] > │ let v37 : UH0 = UH0_0(v2, v36) │
00:00:11 #77 [Verbose] > │ let v38 : UH0 = UH0_0(v1, v37) │
00:00:11 #78 [Verbose] > │ let v39 : UH0 = UH0_0(v0, v38) │
00:00:11 #79 [Verbose] > │ let v40 : UH0 = UH0_1 │
00:00:11 #80 [Verbose] > │ let v41 : UH0 = UH0_0(v3, v40) │
00:00:11 #81 [Verbose] > │ let v42 : UH0 = UH0_0(v2, v41) │
00:00:11 #82 [Verbose] > │ let v43 : UH0 = UH0_0(v1, v42) │
00:00:11 #83 [Verbose] > │ let v44 : UH0 = UH0_0(v0, v43) │
00:00:11 #84 [Verbose] > │ let v45 : string = $"__expect / actual: %A{v39} / expected: %A{v44}" │
00:00:11 #85 [Verbose] > │ () │
00:00:11 #86 [Verbose] > │ method0() │
00:00:11 #87 [Verbose] > │ │
00:00:11 #88 [Verbose] > │ UH0_0 ("a", UH0_0 ("b", UH0_0 ("c", UH0_0 ("d", UH0_1)))) │
00:00:11 #89 [Verbose] > │ │
00:00:11 #90 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #91 [Verbose] >
00:00:11 #92 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #93 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #94 [Verbose] > │ ## init_series │
00:00:11 #95 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #96 [Verbose] >
00:00:11 #97 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #98 [Verbose] > inl init_series start end inc =
00:00:11 #99 [Verbose] > inl total : f64 = conv ((end - start) / inc) + 1
00:00:11 #100 [Verbose] > listm.init total (conv >> (*) inc >> (+) start)
00:00:11 #101 [Verbose] >
00:00:11 #102 [Verbose] > ╭─[ 254.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #103 [Verbose] > │ () │
00:00:11 #104 [Verbose] > │ │
00:00:11 #105 [Verbose] > │ │
00:00:11 #106 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #107 [Verbose] >
00:00:11 #108 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #109 [Verbose] > // // test
00:00:11 #110 [Verbose] >
00:00:11 #111 [Verbose] > init_series 0 1 0.5
00:00:11 #112 [Verbose] > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:00:11 #113 [Verbose] >
00:00:11 #114 [Verbose] > ╭─[ 413.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #115 [Verbose] > │ type UH0 = │
00:00:11 #116 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:11 #117 [Verbose] > │ | UH0_1 │
00:00:11 #118 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #119 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:11 #120 [Verbose] > │ let v1 : UH0 = UH0_0(1.0, v0) │
00:00:11 #121 [Verbose] > │ let v2 : UH0 = UH0_0(0.5, v1) │
00:00:11 #122 [Verbose] > │ let v3 : UH0 = UH0_0(0.0, v2) │
00:00:11 #123 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:11 #124 [Verbose] > │ System.Console.WriteLine v4 │
00:00:11 #125 [Verbose] > │ let v23 : UH0 = UH0_1 │
00:00:11 #126 [Verbose] > │ let v24 : UH0 = UH0_0(1.0, v23) │
00:00:11 #127 [Verbose] > │ let v25 : UH0 = UH0_0(0.5, v24) │
00:00:11 #128 [Verbose] > │ let v26 : UH0 = UH0_0(0.0, v25) │
00:00:11 #129 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:11 #130 [Verbose] > │ let v28 : UH0 = UH0_0(1.0, v27) │
00:00:11 #131 [Verbose] > │ let v29 : UH0 = UH0_0(0.5, v28) │
00:00:11 #132 [Verbose] > │ let v30 : UH0 = UH0_0(0.0, v29) │
00:00:11 #133 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}" │
00:00:11 #134 [Verbose] > │ () │
00:00:11 #135 [Verbose] > │ method0() │
00:00:11 #136 [Verbose] > │ │
00:00:11 #137 [Verbose] > │ UH0_0 (0.0, UH0_0 (0.5, UH0_0 (1.0, UH0_1))) │
00:00:11 #138 [Verbose] > │ │
00:00:11 #139 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #140 [Verbose] >
00:00:11 #141 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #142 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #143 [Verbose] > │ ## try_item │
00:00:11 #144 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #145 [Verbose] >
00:00:11 #146 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #147 [Verbose] > inl rec try_item i = function
00:00:11 #148 [Verbose] > | Cons (x, _) when i = 0 => Some x
00:00:11 #149 [Verbose] > | Cons (_, xs) => try_item (i - 1) xs
00:00:11 #150 [Verbose] > | Nil => None
00:00:12 #151 [Verbose] >
00:00:12 #152 [Verbose] > ╭─[ 286.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #153 [Verbose] > │ () │
00:00:12 #154 [Verbose] > │ │
00:00:12 #155 [Verbose] > │ │
00:00:12 #156 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #157 [Verbose] >
00:00:12 #158 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #159 [Verbose] > // // test
00:00:12 #160 [Verbose] >
00:00:12 #161 [Verbose] > listm.init 10i32 id
00:00:12 #162 [Verbose] > |> try_item 9i32
00:00:12 #163 [Verbose] > |> _assert_eq (Some 9)
00:00:12 #164 [Verbose] >
00:00:12 #165 [Verbose] > ╭─[ 335.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #166 [Verbose] > │ type [<Struct>] US0 = │
00:00:12 #167 [Verbose] > │ | US0_0 │
00:00:12 #168 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:12 #169 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #170 [Verbose] > │ let v0 : US0 = US0_1(9) │
00:00:12 #171 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:12 #172 [Verbose] > │ System.Console.WriteLine v1 │
00:00:12 #173 [Verbose] > │ let v5 : US0 = US0_1(9) │
00:00:12 #174 [Verbose] > │ let v6 : US0 = US0_1(9) │
00:00:12 #175 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:12 #176 [Verbose] > │ () │
00:00:12 #177 [Verbose] > │ method0() │
00:00:12 #178 [Verbose] > │ │
00:00:12 #179 [Verbose] > │ US0_1 9 │
00:00:12 #180 [Verbose] > │ │
00:00:12 #181 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #182 [Verbose] >
00:00:12 #183 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #184 [Verbose] > // // test
00:00:12 #185 [Verbose] >
00:00:12 #186 [Verbose] > listm.init 10i32 id
00:00:12 #187 [Verbose] > |> try_item 10i32
00:00:12 #188 [Verbose] > |> _assert_eq None
00:00:12 #189 [Verbose] >
00:00:12 #190 [Verbose] > ╭─[ 296.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #191 [Verbose] > │ type [<Struct>] US0 = │
00:00:12 #192 [Verbose] > │ | US0_0 │
00:00:12 #193 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:12 #194 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #195 [Verbose] > │ let v0 : US0 = US0_0 │
00:00:12 #196 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:12 #197 [Verbose] > │ System.Console.WriteLine v1 │
00:00:12 #198 [Verbose] > │ let v5 : US0 = US0_0 │
00:00:12 #199 [Verbose] > │ let v6 : US0 = US0_0 │
00:00:12 #200 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:12 #201 [Verbose] > │ () │
00:00:12 #202 [Verbose] > │ method0() │
00:00:12 #203 [Verbose] > │ │
00:00:12 #204 [Verbose] > │ US0_0 │
00:00:12 #205 [Verbose] > │ │
00:00:12 #206 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #207 [Verbose] >
00:00:12 #208 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #209 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #210 [Verbose] > │ ## list_item │
00:00:12 #211 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #212 [Verbose] >
00:00:12 #213 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #214 [Verbose] > inl item i =
00:00:12 #215 [Verbose] > try_item i >> optionm.value
00:00:13 #216 [Verbose] >
00:00:13 #217 [Verbose] > ╭─[ 327.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #218 [Verbose] > │ () │
00:00:13 #219 [Verbose] > │ │
00:00:13 #220 [Verbose] > │ │
00:00:13 #221 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #222 [Verbose] >
00:00:13 #223 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #224 [Verbose] > // // test
00:00:13 #225 [Verbose] >
00:00:13 #226 [Verbose] > listm.init 10i32 id
00:00:13 #227 [Verbose] > |> item 9i32
00:00:13 #228 [Verbose] > |> _assert_eq 9
00:00:13 #229 [Verbose] >
00:00:13 #230 [Verbose] > ╭─[ 262.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #231 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #232 [Verbose] > │ let v0 : string = $"%A{9}" │
00:00:13 #233 [Verbose] > │ System.Console.WriteLine v0 │
00:00:13 #234 [Verbose] > │ let v1 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:13 #235 [Verbose] > │ () │
00:00:13 #236 [Verbose] > │ method0() │
00:00:13 #237 [Verbose] > │ │
00:00:13 #238 [Verbose] > │ 9 │
00:00:13 #239 [Verbose] > │ │
00:00:13 #240 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #241 [Verbose] >
00:00:13 #242 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #243 [Verbose] > // // test
00:00:13 #244 [Verbose] >
00:00:13 #245 [Verbose] > fun () =>
00:00:13 #246 [Verbose] > listm.init 10i32 id
00:00:13 #247 [Verbose] > |> item 10i32
00:00:13 #248 [Verbose] > |> ignore
00:00:13 #249 [Verbose] > |> _throws
00:00:13 #250 [Verbose] > |> optionm.map sm'.format_exception
00:00:13 #251 [Verbose] > |> _assert_eq (Some "System.Exception: Option does not have a value.")
00:00:13 #252 [Verbose] >
00:00:13 #253 [Verbose] > ╭─[ 479.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #254 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #255 [Verbose] > │ | US0_0 │
00:00:13 #256 [Verbose] > │ | US0_1 of f1_0 : exn │
00:00:13 #257 [Verbose] > │ and [<Struct>] US1 = │
00:00:13 #258 [Verbose] > │ | US1_0 │
00:00:13 #259 [Verbose] > │ | US1_1 of f1_0 : string │
00:00:13 #260 [Verbose] > │ let rec closure0 () () : unit = │
00:00:13 #261 [Verbose] > │ let v0 : int32 = failwith<int32> "Option does not have a value." │
00:00:13 #262 [Verbose] > │ () │
00:00:13 #263 [Verbose] > │ and closure1 () (v0 : exn) : US0 = │
00:00:13 #264 [Verbose] > │ US0_1(v0) │
00:00:13 #265 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:13 #266 [Verbose] > │ v0 │
00:00:13 #267 [Verbose] > │ and method0 () : unit = │
00:00:13 #268 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:13 #269 [Verbose] > │ let v1 : US0 = US0_0 │
00:00:13 #270 [Verbose] > │ let v2 : (exn -> US0) = closure1() │
00:00:13 #271 [Verbose] > │ let v3 : US0 = try v0 (); v1 with ex -> ex |> v2 │
00:00:13 #272 [Verbose] > │ let v9 : US1 = │
00:00:13 #273 [Verbose] > │ match v3 with │
00:00:13 #274 [Verbose] > │ | US0_0 -> (* None *) │
00:00:13 #275 [Verbose] > │ US1_0 │
00:00:13 #276 [Verbose] > │ | US0_1(v4) -> (* Some *) │
00:00:13 #277 [Verbose] > │ let v5 : string = $"{v4.GetType ()}: {v4.Message}" │
00:00:13 #278 [Verbose] > │ US1_1(v5) │
00:00:13 #279 [Verbose] > │ let v10 : string = $"%A{v9}" │
00:00:13 #280 [Verbose] > │ System.Console.WriteLine v10 │
00:00:13 #281 [Verbose] > │ let v15 : bool = │
00:00:13 #282 [Verbose] > │ match v9 with │
00:00:13 #283 [Verbose] > │ | US1_1(v13) -> (* Some *) │
00:00:13 #284 [Verbose] > │ let v14 : bool = v13 = "System.Exception: Option does not have a │
00:00:13 #285 [Verbose] > │ value." │
00:00:13 #286 [Verbose] > │ v14 │
00:00:13 #287 [Verbose] > │ | _ -> │
00:00:13 #288 [Verbose] > │ false │
00:00:13 #289 [Verbose] > │ let v17 : bool = │
00:00:13 #290 [Verbose] > │ if v15 then │
00:00:13 #291 [Verbose] > │ true │
00:00:13 #292 [Verbose] > │ else │
00:00:13 #293 [Verbose] > │ method1(v15) │
00:00:13 #294 [Verbose] > │ let v18 : string = "System.Exception: Option does not have a value." │
00:00:13 #295 [Verbose] > │ let v19 : US1 = US1_1(v18) │
00:00:13 #296 [Verbose] > │ let v20 : string = $"__expect / actual: %A{v9} / expected: %A{v19}" │
00:00:13 #297 [Verbose] > │ let v21 : bool = v17 = false │
00:00:13 #298 [Verbose] > │ if v21 then │
00:00:13 #299 [Verbose] > │ failwith<unit> v20 │
00:00:13 #300 [Verbose] > │ method0() │
00:00:13 #301 [Verbose] > │ │
00:00:13 #302 [Verbose] > │ US1_1 "System.Exception: Option does not have a value." │
00:00:13 #303 [Verbose] > │ │
00:00:13 #304 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #305 [Verbose] >
00:00:13 #306 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #307 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #308 [Verbose] > │ ## try_item_ │
00:00:13 #309 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #310 [Verbose] >
00:00:13 #311 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #312 [Verbose] > let rec try_item_ i = function
00:00:13 #313 [Verbose] > | Cons (x, _) when i = 0 => Some x
00:00:13 #314 [Verbose] > | Cons (_, xs) => try_item_ (i - 1) xs
00:00:13 #315 [Verbose] > | Nil => None
00:00:14 #316 [Verbose] >
00:00:14 #317 [Verbose] > ╭─[ 255.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #318 [Verbose] > │ () │
00:00:14 #319 [Verbose] > │ │
00:00:14 #320 [Verbose] > │ │
00:00:14 #321 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #322 [Verbose] >
00:00:14 #323 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #324 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #325 [Verbose] > │ ## item_ │
00:00:14 #326 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #327 [Verbose] >
00:00:14 #328 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #329 [Verbose] > inl item_ i =
00:00:14 #330 [Verbose] > try_item_ i >> optionm.value
00:00:14 #331 [Verbose] >
00:00:14 #332 [Verbose] > ╭─[ 304.51ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #333 [Verbose] > │ () │
00:00:14 #334 [Verbose] > │ │
00:00:14 #335 [Verbose] > │ │
00:00:14 #336 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #337 [Verbose] >
00:00:14 #338 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #339 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #340 [Verbose] > │ ## sum │
00:00:14 #341 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #342 [Verbose] >
00:00:14 #343 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #344 [Verbose] > inl sum list =
00:00:14 #345 [Verbose] > list |> listm.fold (+) 0
00:00:14 #346 [Verbose] >
00:00:14 #347 [Verbose] > ╭─[ 313.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #348 [Verbose] > │ () │
00:00:14 #349 [Verbose] > │ │
00:00:14 #350 [Verbose] > │ │
00:00:14 #351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #352 [Verbose] >
00:00:14 #353 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #354 [Verbose] > // // test
00:00:14 #355 [Verbose] >
00:00:14 #356 [Verbose] > listm.init 10i32 id
00:00:14 #357 [Verbose] > |> sum
00:00:14 #358 [Verbose] > |> _assert_eq 45
00:00:15 #359 [Verbose] >
00:00:15 #360 [Verbose] > ╭─[ 341.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #361 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #362 [Verbose] > │ let v0 : string = $"%A{45}" │
00:00:15 #363 [Verbose] > │ System.Console.WriteLine v0 │
00:00:15 #364 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #365 [Verbose] > │ () │
00:00:15 #366 [Verbose] > │ method0() │
00:00:15 #367 [Verbose] > │ │
00:00:15 #368 [Verbose] > │ 45 │
00:00:15 #369 [Verbose] > │ │
00:00:15 #370 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #371 [Verbose] >
00:00:15 #372 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #373 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #374 [Verbose] > │ ## unzip │
00:00:15 #375 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #376 [Verbose] >
00:00:15 #377 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #378 [Verbose] > inl unzip list =
00:00:15 #379 [Verbose] > (([[]], [[]]), list)
00:00:15 #380 [Verbose] > ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:00:15 #381 [Verbose] > x :: acc_x, y :: acc_y
00:00:15 #382 [Verbose] > |> fun x, y =>
00:00:15 #383 [Verbose] > x |> listm.rev, y |> listm.rev
00:00:15 #384 [Verbose] >
00:00:15 #385 [Verbose] > ╭─[ 350.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #386 [Verbose] > │ () │
00:00:15 #387 [Verbose] > │ │
00:00:15 #388 [Verbose] > │ │
00:00:15 #389 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #390 [Verbose] >
00:00:15 #391 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #392 [Verbose] > // // test
00:00:15 #393 [Verbose] >
00:00:15 #394 [Verbose] > listm.init 10i32 id
00:00:15 #395 [Verbose] > |> listm.map (fun x => x, x)
00:00:15 #396 [Verbose] > |> unzip
00:00:15 #397 [Verbose] > |> fun x, y =>
00:00:15 #398 [Verbose] > x |> sum
00:00:15 #399 [Verbose] > |> _assert_eq 45
00:00:15 #400 [Verbose] >
00:00:15 #401 [Verbose] > y |> sum
00:00:15 #402 [Verbose] > |> _assert_eq 45
00:00:15 #403 [Verbose] >
00:00:15 #404 [Verbose] > ╭─[ 437.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #405 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #406 [Verbose] > │ let v0 : string = $"%A{45}" │
00:00:15 #407 [Verbose] > │ System.Console.WriteLine v0 │
00:00:15 #408 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #409 [Verbose] > │ let v2 : string = $"%A{45}" │
00:00:15 #410 [Verbose] > │ System.Console.WriteLine v2 │
00:00:15 #411 [Verbose] > │ let v3 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #412 [Verbose] > │ () │
00:00:15 #413 [Verbose] > │ method0() │
00:00:15 #414 [Verbose] > │ │
00:00:15 #415 [Verbose] > │ 45 │
00:00:15 #416 [Verbose] > │ 45 │
00:00:15 #417 [Verbose] > │ │
00:00:15 #418 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #419 [Verbose] >
00:00:15 #420 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #421 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #422 [Verbose] > │ ## try_index_of │
00:00:15 #423 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #424 [Verbose] >
00:00:15 #425 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #426 [Verbose] > inl try_index_of item list =
00:00:15 #427 [Verbose] > inl rec loop i = function
00:00:15 #428 [Verbose] > | [[]] => None
00:00:15 #429 [Verbose] > | x :: xs =>
00:00:15 #430 [Verbose] > if x = item
00:00:15 #431 [Verbose] > then Some i
00:00:15 #432 [Verbose] > else loop (i + 1) xs
00:00:15 #433 [Verbose] > loop 0 list
00:00:15 #434 [Verbose] >
00:00:15 #435 [Verbose] > inl index_of item =
00:00:16 #436 [Verbose] > try_index_of item >> optionm.value
00:00:16 #437 [Verbose] >
00:00:16 #438 [Verbose] > inl try_index_of_ item list =
00:00:16 #439 [Verbose] > let rec loop i = function
00:00:16 #440 [Verbose] > | [[]] => None
00:00:16 #441 [Verbose] > | x :: xs =>
00:00:16 #442 [Verbose] > if x = item
00:00:16 #443 [Verbose] > then Some i
00:00:16 #444 [Verbose] > else loop (i + 1) xs
00:00:16 #445 [Verbose] > loop 0 list
00:00:16 #446 [Verbose] >
00:00:16 #447 [Verbose] > inl index_of_ item =
00:00:16 #448 [Verbose] > try_index_of_ item >> optionm.value
00:00:16 #449 [Verbose] >
00:00:16 #450 [Verbose] > inl try_index_of__ item list =
00:00:16 #451 [Verbose] > inl i = mut 0
00:00:16 #452 [Verbose] > inl list = mut list
00:00:16 #453 [Verbose] > inl result = mut None
00:00:16 #454 [Verbose] > let rec loop () =
00:00:16 #455 [Verbose] > match *list with
00:00:16 #456 [Verbose] > | [[]] => result <- None
00:00:16 #457 [Verbose] > | x :: xs =>
00:00:16 #458 [Verbose] > if x = item
00:00:16 #459 [Verbose] > then result <- Some *i
00:00:16 #460 [Verbose] > else
00:00:16 #461 [Verbose] > i <- *i + 1
00:00:16 #462 [Verbose] > list <- xs
00:00:16 #463 [Verbose] > loop ()
00:00:16 #464 [Verbose] > loop ()
00:00:16 #465 [Verbose] > *result
00:00:16 #466 [Verbose] >
00:00:16 #467 [Verbose] > inl index_of__ item =
00:00:16 #468 [Verbose] > try_index_of__ item >> optionm.value
00:00:16 #469 [Verbose] >
00:00:16 #470 [Verbose] > ╭─[ 264.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #471 [Verbose] > │ () │
00:00:16 #472 [Verbose] > │ │
00:00:16 #473 [Verbose] > │ │
00:00:16 #474 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #475 [Verbose] >
00:00:16 #476 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #477 [Verbose] > // // test
00:00:16 #478 [Verbose] >
00:00:16 #479 [Verbose] > listm.init 10i32 id
00:00:16 #480 [Verbose] > |> index_of 5i32
00:00:16 #481 [Verbose] > |> _assert_eq 5i32
00:00:16 #482 [Verbose] >
00:00:16 #483 [Verbose] > ╭─[ 326.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #484 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #485 [Verbose] > │ let v0 : string = $"%A{5}" │
00:00:16 #486 [Verbose] > │ System.Console.WriteLine v0 │
00:00:16 #487 [Verbose] > │ let v1 : string = $"__expect / actual: %A{5} / expected: %A{5}" │
00:00:16 #488 [Verbose] > │ () │
00:00:16 #489 [Verbose] > │ method0() │
00:00:16 #490 [Verbose] > │ │
00:00:16 #491 [Verbose] > │ 5 │
00:00:16 #492 [Verbose] > │ │
00:00:16 #493 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #494 [Verbose] >
00:00:16 #495 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #496 [Verbose] > // // test
00:00:16 #497 [Verbose] >
00:00:16 #498 [Verbose] > listm.init 10i32 id
00:00:16 #499 [Verbose] > |> try_index_of 10i32
00:00:16 #500 [Verbose] > |> _assert_eq (None : option i32)
00:00:16 #501 [Verbose] >
00:00:16 #502 [Verbose] > ╭─[ 314.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #503 [Verbose] > │ type [<Struct>] US0 = │
00:00:16 #504 [Verbose] > │ | US0_0 │
00:00:16 #505 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:16 #506 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #507 [Verbose] > │ let v0 : US0 = US0_0 │
00:00:16 #508 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:16 #509 [Verbose] > │ System.Console.WriteLine v1 │
00:00:16 #510 [Verbose] > │ let v5 : US0 = US0_0 │
00:00:16 #511 [Verbose] > │ let v6 : US0 = US0_0 │
00:00:16 #512 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:16 #513 [Verbose] > │ () │
00:00:16 #514 [Verbose] > │ method0() │
00:00:16 #515 [Verbose] > │ │
00:00:16 #516 [Verbose] > │ US0_0 │
00:00:16 #517 [Verbose] > │ │
00:00:16 #518 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #519 [Verbose] >
00:00:16 #520 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #521 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #522 [Verbose] > │ ## try_find │
00:00:16 #523 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #524 [Verbose] >
00:00:16 #525 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #526 [Verbose] > inl try_find fn list =
00:00:16 #527 [Verbose] > inl rec loop = function
00:00:16 #528 [Verbose] > | [[]] => None
00:00:16 #529 [Verbose] > | x :: xs =>
00:00:16 #530 [Verbose] > if fn x
00:00:16 #531 [Verbose] > then Some x
00:00:16 #532 [Verbose] > else loop xs
00:00:16 #533 [Verbose] > loop list
00:00:16 #534 [Verbose] >
00:00:16 #535 [Verbose] > inl try_find_ fn list =
00:00:16 #536 [Verbose] > let rec loop = function
00:00:16 #537 [Verbose] > | [[]] => None
00:00:16 #538 [Verbose] > | x :: xs =>
00:00:16 #539 [Verbose] > if fn x
00:00:16 #540 [Verbose] > then Some x
00:00:16 #541 [Verbose] > else loop xs
00:00:16 #542 [Verbose] > loop list
00:00:17 #543 [Verbose] >
00:00:17 #544 [Verbose] > ╭─[ 256.63ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #545 [Verbose] > │ () │
00:00:17 #546 [Verbose] > │ │
00:00:17 #547 [Verbose] > │ │
00:00:17 #548 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #549 [Verbose] >
00:00:17 #550 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #551 [Verbose] > // // test
00:00:17 #552 [Verbose] >
00:00:17 #553 [Verbose] > listm.init 10i32 id
00:00:17 #554 [Verbose] > |> try_find ((=) 5i32)
00:00:17 #555 [Verbose] > |> _assert_eq (Some 5i32)
00:00:17 #556 [Verbose] >
00:00:17 #557 [Verbose] > ╭─[ 282.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #558 [Verbose] > │ type [<Struct>] US0 = │
00:00:17 #559 [Verbose] > │ | US0_0 │
00:00:17 #560 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:17 #561 [Verbose] > │ let rec method0 () : unit = │
00:00:17 #562 [Verbose] > │ let v0 : US0 = US0_1(5) │
00:00:17 #563 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:17 #564 [Verbose] > │ System.Console.WriteLine v1 │
00:00:17 #565 [Verbose] > │ let v5 : US0 = US0_1(5) │
00:00:17 #566 [Verbose] > │ let v6 : US0 = US0_1(5) │
00:00:17 #567 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:17 #568 [Verbose] > │ () │
00:00:17 #569 [Verbose] > │ method0() │
00:00:17 #570 [Verbose] > │ │
00:00:17 #571 [Verbose] > │ US0_1 5 │
00:00:17 #572 [Verbose] > │ │
00:00:17 #573 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #574 [Verbose] >
00:00:17 #575 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #576 [Verbose] > inl find x =
00:00:17 #577 [Verbose] > try_find x >> optionm.value
00:00:17 #578 [Verbose] >
00:00:17 #579 [Verbose] > inl find_ x =
00:00:17 #580 [Verbose] > try_find_ x >> optionm.value
00:00:17 #581 [Verbose] >
00:00:17 #582 [Verbose] > ╭─[ 319.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #583 [Verbose] > │ () │
00:00:17 #584 [Verbose] > │ │
00:00:17 #585 [Verbose] > │ │
00:00:17 #586 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #587 [Verbose] >
00:00:17 #588 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #589 [Verbose] > // // test
00:00:17 #590 [Verbose] >
00:00:17 #591 [Verbose] > listm.init 10i32 id
00:00:17 #592 [Verbose] > |> find ((=) 5i32)
00:00:17 #593 [Verbose] > |> _assert_eq 5i32
00:00:18 #594 [Verbose] >
00:00:18 #595 [Verbose] > ╭─[ 317.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #596 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #597 [Verbose] > │ let v0 : string = $"%A{5}" │
00:00:18 #598 [Verbose] > │ System.Console.WriteLine v0 │
00:00:18 #599 [Verbose] > │ let v1 : string = $"__expect / actual: %A{5} / expected: %A{5}" │
00:00:18 #600 [Verbose] > │ () │
00:00:18 #601 [Verbose] > │ method0() │
00:00:18 #602 [Verbose] > │ │
00:00:18 #603 [Verbose] > │ 5 │
00:00:18 #604 [Verbose] > │ │
00:00:18 #605 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #606 [Verbose] >
00:00:18 #607 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #608 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #609 [Verbose] > │ ## choose │
00:00:18 #610 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #611 [Verbose] >
00:00:18 #612 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #613 [Verbose] > inl choose f l =
00:00:18 #614 [Verbose] > (l, [[]])
00:00:18 #615 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:18 #616 [Verbose] > match f x with
00:00:18 #617 [Verbose] > | Some y => y :: acc
00:00:18 #618 [Verbose] > | None => acc
00:00:18 #619 [Verbose] >
00:00:18 #620 [Verbose] > ╭─[ 290.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #621 [Verbose] > │ () │
00:00:18 #622 [Verbose] > │ │
00:00:18 #623 [Verbose] > │ │
00:00:18 #624 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #625 [Verbose] >
00:00:18 #626 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #627 [Verbose] > // // test
00:00:18 #628 [Verbose] >
00:00:18 #629 [Verbose] > listm.init 10i32 id
00:00:18 #630 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:18 #631 [Verbose] > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:00:18 #632 [Verbose] >
00:00:18 #633 [Verbose] > ╭─[ 414.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #634 [Verbose] > │ type UH0 = │
00:00:18 #635 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:18 #636 [Verbose] > │ | UH0_1 │
00:00:18 #637 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #638 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:18 #639 [Verbose] > │ let v1 : UH0 = UH0_0(8, v0) │
00:00:18 #640 [Verbose] > │ let v2 : UH0 = UH0_0(6, v1) │
00:00:18 #641 [Verbose] > │ let v3 : UH0 = UH0_0(4, v2) │
00:00:18 #642 [Verbose] > │ let v4 : UH0 = UH0_0(2, v3) │
00:00:18 #643 [Verbose] > │ let v5 : UH0 = UH0_0(0, v4) │
00:00:18 #644 [Verbose] > │ let v6 : string = $"%A{v5}" │
00:00:18 #645 [Verbose] > │ System.Console.WriteLine v6 │
00:00:18 #646 [Verbose] > │ let v40 : UH0 = UH0_1 │
00:00:18 #647 [Verbose] > │ let v41 : UH0 = UH0_0(8, v40) │
00:00:18 #648 [Verbose] > │ let v42 : UH0 = UH0_0(6, v41) │
00:00:18 #649 [Verbose] > │ let v43 : UH0 = UH0_0(4, v42) │
00:00:18 #650 [Verbose] > │ let v44 : UH0 = UH0_0(2, v43) │
00:00:18 #651 [Verbose] > │ let v45 : UH0 = UH0_0(0, v44) │
00:00:18 #652 [Verbose] > │ let v46 : UH0 = UH0_1 │
00:00:18 #653 [Verbose] > │ let v47 : UH0 = UH0_0(8, v46) │
00:00:18 #654 [Verbose] > │ let v48 : UH0 = UH0_0(6, v47) │
00:00:18 #655 [Verbose] > │ let v49 : UH0 = UH0_0(4, v48) │
00:00:18 #656 [Verbose] > │ let v50 : UH0 = UH0_0(2, v49) │
00:00:18 #657 [Verbose] > │ let v51 : UH0 = UH0_0(0, v50) │
00:00:18 #658 [Verbose] > │ let v52 : string = $"__expect / actual: %A{v45} / expected: %A{v51}" │
00:00:18 #659 [Verbose] > │ () │
00:00:18 #660 [Verbose] > │ method0() │
00:00:18 #661 [Verbose] > │ │
00:00:18 #662 [Verbose] > │ UH0_0 (0, UH0_0 (2, UH0_0 (4, UH0_0 (6, UH0_0 (8, UH0_1))))) │
00:00:18 #663 [Verbose] > │ │
00:00:18 #664 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #665 [Verbose] >
00:00:18 #666 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #667 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #668 [Verbose] > │ ## zip_with │
00:00:18 #669 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #670 [Verbose] >
00:00:18 #671 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #672 [Verbose] > inl zip_with fn xs ys =
00:00:18 #673 [Verbose] > inl rec loop acc xs ys =
00:00:18 #674 [Verbose] > match xs, ys with
00:00:18 #675 [Verbose] > | Cons (x, xs), Cons (y, ys) =>
00:00:18 #676 [Verbose] > loop (fn x y :: acc) xs ys
00:00:18 #677 [Verbose] > | _ => listm.rev acc
00:00:18 #678 [Verbose] > loop [[]] xs ys
00:00:18 #679 [Verbose] >
00:00:18 #680 [Verbose] > inl zip_with_ fn xs ys =
00:00:18 #681 [Verbose] > let rec loop acc xs ys =
00:00:18 #682 [Verbose] > match xs, ys with
00:00:18 #683 [Verbose] > | Cons (x, xs), Cons (y, ys) =>
00:00:18 #684 [Verbose] > loop (fn x y :: acc) xs ys
00:00:18 #685 [Verbose] > | _ => listm.rev acc
00:00:18 #686 [Verbose] > loop [[]] xs ys
00:00:19 #687 [Verbose] >
00:00:19 #688 [Verbose] > ╭─[ 271.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #689 [Verbose] > │ () │
00:00:19 #690 [Verbose] > │ │
00:00:19 #691 [Verbose] > │ │
00:00:19 #692 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #693 [Verbose] >
00:00:19 #694 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #695 [Verbose] > // // test
00:00:19 #696 [Verbose] >
00:00:19 #697 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:00:19 #698 [Verbose] > ||> zip_with (+)
00:00:19 #699 [Verbose] > |> _assert_eq [[ 5; 7; 9 ]]
00:00:19 #700 [Verbose] >
00:00:19 #701 [Verbose] > ╭─[ 377.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #702 [Verbose] > │ type UH0 = │
00:00:19 #703 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:19 #704 [Verbose] > │ | UH0_1 │
00:00:19 #705 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #706 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:19 #707 [Verbose] > │ let v1 : UH0 = UH0_0(9, v0) │
00:00:19 #708 [Verbose] > │ let v2 : UH0 = UH0_0(7, v1) │
00:00:19 #709 [Verbose] > │ let v3 : UH0 = UH0_0(5, v2) │
00:00:19 #710 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:19 #711 [Verbose] > │ System.Console.WriteLine v4 │
00:00:19 #712 [Verbose] > │ let v23 : UH0 = UH0_1 │
00:00:19 #713 [Verbose] > │ let v24 : UH0 = UH0_0(9, v23) │
00:00:19 #714 [Verbose] > │ let v25 : UH0 = UH0_0(7, v24) │
00:00:19 #715 [Verbose] > │ let v26 : UH0 = UH0_0(5, v25) │
00:00:19 #716 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:19 #717 [Verbose] > │ let v28 : UH0 = UH0_0(9, v27) │
00:00:19 #718 [Verbose] > │ let v29 : UH0 = UH0_0(7, v28) │
00:00:19 #719 [Verbose] > │ let v30 : UH0 = UH0_0(5, v29) │
00:00:19 #720 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}" │
00:00:19 #721 [Verbose] > │ () │
00:00:19 #722 [Verbose] > │ method0() │
00:00:19 #723 [Verbose] > │ │
00:00:19 #724 [Verbose] > │ UH0_0 (5, UH0_0 (7, UH0_0 (9, UH0_1))) │
00:00:19 #725 [Verbose] > │ │
00:00:19 #726 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #727 [Verbose] >
00:00:19 #728 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #729 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #730 [Verbose] > │ ## zip │
00:00:19 #731 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #732 [Verbose] >
00:00:19 #733 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #734 [Verbose] > inl zip xs ys =
00:00:19 #735 [Verbose] > zip_with pair xs ys
00:00:19 #736 [Verbose] >
00:00:19 #737 [Verbose] > inl zip_ xs ys =
00:00:19 #738 [Verbose] > zip_with_ pair xs ys
00:00:19 #739 [Verbose] >
00:00:19 #740 [Verbose] > ╭─[ 393.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #741 [Verbose] > │ () │
00:00:19 #742 [Verbose] > │ │
00:00:19 #743 [Verbose] > │ │
00:00:19 #744 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #745 [Verbose] >
00:00:19 #746 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #747 [Verbose] > // // test
00:00:19 #748 [Verbose] >
00:00:19 #749 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:00:19 #750 [Verbose] > ||> zip
00:00:19 #751 [Verbose] > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:00:20 #752 [Verbose] >
00:00:20 #753 [Verbose] > ╭─[ 394.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #754 [Verbose] > │ type UH0 = │
00:00:20 #755 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:20 #756 [Verbose] > │ | UH0_1 │
00:00:20 #757 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #758 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:20 #759 [Verbose] > │ let v1 : UH0 = UH0_0(3, 6, v0) │
00:00:20 #760 [Verbose] > │ let v2 : UH0 = UH0_0(2, 5, v1) │
00:00:20 #761 [Verbose] > │ let v3 : UH0 = UH0_0(1, 4, v2) │
00:00:20 #762 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:20 #763 [Verbose] > │ System.Console.WriteLine v4 │
00:00:20 #764 [Verbose] > │ let v23 : UH0 = UH0_1 │
00:00:20 #765 [Verbose] > │ let v24 : UH0 = UH0_0(3, 6, v23) │
00:00:20 #766 [Verbose] > │ let v25 : UH0 = UH0_0(2, 5, v24) │
00:00:20 #767 [Verbose] > │ let v26 : UH0 = UH0_0(1, 4, v25) │
00:00:20 #768 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:20 #769 [Verbose] > │ let v28 : UH0 = UH0_0(3, 6, v27) │
00:00:20 #770 [Verbose] > │ let v29 : UH0 = UH0_0(2, 5, v28) │
00:00:20 #771 [Verbose] > │ let v30 : UH0 = UH0_0(1, 4, v29) │
00:00:20 #772 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}" │
00:00:20 #773 [Verbose] > │ () │
00:00:20 #774 [Verbose] > │ method0() │
00:00:20 #775 [Verbose] > │ │
00:00:20 #776 [Verbose] > │ UH0_0 (1, 4, UH0_0 (2, 5, UH0_0 (3, 6, UH0_1))) │
00:00:20 #777 [Verbose] > │ │
00:00:20 #778 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #779 [Verbose] >
00:00:20 #780 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #781 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #782 [Verbose] > │ ## indexed │
00:00:20 #783 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #784 [Verbose] >
00:00:20 #785 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #786 [Verbose] > inl indexed list =
00:00:20 #787 [Verbose] > (([[]], 0), list)
00:00:20 #788 [Verbose] > ||> listm.fold fun (acc, i) x =>
00:00:20 #789 [Verbose] > (i, x) :: acc, i + 1
00:00:20 #790 [Verbose] > |> fst
00:00:20 #791 [Verbose] > |> listm.rev
00:00:20 #792 [Verbose] >
00:00:20 #793 [Verbose] > ╭─[ 276.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #794 [Verbose] > │ () │
00:00:20 #795 [Verbose] > │ │
00:00:20 #796 [Verbose] > │ │
00:00:20 #797 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #798 [Verbose] >
00:00:20 #799 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #800 [Verbose] > // // test
00:00:20 #801 [Verbose] >
00:00:20 #802 [Verbose] > listm.init 5i32 ((*) 2)
00:00:20 #803 [Verbose] > |> indexed
00:00:20 #804 [Verbose] > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:00:21 #805 [Verbose] >
00:00:21 #806 [Verbose] > ╭─[ 421.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #807 [Verbose] > │ type UH0 = │
00:00:21 #808 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:21 #809 [Verbose] > │ | UH0_1 │
00:00:21 #810 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #811 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:21 #812 [Verbose] > │ let v1 : UH0 = UH0_0(4, 8, v0) │
00:00:21 #813 [Verbose] > │ let v2 : UH0 = UH0_0(3, 6, v1) │
00:00:21 #814 [Verbose] > │ let v3 : UH0 = UH0_0(2, 4, v2) │
00:00:21 #815 [Verbose] > │ let v4 : UH0 = UH0_0(1, 2, v3) │
00:00:21 #816 [Verbose] > │ let v5 : UH0 = UH0_0(0, 0, v4) │
00:00:21 #817 [Verbose] > │ let v6 : string = $"%A{v5}" │
00:00:21 #818 [Verbose] > │ System.Console.WriteLine v6 │
00:00:21 #819 [Verbose] > │ let v40 : UH0 = UH0_1 │
00:00:21 #820 [Verbose] > │ let v41 : UH0 = UH0_0(4, 8, v40) │
00:00:21 #821 [Verbose] > │ let v42 : UH0 = UH0_0(3, 6, v41) │
00:00:21 #822 [Verbose] > │ let v43 : UH0 = UH0_0(2, 4, v42) │
00:00:21 #823 [Verbose] > │ let v44 : UH0 = UH0_0(1, 2, v43) │
00:00:21 #824 [Verbose] > │ let v45 : UH0 = UH0_0(0, 0, v44) │
00:00:21 #825 [Verbose] > │ let v46 : UH0 = UH0_1 │
00:00:21 #826 [Verbose] > │ let v47 : UH0 = UH0_0(4, 8, v46) │
00:00:21 #827 [Verbose] > │ let v48 : UH0 = UH0_0(3, 6, v47) │
00:00:21 #828 [Verbose] > │ let v49 : UH0 = UH0_0(2, 4, v48) │
00:00:21 #829 [Verbose] > │ let v50 : UH0 = UH0_0(1, 2, v49) │
00:00:21 #830 [Verbose] > │ let v51 : UH0 = UH0_0(0, 0, v50) │
00:00:21 #831 [Verbose] > │ let v52 : string = $"__expect / actual: %A{v45} / expected: %A{v51}" │
00:00:21 #832 [Verbose] > │ () │
00:00:21 #833 [Verbose] > │ method0() │
00:00:21 #834 [Verbose] > │ │
00:00:21 #835 [Verbose] > │ UH0_0 (0, 0, UH0_0 (1, 2, UH0_0 (2, 4, UH0_0 (3, 6, UH0_0 (4, 8, UH0_1))))) │
00:00:21 #836 [Verbose] > │ │
00:00:21 #837 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #838 [Verbose] >
00:00:21 #839 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #840 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #841 [Verbose] > │ ## group_by │
00:00:21 #842 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #843 [Verbose] >
00:00:21 #844 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #845 [Verbose] > inl group_by fn list =
00:00:21 #846 [Verbose] > (list, [[]])
00:00:21 #847 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:21 #848 [Verbose] > inl xk = fn x
00:00:21 #849 [Verbose] > inl found, new_acc =
00:00:21 #850 [Verbose] > ((false, [[]]), acc)
00:00:21 #851 [Verbose] > ||> listm.fold fun (found, acc') (k, xs) =>
00:00:21 #852 [Verbose] > if k = xk
00:00:21 #853 [Verbose] > then true, (k, x :: xs) :: acc'
00:00:21 #854 [Verbose] > else found, (k, xs) :: acc'
00:00:21 #855 [Verbose] > if found
00:00:21 #856 [Verbose] > then new_acc
00:00:21 #857 [Verbose] > else (xk, [[ x ]]) :: new_acc
00:00:21 #858 [Verbose] >
00:00:21 #859 [Verbose] > ╭─[ 273.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #860 [Verbose] > │ () │
00:00:21 #861 [Verbose] > │ │
00:00:21 #862 [Verbose] > │ │
00:00:21 #863 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #864 [Verbose] >
00:00:21 #865 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #866 [Verbose] > // // test
00:00:21 #867 [Verbose] >
00:00:21 #868 [Verbose] > listm.init 10i32 id
00:00:21 #869 [Verbose] > |> group_by (fun x => x % 2 = 0)
00:00:21 #870 [Verbose] > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:00:21 #871 [Verbose] >
00:00:21 #872 [Verbose] > ╭─[ 469.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #873 [Verbose] > │ type UH0 = │
00:00:21 #874 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:21 #875 [Verbose] > │ | UH0_1 │
00:00:21 #876 [Verbose] > │ and UH1 = │
00:00:21 #877 [Verbose] > │ | UH1_0 of bool * UH0 * UH1 │
00:00:21 #878 [Verbose] > │ | UH1_1 │
00:00:21 #879 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #880 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:21 #881 [Verbose] > │ let v1 : UH0 = UH0_0(8, v0) │
00:00:21 #882 [Verbose] > │ let v2 : UH0 = UH0_0(6, v1) │
00:00:21 #883 [Verbose] > │ let v3 : UH0 = UH0_0(4, v2) │
00:00:21 #884 [Verbose] > │ let v4 : UH0 = UH0_0(2, v3) │
00:00:21 #885 [Verbose] > │ let v5 : UH0 = UH0_0(0, v4) │
00:00:21 #886 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:21 #887 [Verbose] > │ let v7 : UH0 = UH0_0(9, v6) │
00:00:21 #888 [Verbose] > │ let v8 : UH0 = UH0_0(7, v7) │
00:00:21 #889 [Verbose] > │ let v9 : UH0 = UH0_0(5, v8) │
00:00:21 #890 [Verbose] > │ let v10 : UH0 = UH0_0(3, v9) │
00:00:21 #891 [Verbose] > │ let v11 : UH0 = UH0_0(1, v10) │
00:00:21 #892 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:21 #893 [Verbose] > │ let v13 : UH1 = UH1_0(false, v11, v12) │
00:00:21 #894 [Verbose] > │ let v14 : UH1 = UH1_0(true, v5, v13) │
00:00:21 #895 [Verbose] > │ let v15 : string = $"%A{v14}" │
00:00:21 #896 [Verbose] > │ System.Console.WriteLine v15 │
00:00:21 #897 [Verbose] > │ let v112 : UH0 = UH0_1 │
00:00:21 #898 [Verbose] > │ let v113 : UH0 = UH0_0(8, v112) │
00:00:21 #899 [Verbose] > │ let v114 : UH0 = UH0_0(6, v113) │
00:00:21 #900 [Verbose] > │ let v115 : UH0 = UH0_0(4, v114) │
00:00:21 #901 [Verbose] > │ let v116 : UH0 = UH0_0(2, v115) │
00:00:21 #902 [Verbose] > │ let v117 : UH0 = UH0_0(0, v116) │
00:00:21 #903 [Verbose] > │ let v118 : UH0 = UH0_1 │
00:00:21 #904 [Verbose] > │ let v119 : UH0 = UH0_0(9, v118) │
00:00:21 #905 [Verbose] > │ let v120 : UH0 = UH0_0(7, v119) │
00:00:21 #906 [Verbose] > │ let v121 : UH0 = UH0_0(5, v120) │
00:00:21 #907 [Verbose] > │ let v122 : UH0 = UH0_0(3, v121) │
00:00:21 #908 [Verbose] > │ let v123 : UH0 = UH0_0(1, v122) │
00:00:21 #909 [Verbose] > │ let v124 : UH1 = UH1_1 │
00:00:21 #910 [Verbose] > │ let v125 : UH1 = UH1_0(false, v123, v124) │
00:00:21 #911 [Verbose] > │ let v126 : UH1 = UH1_0(true, v117, v125) │
00:00:21 #912 [Verbose] > │ let v127 : UH0 = UH0_1 │
00:00:21 #913 [Verbose] > │ let v128 : UH0 = UH0_0(8, v127) │
00:00:21 #914 [Verbose] > │ let v129 : UH0 = UH0_0(6, v128) │
00:00:21 #915 [Verbose] > │ let v130 : UH0 = UH0_0(4, v129) │
00:00:21 #916 [Verbose] > │ let v131 : UH0 = UH0_0(2, v130) │
00:00:21 #917 [Verbose] > │ let v132 : UH0 = UH0_0(0, v131) │
00:00:21 #918 [Verbose] > │ let v133 : UH0 = UH0_1 │
00:00:21 #919 [Verbose] > │ let v134 : UH0 = UH0_0(9, v133) │
00:00:21 #920 [Verbose] > │ let v135 : UH0 = UH0_0(7, v134) │
00:00:21 #921 [Verbose] > │ let v136 : UH0 = UH0_0(5, v135) │
00:00:21 #922 [Verbose] > │ let v137 : UH0 = UH0_0(3, v136) │
00:00:21 #923 [Verbose] > │ let v138 : UH0 = UH0_0(1, v137) │
00:00:21 #924 [Verbose] > │ let v139 : UH1 = UH1_1 │
00:00:21 #925 [Verbose] > │ let v140 : UH1 = UH1_0(false, v138, v139) │
00:00:21 #926 [Verbose] > │ let v141 : UH1 = UH1_0(true, v132, v140) │
00:00:21 #927 [Verbose] > │ let v142 : string = $"__expect / actual: %A{v126} / expected: %A{v141}" │
00:00:21 #928 [Verbose] > │ () │
00:00:21 #929 [Verbose] > │ method0() │
00:00:21 #930 [Verbose] > │ │
00:00:21 #931 [Verbose] > │ UH1_0 │
00:00:21 #932 [Verbose] > │ (true, UH0_0 (0, UH0_0 (2, UH0_0 (4, UH0_0 (6, UH0_0 (8, UH0_1))))), │
00:00:21 #933 [Verbose] > │ UH1_0 │
00:00:21 #934 [Verbose] > │ (false, UH0_0 (1, UH0_0 (3, UH0_0 (5, UH0_0 (7, UH0_0 (9, UH0_1))))), │
00:00:21 #935 [Verbose] > │ UH1_1)) │
00:00:21 #936 [Verbose] > │ │
00:00:21 #937 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #938 [Verbose] >
00:00:21 #939 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #940 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #941 [Verbose] > │ ## forall' │
00:00:21 #942 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #943 [Verbose] >
00:00:21 #944 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #945 [Verbose] > inl forall' fn (head :: tail) =
00:00:21 #946 [Verbose] > (true, tail)
00:00:21 #947 [Verbose] > ||> listm.fold fun acc x =>
00:00:21 #948 [Verbose] > acc && x = head
00:00:22 #949 [Verbose] >
00:00:22 #950 [Verbose] > ╭─[ 334.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #951 [Verbose] > │ () │
00:00:22 #952 [Verbose] > │ │
00:00:22 #953 [Verbose] > │ │
00:00:22 #954 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #955 [Verbose] >
00:00:22 #956 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #957 [Verbose] > // // test
00:00:22 #958 [Verbose] >
00:00:22 #959 [Verbose] > [[ 1i32; 1; 1; 1; 1 ]]
00:00:22 #960 [Verbose] > |> forall' ((=) 1i32)
00:00:22 #961 [Verbose] > |> _assert_eq true
00:00:22 #962 [Verbose] >
00:00:22 #963 [Verbose] > ╭─[ 263.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #964 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #965 [Verbose] > │ let v0 : string = $"%A{true}" │
00:00:22 #966 [Verbose] > │ System.Console.WriteLine v0 │
00:00:22 #967 [Verbose] > │ let v1 : string = $"__expect / actual: %A{true} / expected: %A{true}" │
00:00:22 #968 [Verbose] > │ () │
00:00:22 #969 [Verbose] > │ method0() │
00:00:22 #970 [Verbose] > │ │
00:00:22 #971 [Verbose] > │ true │
00:00:22 #972 [Verbose] > │ │
00:00:22 #973 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #974 [Verbose] >
00:00:22 #975 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #976 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #977 [Verbose] > │ ## last │
00:00:22 #978 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #979 [Verbose] >
00:00:22 #980 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #981 [Verbose] > inl last list =
00:00:22 #982 [Verbose] > list
00:00:22 #983 [Verbose] > |> listm.rev
00:00:22 #984 [Verbose] > |> item 0i32
00:00:22 #985 [Verbose] >
00:00:22 #986 [Verbose] > ╭─[ 268.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #987 [Verbose] > │ () │
00:00:22 #988 [Verbose] > │ │
00:00:22 #989 [Verbose] > │ │
00:00:22 #990 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #991 [Verbose] >
00:00:22 #992 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #993 [Verbose] > // // test
00:00:22 #994 [Verbose] >
00:00:22 #995 [Verbose] > listm.init 10i32 id
00:00:22 #996 [Verbose] > |> last
00:00:22 #997 [Verbose] > |> _assert_eq 9
00:00:22 #998 [Verbose] >
00:00:22 #999 [Verbose] > ╭─[ 264.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1000 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #1001 [Verbose] > │ let v0 : string = $"%A{9}" │
00:00:22 #1002 [Verbose] > │ System.Console.WriteLine v0 │
00:00:22 #1003 [Verbose] > │ let v1 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:22 #1004 [Verbose] > │ () │
00:00:22 #1005 [Verbose] > │ method0() │
00:00:22 #1006 [Verbose] > │ │
00:00:22 #1007 [Verbose] > │ 9 │
00:00:22 #1008 [Verbose] > │ │
00:00:22 #1009 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1010 [Verbose] >
00:00:22 #1011 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #1012 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #1013 [Verbose] > │ ## try_pick │
00:00:22 #1014 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1015 [Verbose] >
00:00:22 #1016 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #1017 [Verbose] > inl try_pick fn list =
00:00:22 #1018 [Verbose] > inl rec body fn = function
00:00:22 #1019 [Verbose] > | [[]] => None
00:00:22 #1020 [Verbose] > | x :: xs =>
00:00:22 #1021 [Verbose] > match fn x with
00:00:22 #1022 [Verbose] > | Some y => Some y
00:00:22 #1023 [Verbose] > | None => loop xs
00:00:22 #1024 [Verbose] > and inl loop list =
00:00:22 #1025 [Verbose] > if var_is list |> not
00:00:22 #1026 [Verbose] > then body fn list
00:00:22 #1027 [Verbose] > else
00:00:23 #1028 [Verbose] > inl fn = join fn
00:00:23 #1029 [Verbose] > inl list = dyn list
00:00:23 #1030 [Verbose] > join body fn list
00:00:23 #1031 [Verbose] > loop list
00:00:23 #1032 [Verbose] >
00:00:23 #1033 [Verbose] > ╭─[ 260.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #1034 [Verbose] > │ () │
00:00:23 #1035 [Verbose] > │ │
00:00:23 #1036 [Verbose] > │ │
00:00:23 #1037 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1038 [Verbose] >
00:00:23 #1039 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #1040 [Verbose] > // // test
00:00:23 #1041 [Verbose] >
00:00:23 #1042 [Verbose] > listm.init 10i32 id
00:00:23 #1043 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:00:23 #1044 [Verbose] > |> _assert_eq (Some 5i32)
00:00:23 #1045 [Verbose] >
00:00:23 #1046 [Verbose] > ╭─[ 402.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #1047 [Verbose] > │ type [<Struct>] US0 = │
00:00:23 #1048 [Verbose] > │ | US0_0 │
00:00:23 #1049 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:23 #1050 [Verbose] > │ let rec method0 () : unit = │
00:00:23 #1051 [Verbose] > │ let v0 : US0 = US0_1(5) │
00:00:23 #1052 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:23 #1053 [Verbose] > │ System.Console.WriteLine v1 │
00:00:23 #1054 [Verbose] > │ let v5 : US0 = US0_1(5) │
00:00:23 #1055 [Verbose] > │ let v6 : US0 = US0_1(5) │
00:00:23 #1056 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:23 #1057 [Verbose] > │ () │
00:00:23 #1058 [Verbose] > │ method0() │
00:00:23 #1059 [Verbose] > │ │
00:00:23 #1060 [Verbose] > │ US0_1 5 │
00:00:23 #1061 [Verbose] > │ │
00:00:23 #1062 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1063 [Verbose] > [NbConvertApp] Converting notebook listm'.dib.ipynb to html
00:00:26 #1064 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:26 #1065 [Verbose] > validate(nb)
00:00:27 #1066 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:27 #1067 [Verbose] > return _pygments_highlight(
00:00:27 #1068 [Verbose] > [NbConvertApp] Writing 366922 bytes to listm'.dib.html
00:00:28 #1069 [Debug] executeAsync / exitCode: 0 / output.Length: 62183
00:00:28 #1070 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 benchmark.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:04 #3 [Verbose] >
00:00:04 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #6 [Verbose] > │ ## benchmark (Polyglot) │
00:00:04 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #8 [Verbose] >
00:00:04 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #10 [Verbose] > // // test
00:00:04 #11 [Verbose] >
00:00:04 #12 [Verbose] > open testing
00:00:12 #13 [Verbose] >
00:00:12 #14 [Verbose] > ╭─[ 8.73s - stdout ]───────────────────────────────────────────────────────────╮
00:00:12 #15 [Verbose] > │ () │
00:00:12 #16 [Verbose] > │ │
00:00:12 #17 [Verbose] > │ │
00:00:12 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #19 [Verbose] >
00:00:12 #20 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #21 [Verbose] > inl (/@) x = listm'.(/@) x
00:00:13 #22 [Verbose] >
00:00:13 #23 [Verbose] > ╭─[ 990.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #24 [Verbose] > │ () │
00:00:13 #25 [Verbose] > │ │
00:00:13 #26 [Verbose] > │ │
00:00:13 #27 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #28 [Verbose] >
00:00:13 #29 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #30 [Verbose] > inl gc_collect () =
00:00:13 #31 [Verbose] > run_target function
00:00:13 #32 [Verbose] > | Fsharp _ => fun () => $"System.GC.Collect ()"
00:00:13 #33 [Verbose] > | _ => fun () => ()
00:00:13 #34 [Verbose] >
00:00:13 #35 [Verbose] > inl printfn x =
00:00:13 #36 [Verbose] > console.write_line x
00:00:13 #37 [Verbose] >
00:00:13 #38 [Verbose] > nominal stopwatch = $"System.Diagnostics.Stopwatch"
00:00:13 #39 [Verbose] >
00:00:13 #40 [Verbose] > inl stopwatch () : stopwatch =
00:00:13 #41 [Verbose] > $"`stopwatch" ()
00:00:13 #42 [Verbose] >
00:00:13 #43 [Verbose] > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:00:13 #44 [Verbose] > $"!stopwatch.ElapsedMilliseconds"
00:00:13 #45 [Verbose] >
00:00:13 #46 [Verbose] > inl stopwatch_start (stopwatch : stopwatch) : () =
00:00:13 #47 [Verbose] > $"!stopwatch.Start ()"
00:00:14 #48 [Verbose] >
00:00:14 #49 [Verbose] > ╭─[ 422.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #50 [Verbose] > │ () │
00:00:14 #51 [Verbose] > │ │
00:00:14 #52 [Verbose] > │ │
00:00:14 #53 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #54 [Verbose] >
00:00:14 #55 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #56 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #57 [Verbose] > │ ## test_case_result │
00:00:14 #58 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #59 [Verbose] >
00:00:14 #60 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #61 [Verbose] > type test_case_result =
00:00:14 #62 [Verbose] > {
00:00:14 #63 [Verbose] > Input : string
00:00:14 #64 [Verbose] > Expected : string
00:00:14 #65 [Verbose] > Result : string
00:00:14 #66 [Verbose] > TimeList : a u64 i64
00:00:14 #67 [Verbose] > }
00:00:14 #68 [Verbose] >
00:00:14 #69 [Verbose] > ╭─[ 510.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #70 [Verbose] > │ () │
00:00:14 #71 [Verbose] > │ │
00:00:14 #72 [Verbose] > │ │
00:00:14 #73 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #74 [Verbose] >
00:00:14 #75 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #76 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #77 [Verbose] > │ ## run │
00:00:14 #78 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #79 [Verbose] >
00:00:14 #80 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #81 [Verbose] > inl run forall input expected.
00:00:14 #82 [Verbose] > count
00:00:14 #83 [Verbose] > (solutions : list (string * (input -> expected)))
00:00:14 #84 [Verbose] > ((input, expected) : (input * expected))
00:00:14 #85 [Verbose] > : test_case_result
00:00:14 #86 [Verbose] > =
00:00:14 #87 [Verbose] > inl input_str = input |> sm'.format_debug
00:00:14 #88 [Verbose] >
00:00:14 #89 [Verbose] > printfn ""
00:00:14 #90 [Verbose] > printfn ($"$\"Solution: {!input_str} \"" : string)
00:00:14 #91 [Verbose] >
00:00:14 #92 [Verbose] > inl performance_invoke (fn : () -> expected) =
00:00:14 #93 [Verbose] > gc_collect ()
00:00:14 #94 [Verbose] > inl stopwatch = stopwatch ()
00:00:14 #95 [Verbose] > stopwatch |> stopwatch_start
00:00:14 #96 [Verbose] > inl time1 = stopwatch |> stopwatch_elapsed_milliseconds
00:00:14 #97 [Verbose] > inl result : expected =
00:00:14 #98 [Verbose] > am'.init_series 0 count 1i32
00:00:14 #99 [Verbose] > |> am'.parallel_map fun _n => fn ()
00:00:14 #100 [Verbose] > |> am'.last
00:00:14 #101 [Verbose] > inl time2 = (stopwatch |> stopwatch_elapsed_milliseconds) - time1
00:00:14 #102 [Verbose] > result, time2
00:00:14 #103 [Verbose] >
00:00:14 #104 [Verbose] > inl results_with_time : a u64 _ =
00:00:14 #105 [Verbose] > solutions
00:00:14 #106 [Verbose] > |> listm'.indexed
00:00:14 #107 [Verbose] > |> listm.toArray
00:00:14 #108 [Verbose] > |> am.map fun ((i : i32), (test_name, solution)) =>
00:00:14 #109 [Verbose] > inl result, time = performance_invoke fun () => solution input
00:00:14 #110 [Verbose] > printfn ($"$\"Test case {!i + 1}. {!test_name}. Time: {!time} \"" :
00:00:14 #111 [Verbose] > string)
00:00:14 #112 [Verbose] > result, time
00:00:14 #113 [Verbose] >
00:00:14 #114 [Verbose] > match results_with_time |> am.map fst with
00:00:14 #115 [Verbose] > | array when length array <= 1 => ()
00:00:14 #116 [Verbose] > | array when array |> am.forall' ((=) (index array 0)) => ()
00:00:14 #117 [Verbose] > | results => failwith ($"$\"Challenge error: {!results}\"" : string)
00:00:14 #118 [Verbose] >
00:00:14 #119 [Verbose] > {
00:00:14 #120 [Verbose] > Input = input_str
00:00:14 #121 [Verbose] > Expected = expected |> sm'.format_debug
00:00:14 #122 [Verbose] > Result = results_with_time |> am.map fst |> fun array => index array 0
00:00:14 #123 [Verbose] > |> sm'.format_debug
00:00:14 #124 [Verbose] > TimeList = results_with_time |> am.map snd
00:00:14 #125 [Verbose] > }
00:00:15 #126 [Verbose] >
00:00:15 #127 [Verbose] > ╭─[ 307.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #128 [Verbose] > │ () │
00:00:15 #129 [Verbose] > │ │
00:00:15 #130 [Verbose] > │ │
00:00:15 #131 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #132 [Verbose] >
00:00:15 #133 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #134 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #135 [Verbose] > │ ## run_all │
00:00:15 #136 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #137 [Verbose] >
00:00:15 #138 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #139 [Verbose] > inl run_all forall input expected.
00:00:15 #140 [Verbose] > test_name
00:00:15 #141 [Verbose] > count
00:00:15 #142 [Verbose] > (solutions : list (string * (input -> expected)))
00:00:15 #143 [Verbose] > test_cases
00:00:15 #144 [Verbose] > =
00:00:15 #145 [Verbose] > printfn ""
00:00:15 #146 [Verbose] > printfn ""
00:00:15 #147 [Verbose] > printfn ($"$\"Test: {!test_name}\"" : string)
00:00:15 #148 [Verbose] > test_cases
00:00:15 #149 [Verbose] > |> listm.toArray
00:00:15 #150 [Verbose] > |> am.map (run count solutions)
00:00:15 #151 [Verbose] >
00:00:15 #152 [Verbose] > ╭─[ 295.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #153 [Verbose] > │ () │
00:00:15 #154 [Verbose] > │ │
00:00:15 #155 [Verbose] > │ │
00:00:15 #156 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #157 [Verbose] >
00:00:15 #158 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #159 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #160 [Verbose] > │ ## sort_result_list │
00:00:15 #161 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #162 [Verbose] >
00:00:15 #163 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #164 [Verbose] > inl sort_result_list results =
00:00:15 #165 [Verbose] > inl table =
00:00:15 #166 [Verbose] > inl rows =
00:00:15 #167 [Verbose] > results
00:00:15 #168 [Verbose] > |> am.map fun (result : test_case_result) =>
00:00:15 #169 [Verbose] > inl best =
00:00:15 #170 [Verbose] > result.TimeList
00:00:15 #171 [Verbose] > |> am'.indexed
00:00:15 #172 [Verbose] > |> am.map fun (i, time) =>
00:00:15 #173 [Verbose] > i + 1i64, time
00:00:15 #174 [Verbose] > |> am'.sort_by snd
00:00:15 #175 [Verbose] > |> fun array => index array 0i32
00:00:15 #176 [Verbose] > |> sm'.format_debug
00:00:15 #177 [Verbose] > inl row =
00:00:15 #178 [Verbose] > [[
00:00:15 #179 [Verbose] > result.Input
00:00:15 #180 [Verbose] > result.Expected
00:00:15 #181 [Verbose] > result.Result
00:00:15 #182 [Verbose] > best
00:00:15 #183 [Verbose] > ]]
00:00:15 #184 [Verbose] > inl color : option console.console_color =
00:00:15 #185 [Verbose] > open console
00:00:15 #186 [Verbose] > match result.Expected = result.Result with
00:00:15 #187 [Verbose] > | true => Some $"`console_color.DarkGreen"
00:00:15 #188 [Verbose] > | false => Some $"`console_color.DarkRed"
00:00:15 #189 [Verbose] > row, color
00:00:15 #190 [Verbose] >
00:00:15 #191 [Verbose] > inl header =
00:00:15 #192 [Verbose] > [[
00:00:15 #193 [Verbose] > [[
00:00:15 #194 [Verbose] > "Input"
00:00:15 #195 [Verbose] > "Expected"
00:00:15 #196 [Verbose] > "Result"
00:00:15 #197 [Verbose] > "Best"
00:00:15 #198 [Verbose] > ]]
00:00:15 #199 [Verbose] > [[
00:00:15 #200 [Verbose] > "---"
00:00:15 #201 [Verbose] > "---"
00:00:15 #202 [Verbose] > "---"
00:00:15 #203 [Verbose] > "---"
00:00:15 #204 [Verbose] > ]]
00:00:15 #205 [Verbose] > ]]
00:00:15 #206 [Verbose] > |> listm.map fun row => row, None
00:00:15 #207 [Verbose] > |> listm.toArray
00:00:15 #208 [Verbose] > rows |> am.append header
00:00:15 #209 [Verbose] >
00:00:15 #210 [Verbose] > inl formattedTable =
00:00:15 #211 [Verbose] > inl lengthMap : mapm.map i32 i64 =
00:00:15 #212 [Verbose] > table
00:00:15 #213 [Verbose] > |> am.map (fst >> listm.toArray)
00:00:15 #214 [Verbose] > |> am'.transpose
00:00:15 #215 [Verbose] > |> am.map fun column =>
00:00:15 #216 [Verbose] > column
00:00:15 #217 [Verbose] > |> am.map sm.length
00:00:15 #218 [Verbose] > |> am'.sort_descending
00:00:15 #219 [Verbose] > |> am'.try_item 0i32
00:00:15 #220 [Verbose] > |> optionm'.default_value 0i64
00:00:15 #221 [Verbose] > |> am'.indexed
00:00:15 #222 [Verbose] > |> fun (x : a i32 _) => x
00:00:15 #223 [Verbose] > |> mapm.of_array
00:00:15 #224 [Verbose] > table
00:00:15 #225 [Verbose] > |> am.map fun (row, color) =>
00:00:15 #226 [Verbose] > inl newRow =
00:00:15 #227 [Verbose] > row
00:00:15 #228 [Verbose] > |> listm'.indexed
00:00:15 #229 [Verbose] > |> listm.map fun (i, cell) =>
00:00:15 #230 [Verbose] > cell |> sm'.pad_right (lengthMap |> mapm.item i |> conv)
00:00:15 #231 [Verbose] > |> listm.toArray
00:00:15 #232 [Verbose] > newRow, color
00:00:15 #233 [Verbose] >
00:00:15 #234 [Verbose] > printfn ""
00:00:15 #235 [Verbose] > formattedTable
00:00:15 #236 [Verbose] > |> am.iter fun ((row : a i32 string), color) =>
00:00:15 #237 [Verbose] > match color with
00:00:15 #238 [Verbose] > | Some color => color |> console.set_foreground_color
00:00:15 #239 [Verbose] > | None => console.reset_color ()
00:00:15 #240 [Verbose] >
00:00:15 #241 [Verbose] > printfn (row |> sm'.join' "\t| ")
00:00:15 #242 [Verbose] >
00:00:15 #243 [Verbose] > console.reset_color ()
00:00:15 #244 [Verbose] >
00:00:15 #245 [Verbose] > inl averages : a u64 _ =
00:00:15 #246 [Verbose] > results
00:00:15 #247 [Verbose] > |> am.map fun result =>
00:00:15 #248 [Verbose] > result.TimeList
00:00:15 #249 [Verbose] > |> am.map ($"float" : i64 -> f64)
00:00:15 #250 [Verbose] > |> am'.transpose
00:00:15 #251 [Verbose] > |> am.map am'.average
00:00:15 #252 [Verbose] > |> am.map ($"int64" : f64 -> i64)
00:00:15 #253 [Verbose] > |> am'.indexed
00:00:15 #254 [Verbose] >
00:00:15 #255 [Verbose] > printfn ""
00:00:15 #256 [Verbose] > printfn "Average Ranking "
00:00:15 #257 [Verbose] > averages
00:00:15 #258 [Verbose] > |> am'.sort_by snd
00:00:15 #259 [Verbose] > |> am.iter fun ((i : i32), avg) =>
00:00:15 #260 [Verbose] > printfn ($"$\"Test case %d{!i + 1}. Average Time: %A{!avg} \"" :
00:00:15 #261 [Verbose] > string)
00:00:15 #262 [Verbose] >
00:00:15 #263 [Verbose] > ╭─[ 482.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #264 [Verbose] > │ () │
00:00:15 #265 [Verbose] > │ │
00:00:15 #266 [Verbose] > │ │
00:00:15 #267 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #268 [Verbose] >
00:00:15 #269 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #270 [Verbose] > // // test
00:00:15 #271 [Verbose] >
00:00:15 #272 [Verbose] > inl is_fast () =
00:00:15 #273 [Verbose] > false
00:00:16 #274 [Verbose] >
00:00:16 #275 [Verbose] > ╭─[ 543.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #276 [Verbose] > │ () │
00:00:16 #277 [Verbose] > │ │
00:00:16 #278 [Verbose] > │ │
00:00:16 #279 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #280 [Verbose] >
00:00:16 #281 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #282 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #283 [Verbose] > │ ## empty2Tests │
00:00:16 #284 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #285 [Verbose] >
00:00:16 #286 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #287 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #288 [Verbose] > │ Test: Empty2 │
00:00:16 #289 [Verbose] > │ │
00:00:16 #290 [Verbose] > │ Solution: (a, a) │
00:00:16 #291 [Verbose] > │ Test case 1. A. Time: 59L │
00:00:16 #292 [Verbose] > │ │
00:00:16 #293 [Verbose] > │ Solution: (a, a) │
00:00:16 #294 [Verbose] > │ Test case 1. A. Time: 53L │
00:00:16 #295 [Verbose] > │ │
00:00:16 #296 [Verbose] > │ Input | Expected | Result | Best │
00:00:16 #297 [Verbose] > │ --- | --- | --- | --- │
00:00:16 #298 [Verbose] > │ (a, a) | a | a | (1, 59) │
00:00:16 #299 [Verbose] > │ (a, a) | a | a | (1, 53) │
00:00:16 #300 [Verbose] > │ │
00:00:16 #301 [Verbose] > │ Averages │
00:00:16 #302 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:16 #303 [Verbose] > │ │
00:00:16 #304 [Verbose] > │ Ranking │
00:00:16 #305 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:16 #306 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #307 [Verbose] >
00:00:16 #308 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #309 [Verbose] > // // test
00:00:16 #310 [Verbose] >
00:00:16 #311 [Verbose] > inl get_solutions () =
00:00:16 #312 [Verbose] > [[
00:00:16 #313 [Verbose] > "A",
00:00:16 #314 [Verbose] > fun (a, _b) =>
00:00:16 #315 [Verbose] > a
00:00:16 #316 [Verbose] >
00:00:16 #317 [Verbose] > "B",
00:00:16 #318 [Verbose] > fun (_a, b) =>
00:00:16 #319 [Verbose] > b
00:00:16 #320 [Verbose] > ]]
00:00:16 #321 [Verbose] >
00:00:16 #322 [Verbose] > inl rec empty_2_tests () =
00:00:16 #323 [Verbose] > inl test_cases = [[
00:00:16 #324 [Verbose] > ("a", "a"), "a"
00:00:16 #325 [Verbose] > ("b", "b"), "b"
00:00:16 #326 [Verbose] > ]]
00:00:16 #327 [Verbose] >
00:00:16 #328 [Verbose] > inl solutions = get_solutions ()
00:00:16 #329 [Verbose] >
00:00:16 #330 [Verbose] > // inl is_fast () = true
00:00:16 #331 [Verbose] >
00:00:16 #332 [Verbose] > inl count =
00:00:16 #333 [Verbose] > if is_fast ()
00:00:16 #334 [Verbose] > then 1000i32
00:00:16 #335 [Verbose] > else 2000000i32
00:00:16 #336 [Verbose] >
00:00:16 #337 [Verbose] > run_all (nameof empty_2_tests) count solutions test_cases
00:00:16 #338 [Verbose] > |> sort_result_list
00:00:16 #339 [Verbose] >
00:00:16 #340 [Verbose] > empty_2_tests ()
00:00:35 #341 [Verbose] >
00:00:35 #342 [Verbose] > ╭─[ 19.13s - stdout ]──────────────────────────────────────────────────────────╮
00:00:35 #343 [Verbose] > │ type UH0 = │
00:00:35 #344 [Verbose] > │ | UH0_0 of string * string * string * UH0 │
00:00:35 #345 [Verbose] > │ | UH0_1 │
00:00:35 #346 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:00:35 #347 [Verbose] > │ and UH1 = │
00:00:35 #348 [Verbose] > │ | UH1_0 of int32 * string * (struct (string * string) -> string) * UH1 │
00:00:35 #349 [Verbose] > │ | UH1_1 │
00:00:35 #350 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:35 #351 [Verbose] > │ and UH2 = │
00:00:35 #352 [Verbose] > │ | UH2_0 of string * UH2 │
00:00:35 #353 [Verbose] > │ | UH2_1 │
00:00:35 #354 [Verbose] > │ and [<Struct>] US0 = │
00:00:35 #355 [Verbose] > │ | US0_0 │
00:00:35 #356 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:00:35 #357 [Verbose] > │ and UH3 = │
00:00:35 #358 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:00:35 #359 [Verbose] > │ | UH3_1 │
00:00:35 #360 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:00:35 #361 [Verbose] > │ and UH4 = │
00:00:35 #362 [Verbose] > │ | UH4_0 of UH2 * US0 * UH4 │
00:00:35 #363 [Verbose] > │ | UH4_1 │
00:00:35 #364 [Verbose] > │ and [<Struct>] US1 = │
00:00:35 #365 [Verbose] > │ | US1_0 │
00:00:35 #366 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:00:35 #367 [Verbose] > │ and UH5 = │
00:00:35 #368 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:00:35 #369 [Verbose] > │ | UH5_1 │
00:00:35 #370 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:00:35 #371 [Verbose] > │ and UH6 = │
00:00:35 #372 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:00:35 #373 [Verbose] > │ | UH6_1 │
00:00:35 #374 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:00:35 #375 [Verbose] > │ match v0 with │
00:00:35 #376 [Verbose] > │ | UH0_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:35 #377 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:35 #378 [Verbose] > │ method2(v5, v6) │
00:00:35 #379 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:35 #380 [Verbose] > │ v1 │
00:00:35 #381 [Verbose] > │ and method3 (v0 : (struct (string * string * string) []), v1 : UH0, v2 : │
00:00:35 #382 [Verbose] > │ uint64) : uint64 = │
00:00:35 #383 [Verbose] > │ match v1 with │
00:00:35 #384 [Verbose] > │ | UH0_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:35 #385 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:35 #386 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:35 #387 [Verbose] > │ method3(v0, v6, v7) │
00:00:35 #388 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:35 #389 [Verbose] > │ v2 │
00:00:35 #390 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string * string) []) = │
00:00:35 #391 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:35 #392 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:00:35 #393 [Verbose] > │ let v3 : (struct (string * string * string) []) = │
00:00:35 #394 [Verbose] > │ Array.zeroCreate<struct (string * string * string)> │
00:00:35 #395 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:35 #396 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:35 #397 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:00:35 #398 [Verbose] > │ v3 │
00:00:35 #399 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:00:35 #400 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:35 #401 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:35 #402 [Verbose] > │ v3 │
00:00:35 #403 [Verbose] > │ and closure1 () struct (v0 : string, v1 : string) : string = │
00:00:35 #404 [Verbose] > │ v0 │
00:00:35 #405 [Verbose] > │ and closure2 () struct (v0 : string, v1 : string) : string = │
00:00:35 #406 [Verbose] > │ v1 │
00:00:35 #407 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 = │
00:00:35 #408 [Verbose] > │ match v0 with │
00:00:35 #409 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:35 #410 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:35 #411 [Verbose] > │ method6(v5, v6) │
00:00:35 #412 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:35 #413 [Verbose] > │ v1 │
00:00:35 #414 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (struct (string * string) -> │
00:00:35 #415 [Verbose] > │ string)) []), v1 : UH1, v2 : uint64) : uint64 = │
00:00:35 #416 [Verbose] > │ match v1 with │
00:00:35 #417 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:35 #418 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:35 #419 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:35 #420 [Verbose] > │ method7(v0, v6, v7) │
00:00:35 #421 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:35 #422 [Verbose] > │ v2 │
00:00:35 #423 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (struct (string * string) │
00:00:35 #424 [Verbose] > │ -> string)) []) = │
00:00:35 #425 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:35 #426 [Verbose] > │ let v2 : uint64 = method6(v0, v1) │
00:00:35 #427 [Verbose] > │ let v3 : (struct (int32 * string * (struct (string * string) -> string)) │
00:00:35 #428 [Verbose] > │ []) = Array.zeroCreate<struct (int32 * string * (struct (string * string) -> │
00:00:35 #429 [Verbose] > │ string))> (System.Convert.ToInt32(v2)) │
00:00:35 #430 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:35 #431 [Verbose] > │ let v5 : uint64 = method7(v3, v0, v4) │
00:00:35 #432 [Verbose] > │ v3 │
00:00:35 #433 [Verbose] > │ and method8 (v0 : Mut1) : bool = │
00:00:35 #434 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:35 #435 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:00:35 #436 [Verbose] > │ v2 │
00:00:35 #437 [Verbose] > │ and closure3 (v0 : string, v1 : string, v2 : (struct (string * string) -> │
00:00:35 #438 [Verbose] > │ string)) (v3 : int32) : string = │
00:00:35 #439 [Verbose] > │ v2 struct (v0, v1) │
00:00:35 #440 [Verbose] > │ and method9 (v0 : string, v1 : (string []), v2 : uint64) : bool = │
00:00:35 #441 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:00:35 #442 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:35 #443 [Verbose] > │ if v4 then │
00:00:35 #444 [Verbose] > │ let v5 : string = v1.[int v2] │
00:00:35 #445 [Verbose] > │ let v6 : bool = v0 = v5 │
00:00:35 #446 [Verbose] > │ if v6 then │
00:00:35 #447 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:35 #448 [Verbose] > │ method9(v0, v1, v7) │
00:00:35 #449 [Verbose] > │ else │
00:00:35 #450 [Verbose] > │ false │
00:00:35 #451 [Verbose] > │ else │
00:00:35 #452 [Verbose] > │ true │
00:00:35 #453 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool = │
00:00:35 #454 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:35 #455 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:35 #456 [Verbose] > │ v3 │
00:00:35 #457 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:35 #458 [Verbose] > │ match v0 with │
00:00:35 #459 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:35 #460 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:00:35 #461 [Verbose] > │ method11(v4, v5) │
00:00:35 #462 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:35 #463 [Verbose] > │ v1 │
00:00:35 #464 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 = │
00:00:35 #465 [Verbose] > │ match v0 with │
00:00:35 #466 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:35 #467 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:35 #468 [Verbose] > │ method13(v4, v5) │
00:00:35 #469 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:35 #470 [Verbose] > │ v1 │
00:00:35 #471 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:00:35 #472 [Verbose] > │ int32 = │
00:00:35 #473 [Verbose] > │ match v1 with │
00:00:35 #474 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:00:35 #475 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:35 #476 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:35 #477 [Verbose] > │ method14(v0, v5, v6) │
00:00:35 #478 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:35 #479 [Verbose] > │ v2 │
00:00:35 #480 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) = │
00:00:35 #481 [Verbose] > │ let v1 : int32 = 0 │
00:00:35 #482 [Verbose] > │ let v2 : int32 = method13(v0, v1) │
00:00:35 #483 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:00:35 #484 [Verbose] > │ int64)> (v2) │
00:00:35 #485 [Verbose] > │ let v4 : int32 = 0 │
00:00:35 #486 [Verbose] > │ let v5 : int32 = method14(v3, v0, v4) │
00:00:35 #487 [Verbose] > │ v3 │
00:00:35 #488 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool = │
00:00:35 #489 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:35 #490 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:35 #491 [Verbose] > │ v3 │
00:00:35 #492 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 = │
00:00:35 #493 [Verbose] > │ v1 │
00:00:35 #494 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 = │
00:00:35 #495 [Verbose] > │ match v0 with │
00:00:35 #496 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:00:35 #497 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:35 #498 [Verbose] > │ method17(v4, v5) │
00:00:36 #499 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:36 #500 [Verbose] > │ v1 │
00:00:36 #501 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64 │
00:00:36 #502 [Verbose] > │ = │
00:00:36 #503 [Verbose] > │ match v1 with │
00:00:36 #504 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:00:36 #505 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:36 #506 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:36 #507 [Verbose] > │ method18(v0, v5, v6) │
00:00:36 #508 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:36 #509 [Verbose] > │ v2 │
00:00:36 #510 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) = │
00:00:36 #511 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:36 #512 [Verbose] > │ let v2 : uint64 = method17(v0, v1) │
00:00:36 #513 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:36 #514 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:36 #515 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:36 #516 [Verbose] > │ let v5 : uint64 = method18(v3, v0, v4) │
00:00:36 #517 [Verbose] > │ v3 │
00:00:36 #518 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 = │
00:00:36 #519 [Verbose] > │ match v0 with │
00:00:36 #520 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:36 #521 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:00:36 #522 [Verbose] > │ method20(v3, v4) │
00:00:36 #523 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:36 #524 [Verbose] > │ v1 │
00:00:36 #525 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:00:36 #526 [Verbose] > │ match v1 with │
00:00:36 #527 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:36 #528 [Verbose] > │ v0.[int v2] <- v3 │
00:00:36 #529 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:00:36 #530 [Verbose] > │ method21(v0, v4, v5) │
00:00:36 #531 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:36 #532 [Verbose] > │ v2 │
00:00:36 #533 [Verbose] > │ and method19 (v0 : UH2) : (string []) = │
00:00:36 #534 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:36 #535 [Verbose] > │ let v2 : uint64 = method20(v0, v1) │
00:00:36 #536 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:00:36 #537 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:36 #538 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:36 #539 [Verbose] > │ let v5 : uint64 = method21(v3, v0, v4) │
00:00:36 #540 [Verbose] > │ v3 │
00:00:36 #541 [Verbose] > │ and closure5 () (v0 : int64) : US1 = │
00:00:36 #542 [Verbose] > │ US1_1(v0) │
00:00:36 #543 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool = │
00:00:36 #544 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:36 #545 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:36 #546 [Verbose] > │ v3 │
00:00:36 #547 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:36 #548 [Verbose] > │ match v0 with │
00:00:36 #549 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:36 #550 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:00:36 #551 [Verbose] > │ method23(v4, v5) │
00:00:36 #552 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:36 #553 [Verbose] > │ v1 │
00:00:36 #554 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 = │
00:00:36 #555 [Verbose] > │ match v0 with │
00:00:36 #556 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:36 #557 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:36 #558 [Verbose] > │ method25(v4, v5) │
00:00:36 #559 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:36 #560 [Verbose] > │ v1 │
00:00:36 #561 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:00:36 #562 [Verbose] > │ int32 = │
00:00:36 #563 [Verbose] > │ match v1 with │
00:00:36 #564 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:36 #565 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:36 #566 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:36 #567 [Verbose] > │ method26(v0, v5, v6) │
00:00:36 #568 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:36 #569 [Verbose] > │ v2 │
00:00:36 #570 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:36 #571 [Verbose] > │ let v1 : int32 = 0 │
00:00:36 #572 [Verbose] > │ let v2 : int32 = method25(v0, v1) │
00:00:36 #573 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:36 #574 [Verbose] > │ int64)> (v2) │
00:00:36 #575 [Verbose] > │ let v4 : int32 = 0 │
00:00:36 #576 [Verbose] > │ let v5 : int32 = method26(v3, v0, v4) │
00:00:36 #577 [Verbose] > │ v3 │
00:00:36 #578 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:00:36 #579 [Verbose] > │ match v0 with │
00:00:36 #580 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:36 #581 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:36 #582 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:00:36 #583 [Verbose] > │ method27(v4, v6, v5) │
00:00:36 #584 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:36 #585 [Verbose] > │ struct (v1, v2) │
00:00:36 #586 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:36 #587 [Verbose] > │ match v0 with │
00:00:36 #588 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:00:36 #589 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:00:36 #590 [Verbose] > │ method28(v4, v5) │
00:00:36 #591 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:36 #592 [Verbose] > │ v1 │
00:00:36 #593 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:00:36 #594 [Verbose] > │ match v1 with │
00:00:36 #595 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:00:36 #596 [Verbose] > │ let v6 : UH2 = method29(v0, v5, v2) │
00:00:36 #597 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:00:36 #598 [Verbose] > │ let v8 : int32 = int32 v7 │
00:00:36 #599 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:00:36 #600 [Verbose] > │ UH2_0(v9, v6) │
00:00:36 #601 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:36 #602 [Verbose] > │ v2 │
00:00:36 #603 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 = │
00:00:36 #604 [Verbose] > │ match v0 with │
00:00:36 #605 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:36 #606 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:36 #607 [Verbose] > │ method31(v3, v4) │
00:00:36 #608 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:36 #609 [Verbose] > │ v1 │
00:00:36 #610 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:00:36 #611 [Verbose] > │ match v1 with │
00:00:36 #612 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:36 #613 [Verbose] > │ v0.[int v2] <- v3 │
00:00:36 #614 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:36 #615 [Verbose] > │ method32(v0, v4, v5) │
00:00:36 #616 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:36 #617 [Verbose] > │ v2 │
00:00:36 #618 [Verbose] > │ and method30 (v0 : UH2) : (string []) = │
00:00:36 #619 [Verbose] > │ let v1 : int32 = 0 │
00:00:36 #620 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:00:36 #621 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:00:36 #622 [Verbose] > │ let v4 : int32 = 0 │
00:00:36 #623 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:00:36 #624 [Verbose] > │ v3 │
00:00:36 #625 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 = │
00:00:36 #626 [Verbose] > │ match v0 with │
00:00:36 #627 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:36 #628 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:36 #629 [Verbose] > │ method34(v4, v5) │
00:00:36 #630 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:36 #631 [Verbose] > │ v1 │
00:00:36 #632 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:00:36 #633 [Verbose] > │ uint64 = │
00:00:36 #634 [Verbose] > │ match v1 with │
00:00:36 #635 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:36 #636 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:36 #637 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:36 #638 [Verbose] > │ method35(v0, v5, v6) │
00:00:36 #639 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:36 #640 [Verbose] > │ v2 │
00:00:36 #641 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:36 #642 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:36 #643 [Verbose] > │ let v2 : uint64 = method34(v0, v1) │
00:00:36 #644 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:36 #645 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:00:36 #646 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:36 #647 [Verbose] > │ let v5 : uint64 = method35(v3, v0, v4) │
00:00:36 #648 [Verbose] > │ v3 │
00:00:36 #649 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 = │
00:00:36 #650 [Verbose] > │ v1 │
00:00:36 #651 [Verbose] > │ and closure0 () () : unit = │
00:00:36 #652 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:36 #653 [Verbose] > │ let v1 : string = nameof v0 │
00:00:36 #654 [Verbose] > │ let v2 : string = "" │
00:00:36 #655 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #656 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #657 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:36 #658 [Verbose] > │ System.Console.WriteLine v3 │
00:00:36 #659 [Verbose] > │ let v4 : string = "a" │
00:00:36 #660 [Verbose] > │ let v5 : string = "b" │
00:00:36 #661 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:36 #662 [Verbose] > │ let v7 : UH0 = UH0_0(v5, v5, v5, v6) │
00:00:36 #663 [Verbose] > │ let v8 : UH0 = UH0_0(v4, v4, v4, v7) │
00:00:36 #664 [Verbose] > │ let v9 : (struct (string * string * string) []) = method1(v8) │
00:00:36 #665 [Verbose] > │ let v10 : uint64 = System.Convert.ToUInt64 v9.Length │
00:00:36 #666 [Verbose] > │ let v11 : (struct (string * string * string * (int64 [])) []) = │
00:00:36 #667 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:36 #668 [Verbose] > │ (System.Convert.ToInt32(v10)) │
00:00:36 #669 [Verbose] > │ let v12 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #670 [Verbose] > │ while method4(v10, v12) do │
00:00:36 #671 [Verbose] > │ let v14 : uint64 = v12.l0 │
00:00:36 #672 [Verbose] > │ let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │
00:00:36 #673 [Verbose] > │ let v18 : string = $"%A{struct (v15, v16)}" │
00:00:36 #674 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #675 [Verbose] > │ let v19 : string = $"Solution: {v18} " │
00:00:36 #676 [Verbose] > │ System.Console.WriteLine v19 │
00:00:36 #677 [Verbose] > │ let v20 : int32 = 0 │
00:00:36 #678 [Verbose] > │ let v21 : string = "A" │
00:00:36 #679 [Verbose] > │ let v22 : (struct (string * string) -> string) = closure1() │
00:00:36 #680 [Verbose] > │ let v23 : int32 = 1 │
00:00:36 #681 [Verbose] > │ let v24 : string = "B" │
00:00:36 #682 [Verbose] > │ let v25 : (struct (string * string) -> string) = closure2() │
00:00:36 #683 [Verbose] > │ let v26 : UH1 = UH1_1 │
00:00:36 #684 [Verbose] > │ let v27 : UH1 = UH1_0(v23, v24, v25, v26) │
00:00:36 #685 [Verbose] > │ let v28 : UH1 = UH1_0(v20, v21, v22, v27) │
00:00:36 #686 [Verbose] > │ let v29 : (struct (int32 * string * (struct (string * string) -> │
00:00:36 #687 [Verbose] > │ string)) []) = method5(v28) │
00:00:36 #688 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:36 #689 [Verbose] > │ let v31 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:00:36 #690 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30)) │
00:00:36 #691 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #692 [Verbose] > │ while method4(v30, v32) do │
00:00:36 #693 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:36 #694 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (struct (string * │
00:00:36 #695 [Verbose] > │ string) -> string)) = v29.[int v34] │
00:00:36 #696 [Verbose] > │ let mutable result = None │
00:00:36 #697 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #698 [Verbose] > │ () │
00:00:36 #699 [Verbose] > │ #endif │
00:00:36 #700 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #701 [Verbose] > │ () │
00:00:36 #702 [Verbose] > │ #endif │
00:00:36 #703 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #704 [Verbose] > │ System.GC.Collect () │
00:00:36 #705 [Verbose] > │ () │
00:00:36 #706 [Verbose] > │ #endif │
00:00:36 #707 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #708 [Verbose] > │ System.GC.Collect () │
00:00:36 #709 [Verbose] > │ () │
00:00:36 #710 [Verbose] > │ #endif │
00:00:36 #711 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #712 [Verbose] > │ System.GC.Collect () │
00:00:36 #713 [Verbose] > │ () │
00:00:36 #714 [Verbose] > │ #endif │
00:00:36 #715 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #716 [Verbose] > │ result |> Option.get │
00:00:36 #717 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:36 #718 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:36 #719 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:36 #720 [Verbose] > │ v39.Start () │
00:00:36 #721 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:36 #722 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:36 #723 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:36 #724 [Verbose] > │ while method8(v42) do │
00:00:36 #725 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:36 #726 [Verbose] > │ v41.[int v44] <- v44 │
00:00:36 #727 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:36 #728 [Verbose] > │ v42.l0 <- v45 │
00:00:36 #729 [Verbose] > │ () │
00:00:36 #730 [Verbose] > │ let v46 : (int32 -> string) = closure3(v15, v16, v37) │
00:00:36 #731 [Verbose] > │ let v47 : (string []) = v41 |> Array.Parallel.map v46 │
00:00:36 #732 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:36 #733 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:36 #734 [Verbose] > │ let v50 : string = v47.[int v49] │
00:00:36 #735 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:36 #736 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:36 #737 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:36 #738 [Verbose] > │ System.Console.WriteLine v53 │
00:00:36 #739 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:36 #740 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:36 #741 [Verbose] > │ v32.l0 <- v54 │
00:00:36 #742 [Verbose] > │ () │
00:00:36 #743 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:36 #744 [Verbose] > │ let v56 : (string []) = Array.zeroCreate<string> │
00:00:36 #745 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:36 #746 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #747 [Verbose] > │ while method4(v55, v57) do │
00:00:36 #748 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:36 #749 [Verbose] > │ let struct (v60 : string, v61 : int64) = v31.[int v59] │
00:00:36 #750 [Verbose] > │ v56.[int v59] <- v60 │
00:00:36 #751 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:36 #752 [Verbose] > │ v57.l0 <- v62 │
00:00:36 #753 [Verbose] > │ () │
00:00:36 #754 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:36 #755 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:36 #756 [Verbose] > │ if v64 then │
00:00:36 #757 [Verbose] > │ () │
00:00:36 #758 [Verbose] > │ else │
00:00:36 #759 [Verbose] > │ let v65 : string = v56.[int 0UL] │
00:00:36 #760 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:36 #761 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:36 #762 [Verbose] > │ if v67 then │
00:00:36 #763 [Verbose] > │ () │
00:00:36 #764 [Verbose] > │ else │
00:00:36 #765 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:36 #766 [Verbose] > │ failwith<unit> v68 │
00:00:36 #767 [Verbose] > │ let v69 : string = $"%A{v17}" │
00:00:36 #768 [Verbose] > │ let v70 : (string []) = Array.zeroCreate<string> │
00:00:36 #769 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:36 #770 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #771 [Verbose] > │ while method4(v55, v71) do │
00:00:36 #772 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:36 #773 [Verbose] > │ let struct (v74 : string, v75 : int64) = v31.[int v73] │
00:00:36 #774 [Verbose] > │ v70.[int v73] <- v74 │
00:00:36 #775 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:36 #776 [Verbose] > │ v71.l0 <- v76 │
00:00:36 #777 [Verbose] > │ () │
00:00:36 #778 [Verbose] > │ let v77 : string = v70.[int 0UL] │
00:00:36 #779 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:36 #780 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #781 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:36 #782 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #783 [Verbose] > │ while method4(v55, v80) do │
00:00:36 #784 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:36 #785 [Verbose] > │ let struct (v83 : string, v84 : int64) = v31.[int v82] │
00:00:36 #786 [Verbose] > │ v79.[int v82] <- v84 │
00:00:36 #787 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:36 #788 [Verbose] > │ v80.l0 <- v85 │
00:00:36 #789 [Verbose] > │ () │
00:00:36 #790 [Verbose] > │ v11.[int v14] <- struct (v69, v18, v78, v79) │
00:00:36 #791 [Verbose] > │ let v86 : uint64 = v14 + 1UL │
00:00:36 #792 [Verbose] > │ v12.l0 <- v86 │
00:00:36 #793 [Verbose] > │ () │
00:00:36 #794 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v11.Length │
00:00:36 #795 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:36 #796 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:36 #797 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #798 [Verbose] > │ while method4(v87, v89) do │
00:00:36 #799 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:36 #800 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:36 #801 [Verbose] > │ ])) = v11.[int v91] │
00:00:36 #802 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:36 #803 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:36 #804 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:36 #805 [Verbose] > │ while method10(v96, v98) do │
00:00:36 #806 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:36 #807 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:36 #808 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:36 #809 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:36 #810 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:36 #811 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:36 #812 [Verbose] > │ v98.l0 <- v105 │
00:00:36 #813 [Verbose] > │ v98.l1 <- v106 │
00:00:36 #814 [Verbose] > │ v98.l2 <- v104 │
00:00:36 #815 [Verbose] > │ () │
00:00:36 #816 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:36 #817 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:36 #818 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:36 #819 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:36 #820 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:36 #821 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:36 #822 [Verbose] > │ (int64 * int64)> (v112) │
00:00:36 #823 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:36 #824 [Verbose] > │ while method15(v112, v114) do │
00:00:36 #825 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:36 #826 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:36 #827 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:36 #828 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:36 #829 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:36 #830 [Verbose] > │ v114.l0 <- v120 │
00:00:36 #831 [Verbose] > │ () │
00:00:36 #832 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure4() │
00:00:36 #833 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:36 #834 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:36 #835 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:36 #836 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:36 #837 [Verbose] > │ let v131 : US0 = │
00:00:36 #838 [Verbose] > │ if v126 then │
00:00:36 #839 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:36 #840 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:36 #841 [Verbose] > │ US0_1(v127) │
00:00:36 #842 [Verbose] > │ else │
00:00:36 #843 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:36 #844 [Verbose] > │ US0_1(v129) │
00:00:36 #845 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:36 #846 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:36 #847 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:36 #848 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:36 #849 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:36 #850 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:36 #851 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:36 #852 [Verbose] > │ v89.l0 <- v137 │
00:00:36 #853 [Verbose] > │ () │
00:00:36 #854 [Verbose] > │ let v138 : string = "Input" │
00:00:36 #855 [Verbose] > │ let v139 : string = "Expected" │
00:00:36 #856 [Verbose] > │ let v140 : string = "Result" │
00:00:36 #857 [Verbose] > │ let v141 : string = "Best" │
00:00:36 #858 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:36 #859 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:36 #860 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:36 #861 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:36 #862 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:36 #863 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:36 #864 [Verbose] > │ let v148 : string = "---" │
00:00:36 #865 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:36 #866 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:36 #867 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:36 #868 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:36 #869 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:36 #870 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:36 #871 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:36 #872 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:36 #873 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:36 #874 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:36 #875 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:36 #876 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:36 #877 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:36 #878 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:36 #879 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:36 #880 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #881 [Verbose] > │ while method4(v161, v163) do │
00:00:36 #882 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:36 #883 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:36 #884 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:36 #885 [Verbose] > │ if v166 then │
00:00:36 #886 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:36 #887 [Verbose] > │ struct (v167, v168) │
00:00:36 #888 [Verbose] > │ else │
00:00:36 #889 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:36 #890 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:36 #891 [Verbose] > │ struct (v170, v171) │
00:00:36 #892 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:36 #893 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:36 #894 [Verbose] > │ v163.l0 <- v174 │
00:00:36 #895 [Verbose] > │ () │
00:00:36 #896 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:36 #897 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:36 #898 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:36 #899 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #900 [Verbose] > │ while method4(v175, v177) do │
00:00:36 #901 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:36 #902 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:36 #903 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:36 #904 [Verbose] > │ v176.[int v179] <- v182 │
00:00:36 #905 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:36 #906 [Verbose] > │ v177.l0 <- v183 │
00:00:36 #907 [Verbose] > │ () │
00:00:36 #908 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:36 #909 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:36 #910 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #911 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:36 #912 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #913 [Verbose] > │ while method4(v185, v187) do │
00:00:36 #914 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:36 #915 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:36 #916 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:36 #917 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #918 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:36 #919 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #920 [Verbose] > │ while method4(v191, v193) do │
00:00:36 #921 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:36 #922 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:36 #923 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:36 #924 [Verbose] > │ v192.[int v195] <- v197 │
00:00:36 #925 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:36 #926 [Verbose] > │ v193.l0 <- v198 │
00:00:36 #927 [Verbose] > │ () │
00:00:36 #928 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:36 #929 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:36 #930 [Verbose] > │ let v201 : (int64 -> US1) = closure5() │
00:00:36 #931 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:36 #932 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:36 #933 [Verbose] > │ let v206 : int64 = │
00:00:36 #934 [Verbose] > │ match v203 with │
00:00:36 #935 [Verbose] > │ | US1_0 -> (* None *) │
00:00:36 #936 [Verbose] > │ 0L │
00:00:36 #937 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:36 #938 [Verbose] > │ v204 │
00:00:36 #939 [Verbose] > │ v186.[int v189] <- v206 │
00:00:36 #940 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:36 #941 [Verbose] > │ v187.l0 <- v207 │
00:00:36 #942 [Verbose] > │ () │
00:00:36 #943 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:36 #944 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:36 #945 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:36 #946 [Verbose] > │ while method22(v208, v210) do │
00:00:36 #947 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:36 #948 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:36 #949 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:36 #950 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:36 #951 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:36 #952 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:36 #953 [Verbose] > │ v210.l0 <- v217 │
00:00:36 #954 [Verbose] > │ v210.l1 <- v218 │
00:00:36 #955 [Verbose] > │ v210.l2 <- v216 │
00:00:36 #956 [Verbose] > │ () │
00:00:36 #957 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:36 #958 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:36 #959 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:36 #960 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:36 #961 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:36 #962 [Verbose] > │ a, b) |> Map.ofArray │
00:00:36 #963 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:36 #964 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:36 #965 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #966 [Verbose] > │ while method4(v175, v226) do │
00:00:36 #967 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:36 #968 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:36 #969 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:36 #970 [Verbose] > │ let v232 : int32 = 0 │
00:00:36 #971 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:36 #972 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:36 #973 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:36 #974 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:36 #975 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:36 #976 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:36 #977 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:36 #978 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:36 #979 [Verbose] > │ v226.l0 <- v240 │
00:00:36 #980 [Verbose] > │ () │
00:00:36 #981 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #982 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:36 #983 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #984 [Verbose] > │ while method4(v241, v242) do │
00:00:36 #985 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:36 #986 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:36 #987 [Verbose] > │ match v246 with │
00:00:36 #988 [Verbose] > │ | US0_0 -> (* None *) │
00:00:36 #989 [Verbose] > │ let mutable result = None │
00:00:36 #990 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #991 [Verbose] > │ () │
00:00:36 #992 [Verbose] > │ #endif │
00:00:36 #993 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #994 [Verbose] > │ () │
00:00:36 #995 [Verbose] > │ #endif │
00:00:36 #996 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #997 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #998 [Verbose] > │ () │
00:00:36 #999 [Verbose] > │ #endif │
00:00:36 #1000 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1001 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1002 [Verbose] > │ () │
00:00:36 #1003 [Verbose] > │ #endif │
00:00:36 #1004 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1005 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1006 [Verbose] > │ () │
00:00:36 #1007 [Verbose] > │ #endif │
00:00:36 #1008 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1009 [Verbose] > │ result |> Option.get │
00:00:36 #1010 [Verbose] > │ () │
00:00:36 #1011 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:36 #1012 [Verbose] > │ let mutable result = None │
00:00:36 #1013 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #1014 [Verbose] > │ () │
00:00:36 #1015 [Verbose] > │ #endif │
00:00:36 #1016 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #1017 [Verbose] > │ () │
00:00:36 #1018 [Verbose] > │ #endif │
00:00:36 #1019 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1020 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:36 #1021 [Verbose] > │ () │
00:00:36 #1022 [Verbose] > │ #endif │
00:00:36 #1023 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1024 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:36 #1025 [Verbose] > │ () │
00:00:36 #1026 [Verbose] > │ #endif │
00:00:36 #1027 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1028 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:36 #1029 [Verbose] > │ () │
00:00:36 #1030 [Verbose] > │ #endif │
00:00:36 #1031 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1032 [Verbose] > │ result |> Option.get │
00:00:36 #1033 [Verbose] > │ () │
00:00:36 #1034 [Verbose] > │ let v248 : string = "\t| " │
00:00:36 #1035 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:36 #1036 [Verbose] > │ System.Console.WriteLine v249 │
00:00:36 #1037 [Verbose] > │ let mutable result = None │
00:00:36 #1038 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #1039 [Verbose] > │ () │
00:00:36 #1040 [Verbose] > │ #endif │
00:00:36 #1041 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #1042 [Verbose] > │ () │
00:00:36 #1043 [Verbose] > │ #endif │
00:00:36 #1044 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1045 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1046 [Verbose] > │ () │
00:00:36 #1047 [Verbose] > │ #endif │
00:00:36 #1048 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1049 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1050 [Verbose] > │ () │
00:00:36 #1051 [Verbose] > │ #endif │
00:00:36 #1052 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1053 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1054 [Verbose] > │ () │
00:00:36 #1055 [Verbose] > │ #endif │
00:00:36 #1056 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1057 [Verbose] > │ result |> Option.get │
00:00:36 #1058 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:36 #1059 [Verbose] > │ v242.l0 <- v250 │
00:00:36 #1060 [Verbose] > │ () │
00:00:36 #1061 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:36 #1062 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:36 #1063 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1064 [Verbose] > │ while method4(v87, v252) do │
00:00:36 #1065 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:36 #1066 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:36 #1067 [Verbose] > │ (int64 [])) = v11.[int v254] │
00:00:36 #1068 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:36 #1069 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:36 #1070 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:36 #1071 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:36 #1072 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1073 [Verbose] > │ while method4(v260, v262) do │
00:00:36 #1074 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:36 #1075 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:36 #1076 [Verbose] > │ let v266 : float = v259 v265 │
00:00:36 #1077 [Verbose] > │ v261.[int v264] <- v266 │
00:00:36 #1078 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:36 #1079 [Verbose] > │ v262.l0 <- v267 │
00:00:36 #1080 [Verbose] > │ () │
00:00:36 #1081 [Verbose] > │ v251.[int v254] <- v261 │
00:00:36 #1082 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:36 #1083 [Verbose] > │ v252.l0 <- v268 │
00:00:36 #1084 [Verbose] > │ () │
00:00:36 #1085 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:36 #1086 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:36 #1087 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:36 #1088 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:36 #1089 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1090 [Verbose] > │ while method4(v270, v272) do │
00:00:36 #1091 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:36 #1092 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:36 #1093 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:36 #1094 [Verbose] > │ v271.[int v274] <- v276 │
00:00:36 #1095 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:36 #1096 [Verbose] > │ v272.l0 <- v277 │
00:00:36 #1097 [Verbose] > │ () │
00:00:36 #1098 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:36 #1099 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:36 #1100 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #1101 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:36 #1102 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1103 [Verbose] > │ while method4(v279, v281) do │
00:00:36 #1104 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:36 #1105 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:36 #1106 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:36 #1107 [Verbose] > │ v280.[int v283] <- v285 │
00:00:36 #1108 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:36 #1109 [Verbose] > │ v281.l0 <- v286 │
00:00:36 #1110 [Verbose] > │ () │
00:00:36 #1111 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:36 #1112 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:36 #1113 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:36 #1114 [Verbose] > │ while method22(v287, v289) do │
00:00:36 #1115 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:36 #1116 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:36 #1117 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:36 #1118 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:36 #1119 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:36 #1120 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:36 #1121 [Verbose] > │ v289.l0 <- v296 │
00:00:36 #1122 [Verbose] > │ v289.l1 <- v297 │
00:00:36 #1123 [Verbose] > │ v289.l2 <- v295 │
00:00:36 #1124 [Verbose] > │ () │
00:00:36 #1125 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:36 #1126 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:36 #1127 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:36 #1128 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:36 #1129 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #1130 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:36 #1131 [Verbose] > │ System.Console.WriteLine v303 │
00:00:36 #1132 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure6() │
00:00:36 #1133 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:36 #1134 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:36 #1135 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1136 [Verbose] > │ while method4(v306, v307) do │
00:00:36 #1137 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:36 #1138 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:36 #1139 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:36 #1140 [Verbose] > │ " │
00:00:36 #1141 [Verbose] > │ System.Console.WriteLine v312 │
00:00:36 #1142 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:36 #1143 [Verbose] > │ v307.l0 <- v313 │
00:00:36 #1144 [Verbose] > │ () │
00:00:36 #1145 [Verbose] > │ () │
00:00:36 #1146 [Verbose] > │ and method0 () : unit = │
00:00:36 #1147 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:36 #1148 [Verbose] > │ let v1 : string = nameof v0 │
00:00:36 #1149 [Verbose] > │ let v2 : string = "" │
00:00:36 #1150 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #1151 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #1152 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:36 #1153 [Verbose] > │ System.Console.WriteLine v3 │
00:00:36 #1154 [Verbose] > │ let v4 : string = "a" │
00:00:36 #1155 [Verbose] > │ let v5 : string = "b" │
00:00:36 #1156 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:36 #1157 [Verbose] > │ let v7 : UH0 = UH0_0(v5, v5, v5, v6) │
00:00:36 #1158 [Verbose] > │ let v8 : UH0 = UH0_0(v4, v4, v4, v7) │
00:00:36 #1159 [Verbose] > │ let v9 : (struct (string * string * string) []) = method1(v8) │
00:00:36 #1160 [Verbose] > │ let v10 : uint64 = System.Convert.ToUInt64 v9.Length │
00:00:36 #1161 [Verbose] > │ let v11 : (struct (string * string * string * (int64 [])) []) = │
00:00:36 #1162 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:36 #1163 [Verbose] > │ (System.Convert.ToInt32(v10)) │
00:00:36 #1164 [Verbose] > │ let v12 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1165 [Verbose] > │ while method4(v10, v12) do │
00:00:36 #1166 [Verbose] > │ let v14 : uint64 = v12.l0 │
00:00:36 #1167 [Verbose] > │ let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │
00:00:36 #1168 [Verbose] > │ let v18 : string = $"%A{struct (v15, v16)}" │
00:00:36 #1169 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #1170 [Verbose] > │ let v19 : string = $"Solution: {v18} " │
00:00:36 #1171 [Verbose] > │ System.Console.WriteLine v19 │
00:00:36 #1172 [Verbose] > │ let v20 : int32 = 0 │
00:00:36 #1173 [Verbose] > │ let v21 : string = "A" │
00:00:36 #1174 [Verbose] > │ let v22 : (struct (string * string) -> string) = closure1() │
00:00:36 #1175 [Verbose] > │ let v23 : int32 = 1 │
00:00:36 #1176 [Verbose] > │ let v24 : string = "B" │
00:00:36 #1177 [Verbose] > │ let v25 : (struct (string * string) -> string) = closure2() │
00:00:36 #1178 [Verbose] > │ let v26 : UH1 = UH1_1 │
00:00:36 #1179 [Verbose] > │ let v27 : UH1 = UH1_0(v23, v24, v25, v26) │
00:00:36 #1180 [Verbose] > │ let v28 : UH1 = UH1_0(v20, v21, v22, v27) │
00:00:36 #1181 [Verbose] > │ let v29 : (struct (int32 * string * (struct (string * string) -> │
00:00:36 #1182 [Verbose] > │ string)) []) = method5(v28) │
00:00:36 #1183 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:36 #1184 [Verbose] > │ let v31 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:00:36 #1185 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30)) │
00:00:36 #1186 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1187 [Verbose] > │ while method4(v30, v32) do │
00:00:36 #1188 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:36 #1189 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (struct (string * │
00:00:36 #1190 [Verbose] > │ string) -> string)) = v29.[int v34] │
00:00:36 #1191 [Verbose] > │ let mutable result = None │
00:00:36 #1192 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #1193 [Verbose] > │ () │
00:00:36 #1194 [Verbose] > │ #endif │
00:00:36 #1195 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #1196 [Verbose] > │ () │
00:00:36 #1197 [Verbose] > │ #endif │
00:00:36 #1198 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1199 [Verbose] > │ System.GC.Collect () │
00:00:36 #1200 [Verbose] > │ () │
00:00:36 #1201 [Verbose] > │ #endif │
00:00:36 #1202 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1203 [Verbose] > │ System.GC.Collect () │
00:00:36 #1204 [Verbose] > │ () │
00:00:36 #1205 [Verbose] > │ #endif │
00:00:36 #1206 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1207 [Verbose] > │ System.GC.Collect () │
00:00:36 #1208 [Verbose] > │ () │
00:00:36 #1209 [Verbose] > │ #endif │
00:00:36 #1210 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1211 [Verbose] > │ result |> Option.get │
00:00:36 #1212 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:36 #1213 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:36 #1214 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:36 #1215 [Verbose] > │ v39.Start () │
00:00:36 #1216 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:36 #1217 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:36 #1218 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:36 #1219 [Verbose] > │ while method8(v42) do │
00:00:36 #1220 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:36 #1221 [Verbose] > │ v41.[int v44] <- v44 │
00:00:36 #1222 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:36 #1223 [Verbose] > │ v42.l0 <- v45 │
00:00:36 #1224 [Verbose] > │ () │
00:00:36 #1225 [Verbose] > │ let v46 : (int32 -> string) = closure3(v15, v16, v37) │
00:00:36 #1226 [Verbose] > │ let v47 : (string []) = v41 |> Array.Parallel.map v46 │
00:00:36 #1227 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:36 #1228 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:36 #1229 [Verbose] > │ let v50 : string = v47.[int v49] │
00:00:36 #1230 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:36 #1231 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:36 #1232 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:36 #1233 [Verbose] > │ System.Console.WriteLine v53 │
00:00:36 #1234 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:36 #1235 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:36 #1236 [Verbose] > │ v32.l0 <- v54 │
00:00:36 #1237 [Verbose] > │ () │
00:00:36 #1238 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:36 #1239 [Verbose] > │ let v56 : (string []) = Array.zeroCreate<string> │
00:00:36 #1240 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:36 #1241 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1242 [Verbose] > │ while method4(v55, v57) do │
00:00:36 #1243 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:36 #1244 [Verbose] > │ let struct (v60 : string, v61 : int64) = v31.[int v59] │
00:00:36 #1245 [Verbose] > │ v56.[int v59] <- v60 │
00:00:36 #1246 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:36 #1247 [Verbose] > │ v57.l0 <- v62 │
00:00:36 #1248 [Verbose] > │ () │
00:00:36 #1249 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:36 #1250 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:36 #1251 [Verbose] > │ if v64 then │
00:00:36 #1252 [Verbose] > │ () │
00:00:36 #1253 [Verbose] > │ else │
00:00:36 #1254 [Verbose] > │ let v65 : string = v56.[int 0UL] │
00:00:36 #1255 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:36 #1256 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:36 #1257 [Verbose] > │ if v67 then │
00:00:36 #1258 [Verbose] > │ () │
00:00:36 #1259 [Verbose] > │ else │
00:00:36 #1260 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:36 #1261 [Verbose] > │ failwith<unit> v68 │
00:00:36 #1262 [Verbose] > │ let v69 : string = $"%A{v17}" │
00:00:36 #1263 [Verbose] > │ let v70 : (string []) = Array.zeroCreate<string> │
00:00:36 #1264 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:36 #1265 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1266 [Verbose] > │ while method4(v55, v71) do │
00:00:36 #1267 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:36 #1268 [Verbose] > │ let struct (v74 : string, v75 : int64) = v31.[int v73] │
00:00:36 #1269 [Verbose] > │ v70.[int v73] <- v74 │
00:00:36 #1270 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:36 #1271 [Verbose] > │ v71.l0 <- v76 │
00:00:36 #1272 [Verbose] > │ () │
00:00:36 #1273 [Verbose] > │ let v77 : string = v70.[int 0UL] │
00:00:36 #1274 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:36 #1275 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #1276 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:36 #1277 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1278 [Verbose] > │ while method4(v55, v80) do │
00:00:36 #1279 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:36 #1280 [Verbose] > │ let struct (v83 : string, v84 : int64) = v31.[int v82] │
00:00:36 #1281 [Verbose] > │ v79.[int v82] <- v84 │
00:00:36 #1282 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:36 #1283 [Verbose] > │ v80.l0 <- v85 │
00:00:36 #1284 [Verbose] > │ () │
00:00:36 #1285 [Verbose] > │ v11.[int v14] <- struct (v69, v18, v78, v79) │
00:00:36 #1286 [Verbose] > │ let v86 : uint64 = v14 + 1UL │
00:00:36 #1287 [Verbose] > │ v12.l0 <- v86 │
00:00:36 #1288 [Verbose] > │ () │
00:00:36 #1289 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v11.Length │
00:00:36 #1290 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:36 #1291 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:36 #1292 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1293 [Verbose] > │ while method4(v87, v89) do │
00:00:36 #1294 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:36 #1295 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:36 #1296 [Verbose] > │ ])) = v11.[int v91] │
00:00:36 #1297 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:36 #1298 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:36 #1299 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:36 #1300 [Verbose] > │ while method10(v96, v98) do │
00:00:36 #1301 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:36 #1302 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:36 #1303 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:36 #1304 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:36 #1305 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:36 #1306 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:36 #1307 [Verbose] > │ v98.l0 <- v105 │
00:00:36 #1308 [Verbose] > │ v98.l1 <- v106 │
00:00:36 #1309 [Verbose] > │ v98.l2 <- v104 │
00:00:36 #1310 [Verbose] > │ () │
00:00:36 #1311 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:36 #1312 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:36 #1313 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:36 #1314 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:36 #1315 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:36 #1316 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:36 #1317 [Verbose] > │ (int64 * int64)> (v112) │
00:00:36 #1318 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:36 #1319 [Verbose] > │ while method15(v112, v114) do │
00:00:36 #1320 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:36 #1321 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:36 #1322 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:36 #1323 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:36 #1324 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:36 #1325 [Verbose] > │ v114.l0 <- v120 │
00:00:36 #1326 [Verbose] > │ () │
00:00:36 #1327 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure4() │
00:00:36 #1328 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:36 #1329 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:36 #1330 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:36 #1331 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:36 #1332 [Verbose] > │ let v131 : US0 = │
00:00:36 #1333 [Verbose] > │ if v126 then │
00:00:36 #1334 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:36 #1335 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:36 #1336 [Verbose] > │ US0_1(v127) │
00:00:36 #1337 [Verbose] > │ else │
00:00:36 #1338 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:36 #1339 [Verbose] > │ US0_1(v129) │
00:00:36 #1340 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:36 #1341 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:36 #1342 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:36 #1343 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:36 #1344 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:36 #1345 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:36 #1346 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:36 #1347 [Verbose] > │ v89.l0 <- v137 │
00:00:36 #1348 [Verbose] > │ () │
00:00:36 #1349 [Verbose] > │ let v138 : string = "Input" │
00:00:36 #1350 [Verbose] > │ let v139 : string = "Expected" │
00:00:36 #1351 [Verbose] > │ let v140 : string = "Result" │
00:00:36 #1352 [Verbose] > │ let v141 : string = "Best" │
00:00:36 #1353 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:36 #1354 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:36 #1355 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:36 #1356 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:36 #1357 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:36 #1358 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:36 #1359 [Verbose] > │ let v148 : string = "---" │
00:00:36 #1360 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:36 #1361 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:36 #1362 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:36 #1363 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:36 #1364 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:36 #1365 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:36 #1366 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:36 #1367 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:36 #1368 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:36 #1369 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:36 #1370 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:36 #1371 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:36 #1372 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:36 #1373 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:36 #1374 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:36 #1375 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1376 [Verbose] > │ while method4(v161, v163) do │
00:00:36 #1377 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:36 #1378 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:36 #1379 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:36 #1380 [Verbose] > │ if v166 then │
00:00:36 #1381 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:36 #1382 [Verbose] > │ struct (v167, v168) │
00:00:36 #1383 [Verbose] > │ else │
00:00:36 #1384 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:36 #1385 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:36 #1386 [Verbose] > │ struct (v170, v171) │
00:00:36 #1387 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:36 #1388 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:36 #1389 [Verbose] > │ v163.l0 <- v174 │
00:00:36 #1390 [Verbose] > │ () │
00:00:36 #1391 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:36 #1392 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:36 #1393 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:36 #1394 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1395 [Verbose] > │ while method4(v175, v177) do │
00:00:36 #1396 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:36 #1397 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:36 #1398 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:36 #1399 [Verbose] > │ v176.[int v179] <- v182 │
00:00:36 #1400 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:36 #1401 [Verbose] > │ v177.l0 <- v183 │
00:00:36 #1402 [Verbose] > │ () │
00:00:36 #1403 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:36 #1404 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:36 #1405 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #1406 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:36 #1407 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1408 [Verbose] > │ while method4(v185, v187) do │
00:00:36 #1409 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:36 #1410 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:36 #1411 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:36 #1412 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #1413 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:36 #1414 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1415 [Verbose] > │ while method4(v191, v193) do │
00:00:36 #1416 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:36 #1417 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:36 #1418 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:36 #1419 [Verbose] > │ v192.[int v195] <- v197 │
00:00:36 #1420 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:36 #1421 [Verbose] > │ v193.l0 <- v198 │
00:00:36 #1422 [Verbose] > │ () │
00:00:36 #1423 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:36 #1424 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:36 #1425 [Verbose] > │ let v201 : (int64 -> US1) = closure5() │
00:00:36 #1426 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:36 #1427 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:36 #1428 [Verbose] > │ let v206 : int64 = │
00:00:36 #1429 [Verbose] > │ match v203 with │
00:00:36 #1430 [Verbose] > │ | US1_0 -> (* None *) │
00:00:36 #1431 [Verbose] > │ 0L │
00:00:36 #1432 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:36 #1433 [Verbose] > │ v204 │
00:00:36 #1434 [Verbose] > │ v186.[int v189] <- v206 │
00:00:36 #1435 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:36 #1436 [Verbose] > │ v187.l0 <- v207 │
00:00:36 #1437 [Verbose] > │ () │
00:00:36 #1438 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:36 #1439 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:36 #1440 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:36 #1441 [Verbose] > │ while method22(v208, v210) do │
00:00:36 #1442 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:36 #1443 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:36 #1444 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:36 #1445 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:36 #1446 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:36 #1447 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:36 #1448 [Verbose] > │ v210.l0 <- v217 │
00:00:36 #1449 [Verbose] > │ v210.l1 <- v218 │
00:00:36 #1450 [Verbose] > │ v210.l2 <- v216 │
00:00:36 #1451 [Verbose] > │ () │
00:00:36 #1452 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:36 #1453 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:36 #1454 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:36 #1455 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:36 #1456 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:36 #1457 [Verbose] > │ a, b) |> Map.ofArray │
00:00:36 #1458 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:36 #1459 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:36 #1460 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1461 [Verbose] > │ while method4(v175, v226) do │
00:00:36 #1462 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:36 #1463 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:36 #1464 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:36 #1465 [Verbose] > │ let v232 : int32 = 0 │
00:00:36 #1466 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:36 #1467 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:36 #1468 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:36 #1469 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:36 #1470 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:36 #1471 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:36 #1472 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:36 #1473 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:36 #1474 [Verbose] > │ v226.l0 <- v240 │
00:00:36 #1475 [Verbose] > │ () │
00:00:36 #1476 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #1477 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:36 #1478 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1479 [Verbose] > │ while method4(v241, v242) do │
00:00:36 #1480 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:36 #1481 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:36 #1482 [Verbose] > │ match v246 with │
00:00:36 #1483 [Verbose] > │ | US0_0 -> (* None *) │
00:00:36 #1484 [Verbose] > │ let mutable result = None │
00:00:36 #1485 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #1486 [Verbose] > │ () │
00:00:36 #1487 [Verbose] > │ #endif │
00:00:36 #1488 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #1489 [Verbose] > │ () │
00:00:36 #1490 [Verbose] > │ #endif │
00:00:36 #1491 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1492 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1493 [Verbose] > │ () │
00:00:36 #1494 [Verbose] > │ #endif │
00:00:36 #1495 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1496 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1497 [Verbose] > │ () │
00:00:36 #1498 [Verbose] > │ #endif │
00:00:36 #1499 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1500 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1501 [Verbose] > │ () │
00:00:36 #1502 [Verbose] > │ #endif │
00:00:36 #1503 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1504 [Verbose] > │ result |> Option.get │
00:00:36 #1505 [Verbose] > │ () │
00:00:36 #1506 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:36 #1507 [Verbose] > │ let mutable result = None │
00:00:36 #1508 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #1509 [Verbose] > │ () │
00:00:36 #1510 [Verbose] > │ #endif │
00:00:36 #1511 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #1512 [Verbose] > │ () │
00:00:36 #1513 [Verbose] > │ #endif │
00:00:36 #1514 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1515 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:36 #1516 [Verbose] > │ () │
00:00:36 #1517 [Verbose] > │ #endif │
00:00:36 #1518 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1519 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:36 #1520 [Verbose] > │ () │
00:00:36 #1521 [Verbose] > │ #endif │
00:00:36 #1522 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1523 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:36 #1524 [Verbose] > │ () │
00:00:36 #1525 [Verbose] > │ #endif │
00:00:36 #1526 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1527 [Verbose] > │ result |> Option.get │
00:00:36 #1528 [Verbose] > │ () │
00:00:36 #1529 [Verbose] > │ let v248 : string = "\t| " │
00:00:36 #1530 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:36 #1531 [Verbose] > │ System.Console.WriteLine v249 │
00:00:36 #1532 [Verbose] > │ let mutable result = None │
00:00:36 #1533 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:36 #1534 [Verbose] > │ () │
00:00:36 #1535 [Verbose] > │ #endif │
00:00:36 #1536 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:36 #1537 [Verbose] > │ () │
00:00:36 #1538 [Verbose] > │ #endif │
00:00:36 #1539 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1540 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1541 [Verbose] > │ () │
00:00:36 #1542 [Verbose] > │ #endif │
00:00:36 #1543 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:36 #1544 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1545 [Verbose] > │ () │
00:00:36 #1546 [Verbose] > │ #endif │
00:00:36 #1547 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:36 #1548 [Verbose] > │ System.Console.ResetColor () │
00:00:36 #1549 [Verbose] > │ () │
00:00:36 #1550 [Verbose] > │ #endif │
00:00:36 #1551 [Verbose] > │ |> fun x -> result <- Some x │
00:00:36 #1552 [Verbose] > │ result |> Option.get │
00:00:36 #1553 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:36 #1554 [Verbose] > │ v242.l0 <- v250 │
00:00:36 #1555 [Verbose] > │ () │
00:00:36 #1556 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:36 #1557 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:36 #1558 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1559 [Verbose] > │ while method4(v87, v252) do │
00:00:36 #1560 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:36 #1561 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:36 #1562 [Verbose] > │ (int64 [])) = v11.[int v254] │
00:00:36 #1563 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:36 #1564 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:36 #1565 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:36 #1566 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:36 #1567 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1568 [Verbose] > │ while method4(v260, v262) do │
00:00:36 #1569 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:36 #1570 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:36 #1571 [Verbose] > │ let v266 : float = v259 v265 │
00:00:36 #1572 [Verbose] > │ v261.[int v264] <- v266 │
00:00:36 #1573 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:36 #1574 [Verbose] > │ v262.l0 <- v267 │
00:00:36 #1575 [Verbose] > │ () │
00:00:36 #1576 [Verbose] > │ v251.[int v254] <- v261 │
00:00:36 #1577 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:36 #1578 [Verbose] > │ v252.l0 <- v268 │
00:00:36 #1579 [Verbose] > │ () │
00:00:36 #1580 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:36 #1581 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:36 #1582 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:36 #1583 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:36 #1584 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1585 [Verbose] > │ while method4(v270, v272) do │
00:00:36 #1586 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:36 #1587 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:36 #1588 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:36 #1589 [Verbose] > │ v271.[int v274] <- v276 │
00:00:36 #1590 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:36 #1591 [Verbose] > │ v272.l0 <- v277 │
00:00:36 #1592 [Verbose] > │ () │
00:00:36 #1593 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:36 #1594 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:36 #1595 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:36 #1596 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:36 #1597 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1598 [Verbose] > │ while method4(v279, v281) do │
00:00:36 #1599 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:36 #1600 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:36 #1601 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:36 #1602 [Verbose] > │ v280.[int v283] <- v285 │
00:00:36 #1603 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:36 #1604 [Verbose] > │ v281.l0 <- v286 │
00:00:36 #1605 [Verbose] > │ () │
00:00:36 #1606 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:36 #1607 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:36 #1608 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:36 #1609 [Verbose] > │ while method22(v287, v289) do │
00:00:36 #1610 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:36 #1611 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:36 #1612 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:36 #1613 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:36 #1614 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:36 #1615 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:36 #1616 [Verbose] > │ v289.l0 <- v296 │
00:00:36 #1617 [Verbose] > │ v289.l1 <- v297 │
00:00:36 #1618 [Verbose] > │ v289.l2 <- v295 │
00:00:36 #1619 [Verbose] > │ () │
00:00:36 #1620 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:36 #1621 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:36 #1622 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:36 #1623 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:36 #1624 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #1625 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:36 #1626 [Verbose] > │ System.Console.WriteLine v303 │
00:00:36 #1627 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure6() │
00:00:36 #1628 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:36 #1629 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:36 #1630 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:36 #1631 [Verbose] > │ while method4(v306, v307) do │
00:00:36 #1632 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:36 #1633 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:36 #1634 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:36 #1635 [Verbose] > │ " │
00:00:36 #1636 [Verbose] > │ System.Console.WriteLine v312 │
00:00:36 #1637 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:36 #1638 [Verbose] > │ v307.l0 <- v313 │
00:00:36 #1639 [Verbose] > │ () │
00:00:36 #1640 [Verbose] > │ () │
00:00:36 #1641 [Verbose] > │ method0() │
00:00:36 #1642 [Verbose] > │ │
00:00:36 #1643 [Verbose] > │ │
00:00:36 #1644 [Verbose] > │ │
00:00:36 #1645 [Verbose] > │ Test: v0 │
00:00:36 #1646 [Verbose] > │ │
00:00:36 #1647 [Verbose] > │ Solution: struct ("a", "a") │
00:00:36 #1648 [Verbose] > │ Test case 1. A. Time: 164 │
00:00:36 #1649 [Verbose] > │ Test case 2. B. Time: 152 │
00:00:36 #1650 [Verbose] > │ │
00:00:36 #1651 [Verbose] > │ Solution: struct ("b", "b") │
00:00:36 #1652 [Verbose] > │ Test case 1. A. Time: 148 │
00:00:36 #1653 [Verbose] > │ Test case 2. B. Time: 166 │
00:00:36 #1654 [Verbose] > │ │
00:00:36 #1655 [Verbose] > │ Input | Expected | Result | Best │
00:00:36 #1656 [Verbose] > │ --- | --- | --- | --- │
00:00:36 #1657 [Verbose] > │ struct ("a", "a") | "a" | "a" | struct (2L, 152L) │
00:00:36 #1658 [Verbose] > │ struct ("b", "b") | "b" | "b" | struct (1L, 148L) │
00:00:36 #1659 [Verbose] > │ │
00:00:36 #1660 [Verbose] > │ Average Ranking │
00:00:36 #1661 [Verbose] > │ Test case 1. Average Time: 156L │
00:00:36 #1662 [Verbose] > │ Test case 2. Average Time: 159L │
00:00:36 #1663 [Verbose] > │ │
00:00:36 #1664 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #1665 [Verbose] >
00:00:36 #1666 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 #1667 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 #1668 [Verbose] > │ ## emptyTests │
00:00:36 #1669 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #1670 [Verbose] >
00:00:36 #1671 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 #1672 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 #1673 [Verbose] > │ Test: Empty │
00:00:36 #1674 [Verbose] > │ │
00:00:36 #1675 [Verbose] > │ Solution: 0 │
00:00:36 #1676 [Verbose] > │ Test case 1. A. Time: 61L │
00:00:36 #1677 [Verbose] > │ │
00:00:36 #1678 [Verbose] > │ Solution: 2 │
00:00:36 #1679 [Verbose] > │ Test case 1. A. Time: 62L │
00:00:36 #1680 [Verbose] > │ │
00:00:36 #1681 [Verbose] > │ Solution: 5 │
00:00:36 #1682 [Verbose] > │ Test case 1. A. Time: 70L │
00:00:36 #1683 [Verbose] > │ │
00:00:36 #1684 [Verbose] > │ Input | Expected | Result | Best │
00:00:36 #1685 [Verbose] > │ --- | --- | --- | --- │
00:00:36 #1686 [Verbose] > │ 0 | 0 | 0 | (1, 61) │
00:00:36 #1687 [Verbose] > │ 2 | 2 | 2 | (1, 62) │
00:00:36 #1688 [Verbose] > │ 5 | 5 | 5 | (1, 70) │
00:00:36 #1689 [Verbose] > │ │
00:00:36 #1690 [Verbose] > │ Averages │
00:00:36 #1691 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:36 #1692 [Verbose] > │ │
00:00:36 #1693 [Verbose] > │ Ranking │
00:00:36 #1694 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:36 #1695 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #1696 [Verbose] >
00:00:36 #1697 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #1698 [Verbose] > // // test
00:00:36 #1699 [Verbose] >
00:00:36 #1700 [Verbose] > inl get_solutions () =
00:00:36 #1701 [Verbose] > [[
00:00:36 #1702 [Verbose] > "A",
00:00:36 #1703 [Verbose] > fun n =>
00:00:36 #1704 [Verbose] > n + 1f64
00:00:36 #1705 [Verbose] > ]]
00:00:36 #1706 [Verbose] >
00:00:36 #1707 [Verbose] > inl rec empty_1_tests () =
00:00:36 #1708 [Verbose] > inl test_cases = [[
00:00:36 #1709 [Verbose] > 0, 1
00:00:36 #1710 [Verbose] > 2, 3
00:00:36 #1711 [Verbose] > 5, 6
00:00:36 #1712 [Verbose] > ]]
00:00:36 #1713 [Verbose] >
00:00:36 #1714 [Verbose] > inl solutions = get_solutions ()
00:00:36 #1715 [Verbose] >
00:00:36 #1716 [Verbose] > // inl is_fast () = true
00:00:36 #1717 [Verbose] >
00:00:36 #1718 [Verbose] > inl count =
00:00:36 #1719 [Verbose] > if is_fast ()
00:00:36 #1720 [Verbose] > then 1000i32
00:00:36 #1721 [Verbose] > else 2000000i32
00:00:36 #1722 [Verbose] >
00:00:36 #1723 [Verbose] > run_all (nameof empty_1_tests) count solutions test_cases
00:00:36 #1724 [Verbose] > |> sort_result_list
00:00:36 #1725 [Verbose] >
00:00:36 #1726 [Verbose] > empty_1_tests ()
00:00:44 #1727 [Verbose] >
00:00:44 #1728 [Verbose] > ╭─[ 7.80s - stdout ]───────────────────────────────────────────────────────────╮
00:00:44 #1729 [Verbose] > │ type UH0 = │
00:00:44 #1730 [Verbose] > │ | UH0_0 of float * float * UH0 │
00:00:44 #1731 [Verbose] > │ | UH0_1 │
00:00:44 #1732 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:00:44 #1733 [Verbose] > │ and UH1 = │
00:00:44 #1734 [Verbose] > │ | UH1_0 of int32 * string * (float -> float) * UH1 │
00:00:44 #1735 [Verbose] > │ | UH1_1 │
00:00:44 #1736 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:44 #1737 [Verbose] > │ and UH2 = │
00:00:44 #1738 [Verbose] > │ | UH2_0 of string * UH2 │
00:00:44 #1739 [Verbose] > │ | UH2_1 │
00:00:44 #1740 [Verbose] > │ and [<Struct>] US0 = │
00:00:44 #1741 [Verbose] > │ | US0_0 │
00:00:44 #1742 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:00:44 #1743 [Verbose] > │ and UH3 = │
00:00:44 #1744 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:00:44 #1745 [Verbose] > │ | UH3_1 │
00:00:44 #1746 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:00:44 #1747 [Verbose] > │ and UH4 = │
00:00:44 #1748 [Verbose] > │ | UH4_0 of UH2 * US0 * UH4 │
00:00:44 #1749 [Verbose] > │ | UH4_1 │
00:00:44 #1750 [Verbose] > │ and [<Struct>] US1 = │
00:00:44 #1751 [Verbose] > │ | US1_0 │
00:00:44 #1752 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:00:44 #1753 [Verbose] > │ and UH5 = │
00:00:44 #1754 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:00:44 #1755 [Verbose] > │ | UH5_1 │
00:00:44 #1756 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:00:44 #1757 [Verbose] > │ and UH6 = │
00:00:44 #1758 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:00:44 #1759 [Verbose] > │ | UH6_1 │
00:00:44 #1760 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:00:44 #1761 [Verbose] > │ match v0 with │
00:00:44 #1762 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1763 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:44 #1764 [Verbose] > │ method2(v4, v5) │
00:00:44 #1765 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:44 #1766 [Verbose] > │ v1 │
00:00:44 #1767 [Verbose] > │ and method3 (v0 : (struct (float * float) []), v1 : UH0, v2 : uint64) : │
00:00:44 #1768 [Verbose] > │ uint64 = │
00:00:44 #1769 [Verbose] > │ match v1 with │
00:00:44 #1770 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:44 #1771 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:44 #1772 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:44 #1773 [Verbose] > │ method3(v0, v5, v6) │
00:00:44 #1774 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:44 #1775 [Verbose] > │ v2 │
00:00:44 #1776 [Verbose] > │ and method1 (v0 : UH0) : (struct (float * float) []) = │
00:00:44 #1777 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:44 #1778 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:00:44 #1779 [Verbose] > │ let v3 : (struct (float * float) []) = Array.zeroCreate<struct (float * │
00:00:44 #1780 [Verbose] > │ float)> (System.Convert.ToInt32(v2)) │
00:00:44 #1781 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:44 #1782 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:00:44 #1783 [Verbose] > │ v3 │
00:00:44 #1784 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:00:44 #1785 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:44 #1786 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:44 #1787 [Verbose] > │ v3 │
00:00:44 #1788 [Verbose] > │ and closure1 () (v0 : float) : float = │
00:00:44 #1789 [Verbose] > │ let v1 : float = v0 + 1.0 │
00:00:44 #1790 [Verbose] > │ v1 │
00:00:44 #1791 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 = │
00:00:44 #1792 [Verbose] > │ match v0 with │
00:00:44 #1793 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:44 #1794 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:44 #1795 [Verbose] > │ method6(v5, v6) │
00:00:44 #1796 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:44 #1797 [Verbose] > │ v1 │
00:00:44 #1798 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (float -> float)) []), v1 : UH1, │
00:00:44 #1799 [Verbose] > │ v2 : uint64) : uint64 = │
00:00:44 #1800 [Verbose] > │ match v1 with │
00:00:44 #1801 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:44 #1802 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:44 #1803 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:44 #1804 [Verbose] > │ method7(v0, v6, v7) │
00:00:44 #1805 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:44 #1806 [Verbose] > │ v2 │
00:00:44 #1807 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (float -> float)) []) = │
00:00:44 #1808 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:44 #1809 [Verbose] > │ let v2 : uint64 = method6(v0, v1) │
00:00:44 #1810 [Verbose] > │ let v3 : (struct (int32 * string * (float -> float)) []) = │
00:00:44 #1811 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (float -> float))> │
00:00:44 #1812 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:44 #1813 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:44 #1814 [Verbose] > │ let v5 : uint64 = method7(v3, v0, v4) │
00:00:44 #1815 [Verbose] > │ v3 │
00:00:44 #1816 [Verbose] > │ and method8 (v0 : Mut1) : bool = │
00:00:44 #1817 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:44 #1818 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:00:44 #1819 [Verbose] > │ v2 │
00:00:44 #1820 [Verbose] > │ and closure2 (v0 : float, v1 : (float -> float)) (v2 : int32) : float = │
00:00:44 #1821 [Verbose] > │ v1 v0 │
00:00:44 #1822 [Verbose] > │ and method9 (v0 : float, v1 : (float []), v2 : uint64) : bool = │
00:00:44 #1823 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:00:44 #1824 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:44 #1825 [Verbose] > │ if v4 then │
00:00:44 #1826 [Verbose] > │ let v5 : float = v1.[int v2] │
00:00:44 #1827 [Verbose] > │ let v6 : bool = v0 = v5 │
00:00:44 #1828 [Verbose] > │ if v6 then │
00:00:44 #1829 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:44 #1830 [Verbose] > │ method9(v0, v1, v7) │
00:00:44 #1831 [Verbose] > │ else │
00:00:44 #1832 [Verbose] > │ false │
00:00:44 #1833 [Verbose] > │ else │
00:00:44 #1834 [Verbose] > │ true │
00:00:44 #1835 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool = │
00:00:44 #1836 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:44 #1837 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:44 #1838 [Verbose] > │ v3 │
00:00:44 #1839 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:44 #1840 [Verbose] > │ match v0 with │
00:00:44 #1841 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1842 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:00:44 #1843 [Verbose] > │ method11(v4, v5) │
00:00:44 #1844 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:44 #1845 [Verbose] > │ v1 │
00:00:44 #1846 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 = │
00:00:44 #1847 [Verbose] > │ match v0 with │
00:00:44 #1848 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1849 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:44 #1850 [Verbose] > │ method13(v4, v5) │
00:00:44 #1851 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:44 #1852 [Verbose] > │ v1 │
00:00:44 #1853 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:00:44 #1854 [Verbose] > │ int32 = │
00:00:44 #1855 [Verbose] > │ match v1 with │
00:00:44 #1856 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:00:44 #1857 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:44 #1858 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:44 #1859 [Verbose] > │ method14(v0, v5, v6) │
00:00:44 #1860 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:44 #1861 [Verbose] > │ v2 │
00:00:44 #1862 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) = │
00:00:44 #1863 [Verbose] > │ let v1 : int32 = 0 │
00:00:44 #1864 [Verbose] > │ let v2 : int32 = method13(v0, v1) │
00:00:44 #1865 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:00:44 #1866 [Verbose] > │ int64)> (v2) │
00:00:44 #1867 [Verbose] > │ let v4 : int32 = 0 │
00:00:44 #1868 [Verbose] > │ let v5 : int32 = method14(v3, v0, v4) │
00:00:44 #1869 [Verbose] > │ v3 │
00:00:44 #1870 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool = │
00:00:44 #1871 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:44 #1872 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:44 #1873 [Verbose] > │ v3 │
00:00:44 #1874 [Verbose] > │ and closure3 () struct (v0 : int64, v1 : int64) : int64 = │
00:00:44 #1875 [Verbose] > │ v1 │
00:00:44 #1876 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 = │
00:00:44 #1877 [Verbose] > │ match v0 with │
00:00:44 #1878 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1879 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:44 #1880 [Verbose] > │ method17(v4, v5) │
00:00:44 #1881 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:44 #1882 [Verbose] > │ v1 │
00:00:44 #1883 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64 │
00:00:44 #1884 [Verbose] > │ = │
00:00:44 #1885 [Verbose] > │ match v1 with │
00:00:44 #1886 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:00:44 #1887 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:44 #1888 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:44 #1889 [Verbose] > │ method18(v0, v5, v6) │
00:00:44 #1890 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:44 #1891 [Verbose] > │ v2 │
00:00:44 #1892 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) = │
00:00:44 #1893 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:44 #1894 [Verbose] > │ let v2 : uint64 = method17(v0, v1) │
00:00:44 #1895 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:44 #1896 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:44 #1897 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:44 #1898 [Verbose] > │ let v5 : uint64 = method18(v3, v0, v4) │
00:00:44 #1899 [Verbose] > │ v3 │
00:00:44 #1900 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 = │
00:00:44 #1901 [Verbose] > │ match v0 with │
00:00:44 #1902 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:44 #1903 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:00:44 #1904 [Verbose] > │ method20(v3, v4) │
00:00:44 #1905 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:44 #1906 [Verbose] > │ v1 │
00:00:44 #1907 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:00:44 #1908 [Verbose] > │ match v1 with │
00:00:44 #1909 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:44 #1910 [Verbose] > │ v0.[int v2] <- v3 │
00:00:44 #1911 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:00:44 #1912 [Verbose] > │ method21(v0, v4, v5) │
00:00:44 #1913 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:44 #1914 [Verbose] > │ v2 │
00:00:44 #1915 [Verbose] > │ and method19 (v0 : UH2) : (string []) = │
00:00:44 #1916 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:44 #1917 [Verbose] > │ let v2 : uint64 = method20(v0, v1) │
00:00:44 #1918 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:00:44 #1919 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:44 #1920 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:44 #1921 [Verbose] > │ let v5 : uint64 = method21(v3, v0, v4) │
00:00:44 #1922 [Verbose] > │ v3 │
00:00:44 #1923 [Verbose] > │ and closure4 () (v0 : int64) : US1 = │
00:00:44 #1924 [Verbose] > │ US1_1(v0) │
00:00:44 #1925 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool = │
00:00:44 #1926 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:44 #1927 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:44 #1928 [Verbose] > │ v3 │
00:00:44 #1929 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:44 #1930 [Verbose] > │ match v0 with │
00:00:44 #1931 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1932 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:00:44 #1933 [Verbose] > │ method23(v4, v5) │
00:00:44 #1934 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:44 #1935 [Verbose] > │ v1 │
00:00:44 #1936 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 = │
00:00:44 #1937 [Verbose] > │ match v0 with │
00:00:44 #1938 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1939 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:44 #1940 [Verbose] > │ method25(v4, v5) │
00:00:44 #1941 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:44 #1942 [Verbose] > │ v1 │
00:00:44 #1943 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:00:44 #1944 [Verbose] > │ int32 = │
00:00:44 #1945 [Verbose] > │ match v1 with │
00:00:44 #1946 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:44 #1947 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:44 #1948 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:44 #1949 [Verbose] > │ method26(v0, v5, v6) │
00:00:44 #1950 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:44 #1951 [Verbose] > │ v2 │
00:00:44 #1952 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:44 #1953 [Verbose] > │ let v1 : int32 = 0 │
00:00:44 #1954 [Verbose] > │ let v2 : int32 = method25(v0, v1) │
00:00:44 #1955 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:44 #1956 [Verbose] > │ int64)> (v2) │
00:00:44 #1957 [Verbose] > │ let v4 : int32 = 0 │
00:00:44 #1958 [Verbose] > │ let v5 : int32 = method26(v3, v0, v4) │
00:00:44 #1959 [Verbose] > │ v3 │
00:00:44 #1960 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:00:44 #1961 [Verbose] > │ match v0 with │
00:00:44 #1962 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:44 #1963 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:44 #1964 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:00:44 #1965 [Verbose] > │ method27(v4, v6, v5) │
00:00:44 #1966 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:44 #1967 [Verbose] > │ struct (v1, v2) │
00:00:44 #1968 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:44 #1969 [Verbose] > │ match v0 with │
00:00:44 #1970 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #1971 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:00:44 #1972 [Verbose] > │ method28(v4, v5) │
00:00:44 #1973 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:44 #1974 [Verbose] > │ v1 │
00:00:44 #1975 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:00:44 #1976 [Verbose] > │ match v1 with │
00:00:44 #1977 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:00:44 #1978 [Verbose] > │ let v6 : UH2 = method29(v0, v5, v2) │
00:00:44 #1979 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:00:44 #1980 [Verbose] > │ let v8 : int32 = int32 v7 │
00:00:44 #1981 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:00:44 #1982 [Verbose] > │ UH2_0(v9, v6) │
00:00:44 #1983 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:44 #1984 [Verbose] > │ v2 │
00:00:44 #1985 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 = │
00:00:44 #1986 [Verbose] > │ match v0 with │
00:00:44 #1987 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:44 #1988 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:44 #1989 [Verbose] > │ method31(v3, v4) │
00:00:44 #1990 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:44 #1991 [Verbose] > │ v1 │
00:00:44 #1992 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:00:44 #1993 [Verbose] > │ match v1 with │
00:00:44 #1994 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:44 #1995 [Verbose] > │ v0.[int v2] <- v3 │
00:00:44 #1996 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:44 #1997 [Verbose] > │ method32(v0, v4, v5) │
00:00:44 #1998 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:44 #1999 [Verbose] > │ v2 │
00:00:44 #2000 [Verbose] > │ and method30 (v0 : UH2) : (string []) = │
00:00:44 #2001 [Verbose] > │ let v1 : int32 = 0 │
00:00:44 #2002 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:00:44 #2003 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:00:44 #2004 [Verbose] > │ let v4 : int32 = 0 │
00:00:44 #2005 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:00:44 #2006 [Verbose] > │ v3 │
00:00:44 #2007 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 = │
00:00:44 #2008 [Verbose] > │ match v0 with │
00:00:44 #2009 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:44 #2010 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:44 #2011 [Verbose] > │ method34(v4, v5) │
00:00:44 #2012 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:44 #2013 [Verbose] > │ v1 │
00:00:44 #2014 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:00:44 #2015 [Verbose] > │ uint64 = │
00:00:44 #2016 [Verbose] > │ match v1 with │
00:00:44 #2017 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:44 #2018 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:44 #2019 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:44 #2020 [Verbose] > │ method35(v0, v5, v6) │
00:00:44 #2021 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:44 #2022 [Verbose] > │ v2 │
00:00:44 #2023 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:44 #2024 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:44 #2025 [Verbose] > │ let v2 : uint64 = method34(v0, v1) │
00:00:44 #2026 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:44 #2027 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:00:44 #2028 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:44 #2029 [Verbose] > │ let v5 : uint64 = method35(v3, v0, v4) │
00:00:44 #2030 [Verbose] > │ v3 │
00:00:44 #2031 [Verbose] > │ and closure5 () struct (v0 : int32, v1 : int64) : int64 = │
00:00:44 #2032 [Verbose] > │ v1 │
00:00:44 #2033 [Verbose] > │ and closure0 () () : unit = │
00:00:44 #2034 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:44 #2035 [Verbose] > │ let v1 : string = nameof v0 │
00:00:44 #2036 [Verbose] > │ let v2 : string = "" │
00:00:44 #2037 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2038 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2039 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:44 #2040 [Verbose] > │ System.Console.WriteLine v3 │
00:00:44 #2041 [Verbose] > │ let v4 : float = 0.0 │
00:00:44 #2042 [Verbose] > │ let v5 : float = 1.0 │
00:00:44 #2043 [Verbose] > │ let v6 : float = 2.0 │
00:00:44 #2044 [Verbose] > │ let v7 : float = 3.0 │
00:00:44 #2045 [Verbose] > │ let v8 : float = 5.0 │
00:00:44 #2046 [Verbose] > │ let v9 : float = 6.0 │
00:00:44 #2047 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:44 #2048 [Verbose] > │ let v11 : UH0 = UH0_0(v8, v9, v10) │
00:00:44 #2049 [Verbose] > │ let v12 : UH0 = UH0_0(v6, v7, v11) │
00:00:44 #2050 [Verbose] > │ let v13 : UH0 = UH0_0(v4, v5, v12) │
00:00:44 #2051 [Verbose] > │ let v14 : (struct (float * float) []) = method1(v13) │
00:00:44 #2052 [Verbose] > │ let v15 : uint64 = System.Convert.ToUInt64 v14.Length │
00:00:44 #2053 [Verbose] > │ let v16 : (struct (string * string * string * (int64 [])) []) = │
00:00:44 #2054 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:44 #2055 [Verbose] > │ (System.Convert.ToInt32(v15)) │
00:00:44 #2056 [Verbose] > │ let v17 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2057 [Verbose] > │ while method4(v15, v17) do │
00:00:44 #2058 [Verbose] > │ let v19 : uint64 = v17.l0 │
00:00:44 #2059 [Verbose] > │ let struct (v20 : float, v21 : float) = v14.[int v19] │
00:00:44 #2060 [Verbose] > │ let v22 : string = $"%A{v20}" │
00:00:44 #2061 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2062 [Verbose] > │ let v23 : string = $"Solution: {v22} " │
00:00:44 #2063 [Verbose] > │ System.Console.WriteLine v23 │
00:00:44 #2064 [Verbose] > │ let v24 : int32 = 0 │
00:00:44 #2065 [Verbose] > │ let v25 : string = "A" │
00:00:44 #2066 [Verbose] > │ let v26 : (float -> float) = closure1() │
00:00:44 #2067 [Verbose] > │ let v27 : UH1 = UH1_1 │
00:00:44 #2068 [Verbose] > │ let v28 : UH1 = UH1_0(v24, v25, v26, v27) │
00:00:44 #2069 [Verbose] > │ let v29 : (struct (int32 * string * (float -> float)) []) = │
00:00:44 #2070 [Verbose] > │ method5(v28) │
00:00:44 #2071 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:44 #2072 [Verbose] > │ let v31 : (struct (float * int64) []) = Array.zeroCreate<struct │
00:00:44 #2073 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30)) │
00:00:44 #2074 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2075 [Verbose] > │ while method4(v30, v32) do │
00:00:44 #2076 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:44 #2077 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │
00:00:44 #2078 [Verbose] > │ v29.[int v34] │
00:00:44 #2079 [Verbose] > │ let mutable result = None │
00:00:44 #2080 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:44 #2081 [Verbose] > │ () │
00:00:44 #2082 [Verbose] > │ #endif │
00:00:44 #2083 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:44 #2084 [Verbose] > │ () │
00:00:44 #2085 [Verbose] > │ #endif │
00:00:44 #2086 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2087 [Verbose] > │ System.GC.Collect () │
00:00:44 #2088 [Verbose] > │ () │
00:00:44 #2089 [Verbose] > │ #endif │
00:00:44 #2090 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2091 [Verbose] > │ System.GC.Collect () │
00:00:44 #2092 [Verbose] > │ () │
00:00:44 #2093 [Verbose] > │ #endif │
00:00:44 #2094 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:44 #2095 [Verbose] > │ System.GC.Collect () │
00:00:44 #2096 [Verbose] > │ () │
00:00:44 #2097 [Verbose] > │ #endif │
00:00:44 #2098 [Verbose] > │ |> fun x -> result <- Some x │
00:00:44 #2099 [Verbose] > │ result |> Option.get │
00:00:44 #2100 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:44 #2101 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:44 #2102 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:44 #2103 [Verbose] > │ v39.Start () │
00:00:44 #2104 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:44 #2105 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:44 #2106 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:44 #2107 [Verbose] > │ while method8(v42) do │
00:00:44 #2108 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:44 #2109 [Verbose] > │ v41.[int v44] <- v44 │
00:00:44 #2110 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:44 #2111 [Verbose] > │ v42.l0 <- v45 │
00:00:44 #2112 [Verbose] > │ () │
00:00:44 #2113 [Verbose] > │ let v46 : (int32 -> float) = closure2(v20, v37) │
00:00:44 #2114 [Verbose] > │ let v47 : (float []) = v41 |> Array.Parallel.map v46 │
00:00:44 #2115 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:44 #2116 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:44 #2117 [Verbose] > │ let v50 : float = v47.[int v49] │
00:00:44 #2118 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:44 #2119 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:44 #2120 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:44 #2121 [Verbose] > │ System.Console.WriteLine v53 │
00:00:44 #2122 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:44 #2123 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:44 #2124 [Verbose] > │ v32.l0 <- v54 │
00:00:44 #2125 [Verbose] > │ () │
00:00:44 #2126 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:44 #2127 [Verbose] > │ let v56 : (float []) = Array.zeroCreate<float> │
00:00:44 #2128 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:44 #2129 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2130 [Verbose] > │ while method4(v55, v57) do │
00:00:44 #2131 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:44 #2132 [Verbose] > │ let struct (v60 : float, v61 : int64) = v31.[int v59] │
00:00:44 #2133 [Verbose] > │ v56.[int v59] <- v60 │
00:00:44 #2134 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:44 #2135 [Verbose] > │ v57.l0 <- v62 │
00:00:44 #2136 [Verbose] > │ () │
00:00:44 #2137 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:44 #2138 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:44 #2139 [Verbose] > │ if v64 then │
00:00:44 #2140 [Verbose] > │ () │
00:00:44 #2141 [Verbose] > │ else │
00:00:44 #2142 [Verbose] > │ let v65 : float = v56.[int 0UL] │
00:00:44 #2143 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:44 #2144 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:44 #2145 [Verbose] > │ if v67 then │
00:00:44 #2146 [Verbose] > │ () │
00:00:44 #2147 [Verbose] > │ else │
00:00:44 #2148 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:44 #2149 [Verbose] > │ failwith<unit> v68 │
00:00:44 #2150 [Verbose] > │ let v69 : string = $"%A{v21}" │
00:00:44 #2151 [Verbose] > │ let v70 : (float []) = Array.zeroCreate<float> │
00:00:44 #2152 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:44 #2153 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2154 [Verbose] > │ while method4(v55, v71) do │
00:00:44 #2155 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:44 #2156 [Verbose] > │ let struct (v74 : float, v75 : int64) = v31.[int v73] │
00:00:44 #2157 [Verbose] > │ v70.[int v73] <- v74 │
00:00:44 #2158 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:44 #2159 [Verbose] > │ v71.l0 <- v76 │
00:00:44 #2160 [Verbose] > │ () │
00:00:44 #2161 [Verbose] > │ let v77 : float = v70.[int 0UL] │
00:00:44 #2162 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:44 #2163 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:44 #2164 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:44 #2165 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2166 [Verbose] > │ while method4(v55, v80) do │
00:00:44 #2167 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:44 #2168 [Verbose] > │ let struct (v83 : float, v84 : int64) = v31.[int v82] │
00:00:44 #2169 [Verbose] > │ v79.[int v82] <- v84 │
00:00:44 #2170 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:44 #2171 [Verbose] > │ v80.l0 <- v85 │
00:00:44 #2172 [Verbose] > │ () │
00:00:44 #2173 [Verbose] > │ v16.[int v19] <- struct (v69, v22, v78, v79) │
00:00:44 #2174 [Verbose] > │ let v86 : uint64 = v19 + 1UL │
00:00:44 #2175 [Verbose] > │ v17.l0 <- v86 │
00:00:44 #2176 [Verbose] > │ () │
00:00:44 #2177 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v16.Length │
00:00:44 #2178 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:44 #2179 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:44 #2180 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2181 [Verbose] > │ while method4(v87, v89) do │
00:00:44 #2182 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:44 #2183 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:44 #2184 [Verbose] > │ ])) = v16.[int v91] │
00:00:44 #2185 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:44 #2186 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:44 #2187 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:44 #2188 [Verbose] > │ while method10(v96, v98) do │
00:00:44 #2189 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:44 #2190 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:44 #2191 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:44 #2192 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:44 #2193 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:44 #2194 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:44 #2195 [Verbose] > │ v98.l0 <- v105 │
00:00:44 #2196 [Verbose] > │ v98.l1 <- v106 │
00:00:44 #2197 [Verbose] > │ v98.l2 <- v104 │
00:00:44 #2198 [Verbose] > │ () │
00:00:44 #2199 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:44 #2200 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:44 #2201 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:44 #2202 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:44 #2203 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:44 #2204 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:44 #2205 [Verbose] > │ (int64 * int64)> (v112) │
00:00:44 #2206 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:44 #2207 [Verbose] > │ while method15(v112, v114) do │
00:00:44 #2208 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:44 #2209 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:44 #2210 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:44 #2211 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:44 #2212 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:44 #2213 [Verbose] > │ v114.l0 <- v120 │
00:00:44 #2214 [Verbose] > │ () │
00:00:44 #2215 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure3() │
00:00:44 #2216 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:44 #2217 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:44 #2218 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:44 #2219 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:44 #2220 [Verbose] > │ let v131 : US0 = │
00:00:44 #2221 [Verbose] > │ if v126 then │
00:00:44 #2222 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:44 #2223 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:44 #2224 [Verbose] > │ US0_1(v127) │
00:00:44 #2225 [Verbose] > │ else │
00:00:44 #2226 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:44 #2227 [Verbose] > │ US0_1(v129) │
00:00:44 #2228 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:44 #2229 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:44 #2230 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:44 #2231 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:44 #2232 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:44 #2233 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:44 #2234 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:44 #2235 [Verbose] > │ v89.l0 <- v137 │
00:00:44 #2236 [Verbose] > │ () │
00:00:44 #2237 [Verbose] > │ let v138 : string = "Input" │
00:00:44 #2238 [Verbose] > │ let v139 : string = "Expected" │
00:00:44 #2239 [Verbose] > │ let v140 : string = "Result" │
00:00:44 #2240 [Verbose] > │ let v141 : string = "Best" │
00:00:44 #2241 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:44 #2242 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:44 #2243 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:44 #2244 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:44 #2245 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:44 #2246 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:44 #2247 [Verbose] > │ let v148 : string = "---" │
00:00:44 #2248 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:44 #2249 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:44 #2250 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:44 #2251 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:44 #2252 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:44 #2253 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:44 #2254 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:44 #2255 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:44 #2256 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:44 #2257 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:44 #2258 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:44 #2259 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:44 #2260 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:44 #2261 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:44 #2262 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:44 #2263 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2264 [Verbose] > │ while method4(v161, v163) do │
00:00:44 #2265 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:44 #2266 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:44 #2267 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:44 #2268 [Verbose] > │ if v166 then │
00:00:44 #2269 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:44 #2270 [Verbose] > │ struct (v167, v168) │
00:00:44 #2271 [Verbose] > │ else │
00:00:44 #2272 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:44 #2273 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:44 #2274 [Verbose] > │ struct (v170, v171) │
00:00:44 #2275 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:44 #2276 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:44 #2277 [Verbose] > │ v163.l0 <- v174 │
00:00:44 #2278 [Verbose] > │ () │
00:00:44 #2279 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:44 #2280 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:44 #2281 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:44 #2282 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2283 [Verbose] > │ while method4(v175, v177) do │
00:00:44 #2284 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:44 #2285 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:44 #2286 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:44 #2287 [Verbose] > │ v176.[int v179] <- v182 │
00:00:44 #2288 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:44 #2289 [Verbose] > │ v177.l0 <- v183 │
00:00:44 #2290 [Verbose] > │ () │
00:00:44 #2291 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:44 #2292 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:44 #2293 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:44 #2294 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:44 #2295 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2296 [Verbose] > │ while method4(v185, v187) do │
00:00:44 #2297 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:44 #2298 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:44 #2299 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:44 #2300 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:44 #2301 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:44 #2302 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2303 [Verbose] > │ while method4(v191, v193) do │
00:00:44 #2304 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:44 #2305 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:44 #2306 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:44 #2307 [Verbose] > │ v192.[int v195] <- v197 │
00:00:44 #2308 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:44 #2309 [Verbose] > │ v193.l0 <- v198 │
00:00:44 #2310 [Verbose] > │ () │
00:00:44 #2311 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:44 #2312 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:44 #2313 [Verbose] > │ let v201 : (int64 -> US1) = closure4() │
00:00:44 #2314 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:44 #2315 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:44 #2316 [Verbose] > │ let v206 : int64 = │
00:00:44 #2317 [Verbose] > │ match v203 with │
00:00:44 #2318 [Verbose] > │ | US1_0 -> (* None *) │
00:00:44 #2319 [Verbose] > │ 0L │
00:00:44 #2320 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:44 #2321 [Verbose] > │ v204 │
00:00:44 #2322 [Verbose] > │ v186.[int v189] <- v206 │
00:00:44 #2323 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:44 #2324 [Verbose] > │ v187.l0 <- v207 │
00:00:44 #2325 [Verbose] > │ () │
00:00:44 #2326 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:44 #2327 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:44 #2328 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:44 #2329 [Verbose] > │ while method22(v208, v210) do │
00:00:44 #2330 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:44 #2331 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:44 #2332 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:44 #2333 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:44 #2334 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:44 #2335 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:44 #2336 [Verbose] > │ v210.l0 <- v217 │
00:00:44 #2337 [Verbose] > │ v210.l1 <- v218 │
00:00:44 #2338 [Verbose] > │ v210.l2 <- v216 │
00:00:44 #2339 [Verbose] > │ () │
00:00:44 #2340 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:44 #2341 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:44 #2342 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:44 #2343 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:44 #2344 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:44 #2345 [Verbose] > │ a, b) |> Map.ofArray │
00:00:44 #2346 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:44 #2347 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:44 #2348 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2349 [Verbose] > │ while method4(v175, v226) do │
00:00:44 #2350 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:44 #2351 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:44 #2352 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:44 #2353 [Verbose] > │ let v232 : int32 = 0 │
00:00:44 #2354 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:44 #2355 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:44 #2356 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:44 #2357 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:44 #2358 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:44 #2359 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:44 #2360 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:44 #2361 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:44 #2362 [Verbose] > │ v226.l0 <- v240 │
00:00:44 #2363 [Verbose] > │ () │
00:00:44 #2364 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2365 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:44 #2366 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2367 [Verbose] > │ while method4(v241, v242) do │
00:00:44 #2368 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:44 #2369 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:44 #2370 [Verbose] > │ match v246 with │
00:00:44 #2371 [Verbose] > │ | US0_0 -> (* None *) │
00:00:44 #2372 [Verbose] > │ let mutable result = None │
00:00:44 #2373 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:44 #2374 [Verbose] > │ () │
00:00:44 #2375 [Verbose] > │ #endif │
00:00:44 #2376 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:44 #2377 [Verbose] > │ () │
00:00:44 #2378 [Verbose] > │ #endif │
00:00:44 #2379 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2380 [Verbose] > │ System.Console.ResetColor () │
00:00:44 #2381 [Verbose] > │ () │
00:00:44 #2382 [Verbose] > │ #endif │
00:00:44 #2383 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2384 [Verbose] > │ System.Console.ResetColor () │
00:00:44 #2385 [Verbose] > │ () │
00:00:44 #2386 [Verbose] > │ #endif │
00:00:44 #2387 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:44 #2388 [Verbose] > │ System.Console.ResetColor () │
00:00:44 #2389 [Verbose] > │ () │
00:00:44 #2390 [Verbose] > │ #endif │
00:00:44 #2391 [Verbose] > │ |> fun x -> result <- Some x │
00:00:44 #2392 [Verbose] > │ result |> Option.get │
00:00:44 #2393 [Verbose] > │ () │
00:00:44 #2394 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:44 #2395 [Verbose] > │ let mutable result = None │
00:00:44 #2396 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:44 #2397 [Verbose] > │ () │
00:00:44 #2398 [Verbose] > │ #endif │
00:00:44 #2399 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:44 #2400 [Verbose] > │ () │
00:00:44 #2401 [Verbose] > │ #endif │
00:00:44 #2402 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2403 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:44 #2404 [Verbose] > │ () │
00:00:44 #2405 [Verbose] > │ #endif │
00:00:44 #2406 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2407 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:44 #2408 [Verbose] > │ () │
00:00:44 #2409 [Verbose] > │ #endif │
00:00:44 #2410 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:44 #2411 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:44 #2412 [Verbose] > │ () │
00:00:44 #2413 [Verbose] > │ #endif │
00:00:44 #2414 [Verbose] > │ |> fun x -> result <- Some x │
00:00:44 #2415 [Verbose] > │ result |> Option.get │
00:00:44 #2416 [Verbose] > │ () │
00:00:44 #2417 [Verbose] > │ let v248 : string = "\t| " │
00:00:44 #2418 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:44 #2419 [Verbose] > │ System.Console.WriteLine v249 │
00:00:44 #2420 [Verbose] > │ let mutable result = None │
00:00:44 #2421 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:44 #2422 [Verbose] > │ () │
00:00:44 #2423 [Verbose] > │ #endif │
00:00:44 #2424 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:44 #2425 [Verbose] > │ () │
00:00:44 #2426 [Verbose] > │ #endif │
00:00:44 #2427 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2428 [Verbose] > │ System.Console.ResetColor () │
00:00:44 #2429 [Verbose] > │ () │
00:00:44 #2430 [Verbose] > │ #endif │
00:00:44 #2431 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2432 [Verbose] > │ System.Console.ResetColor () │
00:00:44 #2433 [Verbose] > │ () │
00:00:44 #2434 [Verbose] > │ #endif │
00:00:44 #2435 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:44 #2436 [Verbose] > │ System.Console.ResetColor () │
00:00:44 #2437 [Verbose] > │ () │
00:00:44 #2438 [Verbose] > │ #endif │
00:00:44 #2439 [Verbose] > │ |> fun x -> result <- Some x │
00:00:44 #2440 [Verbose] > │ result |> Option.get │
00:00:44 #2441 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:44 #2442 [Verbose] > │ v242.l0 <- v250 │
00:00:44 #2443 [Verbose] > │ () │
00:00:44 #2444 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:44 #2445 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:44 #2446 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2447 [Verbose] > │ while method4(v87, v252) do │
00:00:44 #2448 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:44 #2449 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:44 #2450 [Verbose] > │ (int64 [])) = v16.[int v254] │
00:00:44 #2451 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:44 #2452 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:44 #2453 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:44 #2454 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:44 #2455 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2456 [Verbose] > │ while method4(v260, v262) do │
00:00:44 #2457 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:44 #2458 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:44 #2459 [Verbose] > │ let v266 : float = v259 v265 │
00:00:44 #2460 [Verbose] > │ v261.[int v264] <- v266 │
00:00:44 #2461 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:44 #2462 [Verbose] > │ v262.l0 <- v267 │
00:00:44 #2463 [Verbose] > │ () │
00:00:44 #2464 [Verbose] > │ v251.[int v254] <- v261 │
00:00:44 #2465 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:44 #2466 [Verbose] > │ v252.l0 <- v268 │
00:00:44 #2467 [Verbose] > │ () │
00:00:44 #2468 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:44 #2469 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:44 #2470 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:44 #2471 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:44 #2472 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2473 [Verbose] > │ while method4(v270, v272) do │
00:00:44 #2474 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:44 #2475 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:44 #2476 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:44 #2477 [Verbose] > │ v271.[int v274] <- v276 │
00:00:44 #2478 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:44 #2479 [Verbose] > │ v272.l0 <- v277 │
00:00:44 #2480 [Verbose] > │ () │
00:00:44 #2481 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:44 #2482 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:44 #2483 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:44 #2484 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:44 #2485 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2486 [Verbose] > │ while method4(v279, v281) do │
00:00:44 #2487 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:44 #2488 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:44 #2489 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:44 #2490 [Verbose] > │ v280.[int v283] <- v285 │
00:00:44 #2491 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:44 #2492 [Verbose] > │ v281.l0 <- v286 │
00:00:44 #2493 [Verbose] > │ () │
00:00:44 #2494 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:44 #2495 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:44 #2496 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:44 #2497 [Verbose] > │ while method22(v287, v289) do │
00:00:44 #2498 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:44 #2499 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:44 #2500 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:44 #2501 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:44 #2502 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:44 #2503 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:44 #2504 [Verbose] > │ v289.l0 <- v296 │
00:00:44 #2505 [Verbose] > │ v289.l1 <- v297 │
00:00:44 #2506 [Verbose] > │ v289.l2 <- v295 │
00:00:44 #2507 [Verbose] > │ () │
00:00:44 #2508 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:44 #2509 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:44 #2510 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:44 #2511 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:44 #2512 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2513 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:44 #2514 [Verbose] > │ System.Console.WriteLine v303 │
00:00:44 #2515 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure5() │
00:00:44 #2516 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:44 #2517 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:44 #2518 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2519 [Verbose] > │ while method4(v306, v307) do │
00:00:44 #2520 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:44 #2521 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:44 #2522 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:44 #2523 [Verbose] > │ " │
00:00:44 #2524 [Verbose] > │ System.Console.WriteLine v312 │
00:00:44 #2525 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:44 #2526 [Verbose] > │ v307.l0 <- v313 │
00:00:44 #2527 [Verbose] > │ () │
00:00:44 #2528 [Verbose] > │ () │
00:00:44 #2529 [Verbose] > │ and method0 () : unit = │
00:00:44 #2530 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:44 #2531 [Verbose] > │ let v1 : string = nameof v0 │
00:00:44 #2532 [Verbose] > │ let v2 : string = "" │
00:00:44 #2533 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2534 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2535 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:44 #2536 [Verbose] > │ System.Console.WriteLine v3 │
00:00:44 #2537 [Verbose] > │ let v4 : float = 0.0 │
00:00:44 #2538 [Verbose] > │ let v5 : float = 1.0 │
00:00:44 #2539 [Verbose] > │ let v6 : float = 2.0 │
00:00:44 #2540 [Verbose] > │ let v7 : float = 3.0 │
00:00:44 #2541 [Verbose] > │ let v8 : float = 5.0 │
00:00:44 #2542 [Verbose] > │ let v9 : float = 6.0 │
00:00:44 #2543 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:44 #2544 [Verbose] > │ let v11 : UH0 = UH0_0(v8, v9, v10) │
00:00:44 #2545 [Verbose] > │ let v12 : UH0 = UH0_0(v6, v7, v11) │
00:00:44 #2546 [Verbose] > │ let v13 : UH0 = UH0_0(v4, v5, v12) │
00:00:44 #2547 [Verbose] > │ let v14 : (struct (float * float) []) = method1(v13) │
00:00:44 #2548 [Verbose] > │ let v15 : uint64 = System.Convert.ToUInt64 v14.Length │
00:00:44 #2549 [Verbose] > │ let v16 : (struct (string * string * string * (int64 [])) []) = │
00:00:44 #2550 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:44 #2551 [Verbose] > │ (System.Convert.ToInt32(v15)) │
00:00:44 #2552 [Verbose] > │ let v17 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2553 [Verbose] > │ while method4(v15, v17) do │
00:00:44 #2554 [Verbose] > │ let v19 : uint64 = v17.l0 │
00:00:44 #2555 [Verbose] > │ let struct (v20 : float, v21 : float) = v14.[int v19] │
00:00:44 #2556 [Verbose] > │ let v22 : string = $"%A{v20}" │
00:00:44 #2557 [Verbose] > │ System.Console.WriteLine v2 │
00:00:44 #2558 [Verbose] > │ let v23 : string = $"Solution: {v22} " │
00:00:44 #2559 [Verbose] > │ System.Console.WriteLine v23 │
00:00:44 #2560 [Verbose] > │ let v24 : int32 = 0 │
00:00:44 #2561 [Verbose] > │ let v25 : string = "A" │
00:00:44 #2562 [Verbose] > │ let v26 : (float -> float) = closure1() │
00:00:44 #2563 [Verbose] > │ let v27 : UH1 = UH1_1 │
00:00:44 #2564 [Verbose] > │ let v28 : UH1 = UH1_0(v24, v25, v26, v27) │
00:00:44 #2565 [Verbose] > │ let v29 : (struct (int32 * string * (float -> float)) []) = │
00:00:44 #2566 [Verbose] > │ method5(v28) │
00:00:44 #2567 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:44 #2568 [Verbose] > │ let v31 : (struct (float * int64) []) = Array.zeroCreate<struct │
00:00:44 #2569 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30)) │
00:00:44 #2570 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2571 [Verbose] > │ while method4(v30, v32) do │
00:00:44 #2572 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:44 #2573 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │
00:00:44 #2574 [Verbose] > │ v29.[int v34] │
00:00:44 #2575 [Verbose] > │ let mutable result = None │
00:00:44 #2576 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:44 #2577 [Verbose] > │ () │
00:00:44 #2578 [Verbose] > │ #endif │
00:00:44 #2579 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:44 #2580 [Verbose] > │ () │
00:00:44 #2581 [Verbose] > │ #endif │
00:00:44 #2582 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2583 [Verbose] > │ System.GC.Collect () │
00:00:44 #2584 [Verbose] > │ () │
00:00:44 #2585 [Verbose] > │ #endif │
00:00:44 #2586 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:44 #2587 [Verbose] > │ System.GC.Collect () │
00:00:44 #2588 [Verbose] > │ () │
00:00:44 #2589 [Verbose] > │ #endif │
00:00:44 #2590 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:44 #2591 [Verbose] > │ System.GC.Collect () │
00:00:44 #2592 [Verbose] > │ () │
00:00:44 #2593 [Verbose] > │ #endif │
00:00:44 #2594 [Verbose] > │ |> fun x -> result <- Some x │
00:00:44 #2595 [Verbose] > │ result |> Option.get │
00:00:44 #2596 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:44 #2597 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:44 #2598 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:44 #2599 [Verbose] > │ v39.Start () │
00:00:44 #2600 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:44 #2601 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:44 #2602 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:44 #2603 [Verbose] > │ while method8(v42) do │
00:00:44 #2604 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:44 #2605 [Verbose] > │ v41.[int v44] <- v44 │
00:00:44 #2606 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:44 #2607 [Verbose] > │ v42.l0 <- v45 │
00:00:44 #2608 [Verbose] > │ () │
00:00:44 #2609 [Verbose] > │ let v46 : (int32 -> float) = closure2(v20, v37) │
00:00:44 #2610 [Verbose] > │ let v47 : (float []) = v41 |> Array.Parallel.map v46 │
00:00:44 #2611 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:44 #2612 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:44 #2613 [Verbose] > │ let v50 : float = v47.[int v49] │
00:00:44 #2614 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:44 #2615 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:44 #2616 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:44 #2617 [Verbose] > │ System.Console.WriteLine v53 │
00:00:44 #2618 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:44 #2619 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:44 #2620 [Verbose] > │ v32.l0 <- v54 │
00:00:44 #2621 [Verbose] > │ () │
00:00:44 #2622 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:44 #2623 [Verbose] > │ let v56 : (float []) = Array.zeroCreate<float> │
00:00:44 #2624 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:44 #2625 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2626 [Verbose] > │ while method4(v55, v57) do │
00:00:44 #2627 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:44 #2628 [Verbose] > │ let struct (v60 : float, v61 : int64) = v31.[int v59] │
00:00:44 #2629 [Verbose] > │ v56.[int v59] <- v60 │
00:00:44 #2630 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:44 #2631 [Verbose] > │ v57.l0 <- v62 │
00:00:44 #2632 [Verbose] > │ () │
00:00:44 #2633 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:44 #2634 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:44 #2635 [Verbose] > │ if v64 then │
00:00:44 #2636 [Verbose] > │ () │
00:00:44 #2637 [Verbose] > │ else │
00:00:44 #2638 [Verbose] > │ let v65 : float = v56.[int 0UL] │
00:00:44 #2639 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:44 #2640 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:44 #2641 [Verbose] > │ if v67 then │
00:00:44 #2642 [Verbose] > │ () │
00:00:44 #2643 [Verbose] > │ else │
00:00:44 #2644 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:44 #2645 [Verbose] > │ failwith<unit> v68 │
00:00:44 #2646 [Verbose] > │ let v69 : string = $"%A{v21}" │
00:00:44 #2647 [Verbose] > │ let v70 : (float []) = Array.zeroCreate<float> │
00:00:44 #2648 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:44 #2649 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2650 [Verbose] > │ while method4(v55, v71) do │
00:00:44 #2651 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:44 #2652 [Verbose] > │ let struct (v74 : float, v75 : int64) = v31.[int v73] │
00:00:44 #2653 [Verbose] > │ v70.[int v73] <- v74 │
00:00:44 #2654 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:44 #2655 [Verbose] > │ v71.l0 <- v76 │
00:00:44 #2656 [Verbose] > │ () │
00:00:44 #2657 [Verbose] > │ let v77 : float = v70.[int 0UL] │
00:00:44 #2658 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:44 #2659 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:44 #2660 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:44 #2661 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2662 [Verbose] > │ while method4(v55, v80) do │
00:00:44 #2663 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:44 #2664 [Verbose] > │ let struct (v83 : float, v84 : int64) = v31.[int v82] │
00:00:44 #2665 [Verbose] > │ v79.[int v82] <- v84 │
00:00:44 #2666 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:44 #2667 [Verbose] > │ v80.l0 <- v85 │
00:00:44 #2668 [Verbose] > │ () │
00:00:44 #2669 [Verbose] > │ v16.[int v19] <- struct (v69, v22, v78, v79) │
00:00:44 #2670 [Verbose] > │ let v86 : uint64 = v19 + 1UL │
00:00:44 #2671 [Verbose] > │ v17.l0 <- v86 │
00:00:44 #2672 [Verbose] > │ () │
00:00:44 #2673 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v16.Length │
00:00:44 #2674 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:44 #2675 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:44 #2676 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:44 #2677 [Verbose] > │ while method4(v87, v89) do │
00:00:44 #2678 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:44 #2679 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:44 #2680 [Verbose] > │ ])) = v16.[int v91] │
00:00:44 #2681 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:44 #2682 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:44 #2683 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:44 #2684 [Verbose] > │ while method10(v96, v98) do │
00:00:44 #2685 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:44 #2686 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:44 #2687 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:44 #2688 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:44 #2689 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:44 #2690 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:44 #2691 [Verbose] > │ v98.l0 <- v105 │
00:00:44 #2692 [Verbose] > │ v98.l1 <- v106 │
00:00:44 #2693 [Verbose] > │ v98.l2 <- v104 │
00:00:44 #2694 [Verbose] > │ () │
00:00:44 #2695 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:44 #2696 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:44 #2697 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:44 #2698 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:44 #2699 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:44 #2700 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:44 #2701 [Verbose] > │ (int64 * int64)> (v112) │
00:00:44 #2702 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:44 #2703 [Verbose] > │ while method15(v112, v114) do │
00:00:44 #2704 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:44 #2705 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:44 #2706 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:44 #2707 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:44 #2708 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:44 #2709 [Verbose] > │ v114.l0 <- v120 │
00:00:44 #2710 [Verbose] > │ () │
00:00:44 #2711 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure3() │
00:00:44 #2712 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:44 #2713 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:44 #2714 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:44 #2715 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:44 #2716 [Verbose] > │ let v131 : US0 = │
00:00:44 #2717 [Verbose] > │ if v126 then │
00:00:44 #2718 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:44 #2719 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:44 #2720 [Verbose] > │ US0_1(v127) │
00:00:44 #2721 [Verbose] > │ else │
00:00:44 #2722 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:45 #2723 [Verbose] > │ US0_1(v129) │
00:00:45 #2724 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:45 #2725 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:45 #2726 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:45 #2727 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:45 #2728 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:45 #2729 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:45 #2730 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:45 #2731 [Verbose] > │ v89.l0 <- v137 │
00:00:45 #2732 [Verbose] > │ () │
00:00:45 #2733 [Verbose] > │ let v138 : string = "Input" │
00:00:45 #2734 [Verbose] > │ let v139 : string = "Expected" │
00:00:45 #2735 [Verbose] > │ let v140 : string = "Result" │
00:00:45 #2736 [Verbose] > │ let v141 : string = "Best" │
00:00:45 #2737 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:45 #2738 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:45 #2739 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:45 #2740 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:45 #2741 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:45 #2742 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:45 #2743 [Verbose] > │ let v148 : string = "---" │
00:00:45 #2744 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:45 #2745 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:45 #2746 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:45 #2747 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:45 #2748 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:45 #2749 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:45 #2750 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:45 #2751 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:45 #2752 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:45 #2753 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:45 #2754 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:45 #2755 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:45 #2756 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:45 #2757 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:45 #2758 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:45 #2759 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2760 [Verbose] > │ while method4(v161, v163) do │
00:00:45 #2761 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:45 #2762 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:45 #2763 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:45 #2764 [Verbose] > │ if v166 then │
00:00:45 #2765 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:45 #2766 [Verbose] > │ struct (v167, v168) │
00:00:45 #2767 [Verbose] > │ else │
00:00:45 #2768 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:45 #2769 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:45 #2770 [Verbose] > │ struct (v170, v171) │
00:00:45 #2771 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:45 #2772 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:45 #2773 [Verbose] > │ v163.l0 <- v174 │
00:00:45 #2774 [Verbose] > │ () │
00:00:45 #2775 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:45 #2776 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:45 #2777 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:45 #2778 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2779 [Verbose] > │ while method4(v175, v177) do │
00:00:45 #2780 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:45 #2781 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:45 #2782 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:45 #2783 [Verbose] > │ v176.[int v179] <- v182 │
00:00:45 #2784 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:45 #2785 [Verbose] > │ v177.l0 <- v183 │
00:00:45 #2786 [Verbose] > │ () │
00:00:45 #2787 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:45 #2788 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:45 #2789 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:45 #2790 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:45 #2791 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2792 [Verbose] > │ while method4(v185, v187) do │
00:00:45 #2793 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:45 #2794 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:45 #2795 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:45 #2796 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:45 #2797 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:45 #2798 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2799 [Verbose] > │ while method4(v191, v193) do │
00:00:45 #2800 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:45 #2801 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:45 #2802 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:45 #2803 [Verbose] > │ v192.[int v195] <- v197 │
00:00:45 #2804 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:45 #2805 [Verbose] > │ v193.l0 <- v198 │
00:00:45 #2806 [Verbose] > │ () │
00:00:45 #2807 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:45 #2808 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:45 #2809 [Verbose] > │ let v201 : (int64 -> US1) = closure4() │
00:00:45 #2810 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:45 #2811 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:45 #2812 [Verbose] > │ let v206 : int64 = │
00:00:45 #2813 [Verbose] > │ match v203 with │
00:00:45 #2814 [Verbose] > │ | US1_0 -> (* None *) │
00:00:45 #2815 [Verbose] > │ 0L │
00:00:45 #2816 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:45 #2817 [Verbose] > │ v204 │
00:00:45 #2818 [Verbose] > │ v186.[int v189] <- v206 │
00:00:45 #2819 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:45 #2820 [Verbose] > │ v187.l0 <- v207 │
00:00:45 #2821 [Verbose] > │ () │
00:00:45 #2822 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:45 #2823 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:45 #2824 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:45 #2825 [Verbose] > │ while method22(v208, v210) do │
00:00:45 #2826 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:45 #2827 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:45 #2828 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:45 #2829 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:45 #2830 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:45 #2831 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:45 #2832 [Verbose] > │ v210.l0 <- v217 │
00:00:45 #2833 [Verbose] > │ v210.l1 <- v218 │
00:00:45 #2834 [Verbose] > │ v210.l2 <- v216 │
00:00:45 #2835 [Verbose] > │ () │
00:00:45 #2836 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:45 #2837 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:45 #2838 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:45 #2839 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:45 #2840 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:45 #2841 [Verbose] > │ a, b) |> Map.ofArray │
00:00:45 #2842 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:45 #2843 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:45 #2844 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2845 [Verbose] > │ while method4(v175, v226) do │
00:00:45 #2846 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:45 #2847 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:45 #2848 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:45 #2849 [Verbose] > │ let v232 : int32 = 0 │
00:00:45 #2850 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:45 #2851 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:45 #2852 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:45 #2853 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:45 #2854 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:45 #2855 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:45 #2856 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:45 #2857 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:45 #2858 [Verbose] > │ v226.l0 <- v240 │
00:00:45 #2859 [Verbose] > │ () │
00:00:45 #2860 [Verbose] > │ System.Console.WriteLine v2 │
00:00:45 #2861 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:45 #2862 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2863 [Verbose] > │ while method4(v241, v242) do │
00:00:45 #2864 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:45 #2865 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:45 #2866 [Verbose] > │ match v246 with │
00:00:45 #2867 [Verbose] > │ | US0_0 -> (* None *) │
00:00:45 #2868 [Verbose] > │ let mutable result = None │
00:00:45 #2869 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:45 #2870 [Verbose] > │ () │
00:00:45 #2871 [Verbose] > │ #endif │
00:00:45 #2872 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:45 #2873 [Verbose] > │ () │
00:00:45 #2874 [Verbose] > │ #endif │
00:00:45 #2875 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:45 #2876 [Verbose] > │ System.Console.ResetColor () │
00:00:45 #2877 [Verbose] > │ () │
00:00:45 #2878 [Verbose] > │ #endif │
00:00:45 #2879 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:45 #2880 [Verbose] > │ System.Console.ResetColor () │
00:00:45 #2881 [Verbose] > │ () │
00:00:45 #2882 [Verbose] > │ #endif │
00:00:45 #2883 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:45 #2884 [Verbose] > │ System.Console.ResetColor () │
00:00:45 #2885 [Verbose] > │ () │
00:00:45 #2886 [Verbose] > │ #endif │
00:00:45 #2887 [Verbose] > │ |> fun x -> result <- Some x │
00:00:45 #2888 [Verbose] > │ result |> Option.get │
00:00:45 #2889 [Verbose] > │ () │
00:00:45 #2890 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:45 #2891 [Verbose] > │ let mutable result = None │
00:00:45 #2892 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:45 #2893 [Verbose] > │ () │
00:00:45 #2894 [Verbose] > │ #endif │
00:00:45 #2895 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:45 #2896 [Verbose] > │ () │
00:00:45 #2897 [Verbose] > │ #endif │
00:00:45 #2898 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:45 #2899 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:45 #2900 [Verbose] > │ () │
00:00:45 #2901 [Verbose] > │ #endif │
00:00:45 #2902 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:45 #2903 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:45 #2904 [Verbose] > │ () │
00:00:45 #2905 [Verbose] > │ #endif │
00:00:45 #2906 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:45 #2907 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:45 #2908 [Verbose] > │ () │
00:00:45 #2909 [Verbose] > │ #endif │
00:00:45 #2910 [Verbose] > │ |> fun x -> result <- Some x │
00:00:45 #2911 [Verbose] > │ result |> Option.get │
00:00:45 #2912 [Verbose] > │ () │
00:00:45 #2913 [Verbose] > │ let v248 : string = "\t| " │
00:00:45 #2914 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:45 #2915 [Verbose] > │ System.Console.WriteLine v249 │
00:00:45 #2916 [Verbose] > │ let mutable result = None │
00:00:45 #2917 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:00:45 #2918 [Verbose] > │ () │
00:00:45 #2919 [Verbose] > │ #endif │
00:00:45 #2920 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:00:45 #2921 [Verbose] > │ () │
00:00:45 #2922 [Verbose] > │ #endif │
00:00:45 #2923 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:45 #2924 [Verbose] > │ System.Console.ResetColor () │
00:00:45 #2925 [Verbose] > │ () │
00:00:45 #2926 [Verbose] > │ #endif │
00:00:45 #2927 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:00:45 #2928 [Verbose] > │ System.Console.ResetColor () │
00:00:45 #2929 [Verbose] > │ () │
00:00:45 #2930 [Verbose] > │ #endif │
00:00:45 #2931 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:00:45 #2932 [Verbose] > │ System.Console.ResetColor () │
00:00:45 #2933 [Verbose] > │ () │
00:00:45 #2934 [Verbose] > │ #endif │
00:00:45 #2935 [Verbose] > │ |> fun x -> result <- Some x │
00:00:45 #2936 [Verbose] > │ result |> Option.get │
00:00:45 #2937 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:45 #2938 [Verbose] > │ v242.l0 <- v250 │
00:00:45 #2939 [Verbose] > │ () │
00:00:45 #2940 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:45 #2941 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:45 #2942 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2943 [Verbose] > │ while method4(v87, v252) do │
00:00:45 #2944 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:45 #2945 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:45 #2946 [Verbose] > │ (int64 [])) = v16.[int v254] │
00:00:45 #2947 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:45 #2948 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:45 #2949 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:45 #2950 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:45 #2951 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2952 [Verbose] > │ while method4(v260, v262) do │
00:00:45 #2953 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:45 #2954 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:45 #2955 [Verbose] > │ let v266 : float = v259 v265 │
00:00:45 #2956 [Verbose] > │ v261.[int v264] <- v266 │
00:00:45 #2957 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:45 #2958 [Verbose] > │ v262.l0 <- v267 │
00:00:45 #2959 [Verbose] > │ () │
00:00:45 #2960 [Verbose] > │ v251.[int v254] <- v261 │
00:00:45 #2961 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:45 #2962 [Verbose] > │ v252.l0 <- v268 │
00:00:45 #2963 [Verbose] > │ () │
00:00:45 #2964 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:45 #2965 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:45 #2966 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:45 #2967 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:45 #2968 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2969 [Verbose] > │ while method4(v270, v272) do │
00:00:45 #2970 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:45 #2971 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:45 #2972 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:45 #2973 [Verbose] > │ v271.[int v274] <- v276 │
00:00:45 #2974 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:45 #2975 [Verbose] > │ v272.l0 <- v277 │
00:00:45 #2976 [Verbose] > │ () │
00:00:45 #2977 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:45 #2978 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:45 #2979 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:45 #2980 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:45 #2981 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #2982 [Verbose] > │ while method4(v279, v281) do │
00:00:45 #2983 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:45 #2984 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:45 #2985 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:45 #2986 [Verbose] > │ v280.[int v283] <- v285 │
00:00:45 #2987 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:45 #2988 [Verbose] > │ v281.l0 <- v286 │
00:00:45 #2989 [Verbose] > │ () │
00:00:45 #2990 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:45 #2991 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:45 #2992 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:45 #2993 [Verbose] > │ while method22(v287, v289) do │
00:00:45 #2994 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:45 #2995 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:45 #2996 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:45 #2997 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:45 #2998 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:45 #2999 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:45 #3000 [Verbose] > │ v289.l0 <- v296 │
00:00:45 #3001 [Verbose] > │ v289.l1 <- v297 │
00:00:45 #3002 [Verbose] > │ v289.l2 <- v295 │
00:00:45 #3003 [Verbose] > │ () │
00:00:45 #3004 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:45 #3005 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:45 #3006 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:45 #3007 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:45 #3008 [Verbose] > │ System.Console.WriteLine v2 │
00:00:45 #3009 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:45 #3010 [Verbose] > │ System.Console.WriteLine v303 │
00:00:45 #3011 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure5() │
00:00:45 #3012 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:45 #3013 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:45 #3014 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:45 #3015 [Verbose] > │ while method4(v306, v307) do │
00:00:45 #3016 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:45 #3017 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:45 #3018 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:45 #3019 [Verbose] > │ " │
00:00:45 #3020 [Verbose] > │ System.Console.WriteLine v312 │
00:00:45 #3021 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:45 #3022 [Verbose] > │ v307.l0 <- v313 │
00:00:45 #3023 [Verbose] > │ () │
00:00:45 #3024 [Verbose] > │ () │
00:00:45 #3025 [Verbose] > │ method0() │
00:00:45 #3026 [Verbose] > │ │
00:00:45 #3027 [Verbose] > │ │
00:00:45 #3028 [Verbose] > │ │
00:00:45 #3029 [Verbose] > │ Test: v0 │
00:00:45 #3030 [Verbose] > │ │
00:00:45 #3031 [Verbose] > │ Solution: 0.0 │
00:00:45 #3032 [Verbose] > │ Test case 1. A. Time: 32 │
00:00:45 #3033 [Verbose] > │ │
00:00:45 #3034 [Verbose] > │ Solution: 2.0 │
00:00:45 #3035 [Verbose] > │ Test case 1. A. Time: 18 │
00:00:45 #3036 [Verbose] > │ │
00:00:45 #3037 [Verbose] > │ Solution: 5.0 │
00:00:45 #3038 [Verbose] > │ Test case 1. A. Time: 22 │
00:00:45 #3039 [Verbose] > │ │
00:00:45 #3040 [Verbose] > │ Input | Expected | Result | Best │
00:00:45 #3041 [Verbose] > │ --- | --- | --- | --- │
00:00:45 #3042 [Verbose] > │ 0.0 | 1.0 | 1.0 | struct (1L, 32L) │
00:00:45 #3043 [Verbose] > │ 2.0 | 3.0 | 3.0 | struct (1L, 18L) │
00:00:45 #3044 [Verbose] > │ 5.0 | 6.0 | 6.0 | struct (1L, 22L) │
00:00:45 #3045 [Verbose] > │ │
00:00:45 #3046 [Verbose] > │ Average Ranking │
00:00:45 #3047 [Verbose] > │ Test case 1. Average Time: 24L │
00:00:45 #3048 [Verbose] > │ │
00:00:45 #3049 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 #3050 [Verbose] > [NbConvertApp] Converting notebook benchmark.dib.ipynb to html
00:00:48 #3051 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:48 #3052 [Verbose] > validate(nb)
00:00:48 #3053 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:48 #3054 [Verbose] > return _pygments_highlight(
00:00:49 #3055 [Verbose] > [NbConvertApp] Writing 412469 bytes to benchmark.dib.html
00:00:50 #3056 [Debug] executeAsync / exitCode: 0 / output.Length: 231625
00:00:50 #3057 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 stream.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # stream │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:09 #13 [Verbose] >
00:00:09 #14 [Verbose] > ╭─[ 5.60s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #15 [Verbose] > │ () │
00:00:09 #16 [Verbose] > │ │
00:00:09 #17 [Verbose] > │ │
00:00:09 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #19 [Verbose] >
00:00:09 #20 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #21 [Verbose] > union rec stream t =
00:00:09 #22 [Verbose] > | StreamCons : t * (() -> stream t)
00:00:09 #23 [Verbose] > | StreamNil
00:00:09 #24 [Verbose] >
00:00:09 #25 [Verbose] > ╭─[ 249.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #26 [Verbose] > │ () │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > │ │
00:00:09 #29 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #30 [Verbose] >
00:00:09 #31 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #32 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #33 [Verbose] > │ ## fold │
00:00:09 #34 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #35 [Verbose] >
00:00:09 #36 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #37 [Verbose] > inl fold fn init s =
00:00:09 #38 [Verbose] > inl rec body acc = function
00:00:09 #39 [Verbose] > | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:00:09 #40 [Verbose] > | StreamNil => acc
00:00:09 #41 [Verbose] > and inl loop acc = join_body body acc
00:00:09 #42 [Verbose] > loop init s
00:00:09 #43 [Verbose] >
00:00:09 #44 [Verbose] > ╭─[ 304.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #45 [Verbose] > │ () │
00:00:09 #46 [Verbose] > │ │
00:00:09 #47 [Verbose] > │ │
00:00:09 #48 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #49 [Verbose] >
00:00:09 #50 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #51 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #52 [Verbose] > │ ## fold_back │
00:00:09 #53 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #54 [Verbose] >
00:00:09 #55 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #56 [Verbose] > inl fold_back fn s init =
00:00:09 #57 [Verbose] > inl rec body acc = function
00:00:09 #58 [Verbose] > | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:00:09 #59 [Verbose] > | StreamNil => acc
00:00:09 #60 [Verbose] > and inl loop acc = join_body body acc
00:00:09 #61 [Verbose] > loop init s
00:00:10 #62 [Verbose] >
00:00:10 #63 [Verbose] > ╭─[ 281.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #64 [Verbose] > │ () │
00:00:10 #65 [Verbose] > │ │
00:00:10 #66 [Verbose] > │ │
00:00:10 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #68 [Verbose] >
00:00:10 #69 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #70 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #71 [Verbose] > │ ## to_list │
00:00:10 #72 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #73 [Verbose] >
00:00:10 #74 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #75 [Verbose] > inl to_list s =
00:00:10 #76 [Verbose] > (s, [[]])
00:00:10 #77 [Verbose] > ||> fold_back fun x acc =>
00:00:10 #78 [Verbose] > x :: acc
00:00:10 #79 [Verbose] >
00:00:10 #80 [Verbose] > ╭─[ 247.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #81 [Verbose] > │ () │
00:00:10 #82 [Verbose] > │ │
00:00:10 #83 [Verbose] > │ │
00:00:10 #84 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #85 [Verbose] >
00:00:10 #86 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #87 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #88 [Verbose] > │ ## rev │
00:00:10 #89 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #90 [Verbose] >
00:00:10 #91 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #92 [Verbose] > inl rev s =
00:00:10 #93 [Verbose] > (StreamNil, s)
00:00:10 #94 [Verbose] > ||> fold fun s x =>
00:00:10 #95 [Verbose] > StreamCons (x, fun () => s)
00:00:10 #96 [Verbose] >
00:00:10 #97 [Verbose] > ╭─[ 262.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #98 [Verbose] > │ () │
00:00:10 #99 [Verbose] > │ │
00:00:10 #100 [Verbose] > │ │
00:00:10 #101 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #102 [Verbose] >
00:00:10 #103 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #104 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #105 [Verbose] > │ ## from_list │
00:00:10 #106 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #107 [Verbose] >
00:00:10 #108 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #109 [Verbose] > inl from_list list =
00:00:10 #110 [Verbose] > (list, StreamNil)
00:00:10 #111 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:10 #112 [Verbose] > StreamCons (x, fun () => acc)
00:00:11 #113 [Verbose] >
00:00:11 #114 [Verbose] > ╭─[ 345.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #115 [Verbose] > │ () │
00:00:11 #116 [Verbose] > │ │
00:00:11 #117 [Verbose] > │ │
00:00:11 #118 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #119 [Verbose] >
00:00:11 #120 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #121 [Verbose] > // // test
00:00:11 #122 [Verbose] >
00:00:11 #123 [Verbose] > listm.init 3i32 id
00:00:11 #124 [Verbose] > |> from_list
00:00:11 #125 [Verbose] > |> rev
00:00:11 #126 [Verbose] > |> to_list
00:00:11 #127 [Verbose] > |> _assert_eq [[ 2; 1; 0 ]]
00:00:13 #128 [Verbose] >
00:00:13 #129 [Verbose] > ╭─[ 2.33s - stdout ]───────────────────────────────────────────────────────────╮
00:00:13 #130 [Verbose] > │ type UH0 = │
00:00:13 #131 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:13 #132 [Verbose] > │ | UH0_1 │
00:00:13 #133 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #134 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:13 #135 [Verbose] > │ let v1 : UH0 = UH0_0(0, v0) │
00:00:13 #136 [Verbose] > │ let v2 : UH0 = UH0_0(1, v1) │
00:00:13 #137 [Verbose] > │ let v3 : UH0 = UH0_0(2, v2) │
00:00:13 #138 [Verbose] > │ let v4 : string = $"%A{v3}" │
00:00:13 #139 [Verbose] > │ System.Console.WriteLine v4 │
00:00:13 #140 [Verbose] > │ let v23 : UH0 = UH0_1 │
00:00:13 #141 [Verbose] > │ let v24 : UH0 = UH0_0(0, v23) │
00:00:13 #142 [Verbose] > │ let v25 : UH0 = UH0_0(1, v24) │
00:00:13 #143 [Verbose] > │ let v26 : UH0 = UH0_0(2, v25) │
00:00:13 #144 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:13 #145 [Verbose] > │ let v28 : UH0 = UH0_0(0, v27) │
00:00:13 #146 [Verbose] > │ let v29 : UH0 = UH0_0(1, v28) │
00:00:13 #147 [Verbose] > │ let v30 : UH0 = UH0_0(2, v29) │
00:00:13 #148 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v26} / expected: %A{v30}" │
00:00:13 #149 [Verbose] > │ () │
00:00:13 #150 [Verbose] > │ method0() │
00:00:13 #151 [Verbose] > │ │
00:00:13 #152 [Verbose] > │ UH0_0 (2, UH0_0 (1, UH0_0 (0, UH0_1))) │
00:00:13 #153 [Verbose] > │ │
00:00:13 #154 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #155 [Verbose] >
00:00:13 #156 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #157 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #158 [Verbose] > │ ## try_item │
00:00:13 #159 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #160 [Verbose] >
00:00:13 #161 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #162 [Verbose] > inl try_item i s =
00:00:13 #163 [Verbose] > inl rec body i = function
00:00:13 #164 [Verbose] > | StreamCons (x, _) when i <= 0 => Some x
00:00:13 #165 [Verbose] > | StreamCons (_, fn) => loop (i - 1) (fn ())
00:00:13 #166 [Verbose] > | StreamNil => None
00:00:13 #167 [Verbose] > and inl loop acc s' =
00:00:13 #168 [Verbose] > match var_is acc, var_is s' with
00:00:13 #169 [Verbose] > | false, false => body acc s'
00:00:13 #170 [Verbose] > | _ =>
00:00:13 #171 [Verbose] > inl acc = dyn acc
00:00:13 #172 [Verbose] > inl s' = dyn s'
00:00:13 #173 [Verbose] > join body acc s'
00:00:13 #174 [Verbose] > loop i s
00:00:13 #175 [Verbose] >
00:00:13 #176 [Verbose] > inl item i =
00:00:13 #177 [Verbose] > try_item i >> optionm.value
00:00:13 #178 [Verbose] >
00:00:13 #179 [Verbose] > ╭─[ 262.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #180 [Verbose] > │ () │
00:00:13 #181 [Verbose] > │ │
00:00:13 #182 [Verbose] > │ │
00:00:13 #183 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #184 [Verbose] >
00:00:13 #185 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #186 [Verbose] > // // test
00:00:13 #187 [Verbose] >
00:00:13 #188 [Verbose] > listm.init 10i32 id
00:00:13 #189 [Verbose] > |> from_list
00:00:13 #190 [Verbose] > |> item 9i32
00:00:13 #191 [Verbose] > |> _assert_eq 9
00:00:14 #192 [Verbose] >
00:00:14 #193 [Verbose] > ╭─[ 353.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #194 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #195 [Verbose] > │ let v0 : string = $"%A{9}" │
00:00:14 #196 [Verbose] > │ System.Console.WriteLine v0 │
00:00:14 #197 [Verbose] > │ let v1 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:14 #198 [Verbose] > │ () │
00:00:14 #199 [Verbose] > │ method0() │
00:00:14 #200 [Verbose] > │ │
00:00:14 #201 [Verbose] > │ 9 │
00:00:14 #202 [Verbose] > │ │
00:00:14 #203 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #204 [Verbose] >
00:00:14 #205 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #206 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #207 [Verbose] > │ ## new_infinite_stream │
00:00:14 #208 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #209 [Verbose] >
00:00:14 #210 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #211 [Verbose] > inl new_infinite_stream fn =
00:00:14 #212 [Verbose] > inl rec loop n =
00:00:14 #213 [Verbose] > StreamCons (fn n, fun () => loop (n + 1))
00:00:14 #214 [Verbose] > loop 0
00:00:14 #215 [Verbose] >
00:00:14 #216 [Verbose] > inl new_infinite_stream_ fn =
00:00:14 #217 [Verbose] > let rec loop n =
00:00:14 #218 [Verbose] > StreamCons (fn n, fun () => loop (n + 1))
00:00:14 #219 [Verbose] > loop 0
00:00:14 #220 [Verbose] >
00:00:14 #221 [Verbose] > ╭─[ 328.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #222 [Verbose] > │ () │
00:00:14 #223 [Verbose] > │ │
00:00:14 #224 [Verbose] > │ │
00:00:14 #225 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #226 [Verbose] >
00:00:14 #227 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #228 [Verbose] > // // test
00:00:14 #229 [Verbose] >
00:00:14 #230 [Verbose] > new_infinite_stream print_and_return
00:00:14 #231 [Verbose] > |> item 4i32
00:00:14 #232 [Verbose] > |> _assert_eq 4i32
00:00:14 #233 [Verbose] >
00:00:14 #234 [Verbose] > ╭─[ 293.63ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #235 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #236 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:14 #237 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:14 #238 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:14 #239 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:14 #240 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:14 #241 [Verbose] > │ let v0 : string = $"%A{4}" │
00:00:14 #242 [Verbose] > │ System.Console.WriteLine v0 │
00:00:14 #243 [Verbose] > │ let v1 : string = $"__expect / actual: %A{4} / expected: %A{4}" │
00:00:14 #244 [Verbose] > │ () │
00:00:14 #245 [Verbose] > │ method0() │
00:00:14 #246 [Verbose] > │ │
00:00:14 #247 [Verbose] > │ print_and_return / x: 0 │
00:00:14 #248 [Verbose] > │ print_and_return / x: 1 │
00:00:14 #249 [Verbose] > │ print_and_return / x: 2 │
00:00:14 #250 [Verbose] > │ print_and_return / x: 3 │
00:00:14 #251 [Verbose] > │ print_and_return / x: 4 │
00:00:14 #252 [Verbose] > │ 4 │
00:00:14 #253 [Verbose] > │ │
00:00:14 #254 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #255 [Verbose] >
00:00:14 #256 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #257 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #258 [Verbose] > │ ## new_finite_stream │
00:00:14 #259 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #260 [Verbose] >
00:00:14 #261 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #262 [Verbose] > inl new_finite_stream fn max =
00:00:14 #263 [Verbose] > inl rec loop n =
00:00:14 #264 [Verbose] > if n >= max
00:00:14 #265 [Verbose] > then StreamNil
00:00:14 #266 [Verbose] > else StreamCons (fn n, fun () => loop (n + 1))
00:00:14 #267 [Verbose] > loop 0
00:00:14 #268 [Verbose] >
00:00:14 #269 [Verbose] > ╭─[ 235.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #270 [Verbose] > │ () │
00:00:14 #271 [Verbose] > │ │
00:00:14 #272 [Verbose] > │ │
00:00:14 #273 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #274 [Verbose] >
00:00:14 #275 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #276 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #277 [Verbose] > │ ## memoize │
00:00:14 #278 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #279 [Verbose] >
00:00:14 #280 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #281 [Verbose] > union memoized_stream t =
00:00:14 #282 [Verbose] > | NotComputed : () -> stream t
00:00:14 #283 [Verbose] > | Computed : stream t
00:00:14 #284 [Verbose] >
00:00:14 #285 [Verbose] > inl memoize s =
00:00:14 #286 [Verbose] > inl rec body s =
00:00:14 #287 [Verbose] > inl state = mut (NotComputed s)
00:00:14 #288 [Verbose] > fun () =>
00:00:14 #289 [Verbose] > match *state with
00:00:14 #290 [Verbose] > | Computed x => x
00:00:14 #291 [Verbose] > | NotComputed fn =>
00:00:14 #292 [Verbose] > inl new_state =
00:00:14 #293 [Verbose] > match fn () with
00:00:14 #294 [Verbose] > | StreamNil => StreamNil
00:00:14 #295 [Verbose] > | StreamCons (x, fn) => StreamCons (x, loop fn)
00:00:14 #296 [Verbose] > state <- Computed new_state
00:00:14 #297 [Verbose] > new_state
00:00:14 #298 [Verbose] > and inl loop s' = join_body_unit body s s'
00:00:14 #299 [Verbose] > loop (fun () => s)
00:00:15 #300 [Verbose] >
00:00:15 #301 [Verbose] > ╭─[ 345.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #302 [Verbose] > │ () │
00:00:15 #303 [Verbose] > │ │
00:00:15 #304 [Verbose] > │ │
00:00:15 #305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #306 [Verbose] >
00:00:15 #307 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #308 [Verbose] > // // test
00:00:15 #309 [Verbose] >
00:00:15 #310 [Verbose] > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:00:15 #311 [Verbose] >
00:00:15 #312 [Verbose] > memo_stream ()
00:00:15 #313 [Verbose] > |> item 3i32
00:00:15 #314 [Verbose] > |> _assert_eq 3i32
00:00:15 #315 [Verbose] >
00:00:15 #316 [Verbose] > memo_stream ()
00:00:15 #317 [Verbose] > |> item 5i32
00:00:15 #318 [Verbose] > |> _assert_eq 5i32
00:00:16 #319 [Verbose] >
00:00:16 #320 [Verbose] > ╭─[ 1.51s - stdout ]───────────────────────────────────────────────────────────╮
00:00:16 #321 [Verbose] > │ type UH0 = │
00:00:16 #322 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:16 #323 [Verbose] > │ | UH0_1 │
00:00:16 #324 [Verbose] > │ and [<Struct>] US0 = │
00:00:16 #325 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:16 #326 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:16 #327 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:16 #328 [Verbose] > │ and [<Struct>] US1 = │
00:00:16 #329 [Verbose] > │ | US1_0 │
00:00:16 #330 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:16 #331 [Verbose] > │ let rec closure10 () () : UH0 = │
00:00:16 #332 [Verbose] > │ UH0_1 │
00:00:16 #333 [Verbose] > │ and closure9 () () : UH0 = │
00:00:16 #334 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:16 #335 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:16 #336 [Verbose] > │ UH0_0(9, v0) │
00:00:16 #337 [Verbose] > │ and closure8 () () : UH0 = │
00:00:16 #338 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:16 #339 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:16 #340 [Verbose] > │ UH0_0(8, v0) │
00:00:16 #341 [Verbose] > │ and closure7 () () : UH0 = │
00:00:16 #342 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:16 #343 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:16 #344 [Verbose] > │ UH0_0(7, v0) │
00:00:16 #345 [Verbose] > │ and closure6 () () : UH0 = │
00:00:16 #346 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:16 #347 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:16 #348 [Verbose] > │ UH0_0(6, v0) │
00:00:16 #349 [Verbose] > │ and closure5 () () : UH0 = │
00:00:16 #350 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:16 #351 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:16 #352 [Verbose] > │ UH0_0(5, v0) │
00:00:16 #353 [Verbose] > │ and closure4 () () : UH0 = │
00:00:16 #354 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:16 #355 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:16 #356 [Verbose] > │ UH0_0(4, v0) │
00:00:16 #357 [Verbose] > │ and closure3 () () : UH0 = │
00:00:16 #358 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:16 #359 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:16 #360 [Verbose] > │ UH0_0(3, v0) │
00:00:16 #361 [Verbose] > │ and closure2 () () : UH0 = │
00:00:16 #362 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:16 #363 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:16 #364 [Verbose] > │ UH0_0(2, v0) │
00:00:16 #365 [Verbose] > │ and closure1 () () : UH0 = │
00:00:16 #366 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:16 #367 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:16 #368 [Verbose] > │ UH0_0(1, v0) │
00:00:16 #369 [Verbose] > │ and closure0 () () : UH0 = │
00:00:16 #370 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:16 #371 [Verbose] > │ UH0_0(0, v0) │
00:00:16 #372 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 = │
00:00:16 #373 [Verbose] > │ let v1 : US0 = v0.l0 │
00:00:16 #374 [Verbose] > │ match v1 with │
00:00:16 #375 [Verbose] > │ | US0_0(v2) -> (* Computed *) │
00:00:16 #376 [Verbose] > │ v2 │
00:00:16 #377 [Verbose] > │ | US0_1(v3) -> (* NotComputed *) │
00:00:16 #378 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:16 #379 [Verbose] > │ let v13 : UH0 = │
00:00:16 #380 [Verbose] > │ match v4 with │
00:00:16 #381 [Verbose] > │ | UH0_0(v6, v7) -> (* StreamCons *) │
00:00:16 #382 [Verbose] > │ let v8 : US0 = US0_1(v7) │
00:00:16 #383 [Verbose] > │ let v9 : Mut0 = {l0 = v8} : Mut0 │
00:00:16 #384 [Verbose] > │ let v10 : (unit -> UH0) = closure11(v9) │
00:00:16 #385 [Verbose] > │ UH0_0(v6, v10) │
00:00:16 #386 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:16 #387 [Verbose] > │ UH0_1 │
00:00:16 #388 [Verbose] > │ let v14 : US0 = US0_0(v13) │
00:00:16 #389 [Verbose] > │ v0.l0 <- v14 │
00:00:16 #390 [Verbose] > │ v13 │
00:00:16 #391 [Verbose] > │ and method1 (v0 : int32, v1 : UH0) : US1 = │
00:00:16 #392 [Verbose] > │ match v1 with │
00:00:16 #393 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:16 #394 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:16 #395 [Verbose] > │ if v4 then │
00:00:16 #396 [Verbose] > │ US1_1(v2) │
00:00:16 #397 [Verbose] > │ else │
00:00:16 #398 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:16 #399 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:16 #400 [Verbose] > │ method1(v6, v7) │
00:00:16 #401 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:16 #402 [Verbose] > │ US1_0 │
00:00:16 #403 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:16 #404 [Verbose] > │ v0 │
00:00:16 #405 [Verbose] > │ and method0 () : unit = │
00:00:16 #406 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:16 #407 [Verbose] > │ let v0 : (unit -> UH0) = closure0() │
00:00:16 #408 [Verbose] > │ let v1 : US0 = US0_1(v0) │
00:00:16 #409 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:16 #410 [Verbose] > │ let v3 : US0 = v2.l0 │
00:00:16 #411 [Verbose] > │ let v18 : UH0 = │
00:00:16 #412 [Verbose] > │ match v3 with │
00:00:16 #413 [Verbose] > │ | US0_0(v4) -> (* Computed *) │
00:00:16 #414 [Verbose] > │ v4 │
00:00:16 #415 [Verbose] > │ | US0_1(v5) -> (* NotComputed *) │
00:00:16 #416 [Verbose] > │ let v6 : UH0 = v5 () │
00:00:16 #417 [Verbose] > │ let v15 : UH0 = │
00:00:16 #418 [Verbose] > │ match v6 with │
00:00:16 #419 [Verbose] > │ | UH0_0(v8, v9) -> (* StreamCons *) │
00:00:16 #420 [Verbose] > │ let v10 : US0 = US0_1(v9) │
00:00:16 #421 [Verbose] > │ let v11 : Mut0 = {l0 = v10} : Mut0 │
00:00:16 #422 [Verbose] > │ let v12 : (unit -> UH0) = closure11(v11) │
00:00:16 #423 [Verbose] > │ UH0_0(v8, v12) │
00:00:16 #424 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:16 #425 [Verbose] > │ UH0_1 │
00:00:16 #426 [Verbose] > │ let v16 : US0 = US0_0(v15) │
00:00:16 #427 [Verbose] > │ v2.l0 <- v16 │
00:00:16 #428 [Verbose] > │ v15 │
00:00:16 #429 [Verbose] > │ let v19 : int32 = 3 │
00:00:16 #430 [Verbose] > │ let v20 : US1 = method1(v19, v18) │
00:00:16 #431 [Verbose] > │ let v24 : int32 = │
00:00:16 #432 [Verbose] > │ match v20 with │
00:00:16 #433 [Verbose] > │ | US1_0 -> (* None *) │
00:00:16 #434 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:16 #435 [Verbose] > │ | US1_1(v21) -> (* Some *) │
00:00:16 #436 [Verbose] > │ v21 │
00:00:16 #437 [Verbose] > │ let v25 : string = $"%A{v24}" │
00:00:16 #438 [Verbose] > │ System.Console.WriteLine v25 │
00:00:16 #439 [Verbose] > │ let v26 : bool = v24 = 3 │
00:00:16 #440 [Verbose] > │ let v28 : bool = │
00:00:16 #441 [Verbose] > │ if v26 then │
00:00:16 #442 [Verbose] > │ true │
00:00:16 #443 [Verbose] > │ else │
00:00:16 #444 [Verbose] > │ method2(v26) │
00:00:16 #445 [Verbose] > │ let v29 : string = $"__expect / actual: %A{v24} / expected: %A{3}" │
00:00:16 #446 [Verbose] > │ let v30 : bool = v28 = false │
00:00:16 #447 [Verbose] > │ if v30 then │
00:00:16 #448 [Verbose] > │ failwith<unit> v29 │
00:00:16 #449 [Verbose] > │ let v31 : US0 = v2.l0 │
00:00:16 #450 [Verbose] > │ let v46 : UH0 = │
00:00:16 #451 [Verbose] > │ match v31 with │
00:00:16 #452 [Verbose] > │ | US0_0(v32) -> (* Computed *) │
00:00:16 #453 [Verbose] > │ v32 │
00:00:16 #454 [Verbose] > │ | US0_1(v33) -> (* NotComputed *) │
00:00:16 #455 [Verbose] > │ let v34 : UH0 = v33 () │
00:00:16 #456 [Verbose] > │ let v43 : UH0 = │
00:00:16 #457 [Verbose] > │ match v34 with │
00:00:16 #458 [Verbose] > │ | UH0_0(v36, v37) -> (* StreamCons *) │
00:00:16 #459 [Verbose] > │ let v38 : US0 = US0_1(v37) │
00:00:16 #460 [Verbose] > │ let v39 : Mut0 = {l0 = v38} : Mut0 │
00:00:16 #461 [Verbose] > │ let v40 : (unit -> UH0) = closure11(v39) │
00:00:16 #462 [Verbose] > │ UH0_0(v36, v40) │
00:00:16 #463 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:16 #464 [Verbose] > │ UH0_1 │
00:00:16 #465 [Verbose] > │ let v44 : US0 = US0_0(v43) │
00:00:16 #466 [Verbose] > │ v2.l0 <- v44 │
00:00:16 #467 [Verbose] > │ v43 │
00:00:16 #468 [Verbose] > │ let v47 : int32 = 5 │
00:00:16 #469 [Verbose] > │ let v48 : US1 = method1(v47, v46) │
00:00:16 #470 [Verbose] > │ let v52 : int32 = │
00:00:16 #471 [Verbose] > │ match v48 with │
00:00:16 #472 [Verbose] > │ | US1_0 -> (* None *) │
00:00:16 #473 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:16 #474 [Verbose] > │ | US1_1(v49) -> (* Some *) │
00:00:16 #475 [Verbose] > │ v49 │
00:00:16 #476 [Verbose] > │ let v53 : string = $"%A{v52}" │
00:00:16 #477 [Verbose] > │ System.Console.WriteLine v53 │
00:00:16 #478 [Verbose] > │ let v54 : bool = v52 = 5 │
00:00:16 #479 [Verbose] > │ let v56 : bool = │
00:00:16 #480 [Verbose] > │ if v54 then │
00:00:16 #481 [Verbose] > │ true │
00:00:16 #482 [Verbose] > │ else │
00:00:16 #483 [Verbose] > │ method2(v54) │
00:00:16 #484 [Verbose] > │ let v57 : string = $"__expect / actual: %A{v52} / expected: %A{5}" │
00:00:16 #485 [Verbose] > │ let v58 : bool = v56 = false │
00:00:16 #486 [Verbose] > │ if v58 then │
00:00:16 #487 [Verbose] > │ failwith<unit> v57 │
00:00:16 #488 [Verbose] > │ method0() │
00:00:16 #489 [Verbose] > │ │
00:00:16 #490 [Verbose] > │ print_and_return / x: 0 │
00:00:16 #491 [Verbose] > │ print_and_return / x: 1 │
00:00:16 #492 [Verbose] > │ print_and_return / x: 2 │
00:00:16 #493 [Verbose] > │ print_and_return / x: 3 │
00:00:16 #494 [Verbose] > │ 3 │
00:00:16 #495 [Verbose] > │ print_and_return / x: 4 │
00:00:16 #496 [Verbose] > │ print_and_return / x: 5 │
00:00:16 #497 [Verbose] > │ 5 │
00:00:16 #498 [Verbose] > │ │
00:00:16 #499 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #500 [Verbose] >
00:00:16 #501 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #502 [Verbose] > // // test
00:00:16 #503 [Verbose] >
00:00:16 #504 [Verbose] > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:00:16 #505 [Verbose] >
00:00:16 #506 [Verbose] > memo_stream ()
00:00:16 #507 [Verbose] > |> item 3i32
00:00:16 #508 [Verbose] > |> _assert_eq 3i32
00:00:16 #509 [Verbose] >
00:00:16 #510 [Verbose] > memo_stream ()
00:00:16 #511 [Verbose] > |> item 5i32
00:00:16 #512 [Verbose] > |> _assert_eq 5i32
00:00:17 #513 [Verbose] >
00:00:17 #514 [Verbose] > ╭─[ 419.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #515 [Verbose] > │ type UH0 = │
00:00:17 #516 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:17 #517 [Verbose] > │ | UH0_1 │
00:00:17 #518 [Verbose] > │ and [<Struct>] US0 = │
00:00:17 #519 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:17 #520 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:17 #521 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:17 #522 [Verbose] > │ and [<Struct>] US1 = │
00:00:17 #523 [Verbose] > │ | US1_0 │
00:00:17 #524 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:17 #525 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:17 #526 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:17 #527 [Verbose] > │ method1(v1) │
00:00:17 #528 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:17 #529 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:17 #530 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:17 #531 [Verbose] > │ UH0_0(v0, v1) │
00:00:17 #532 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 = │
00:00:17 #533 [Verbose] > │ v0 │
00:00:17 #534 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:17 #535 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:17 #536 [Verbose] > │ match v2 with │
00:00:17 #537 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:17 #538 [Verbose] > │ v3 │
00:00:17 #539 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:17 #540 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:17 #541 [Verbose] > │ let v12 : UH0 = │
00:00:17 #542 [Verbose] > │ match v5 with │
00:00:17 #543 [Verbose] > │ | UH0_0(v7, v8) -> (* StreamCons *) │
00:00:17 #544 [Verbose] > │ let v9 : (unit -> UH0) = method2(v0, v8) │
00:00:17 #545 [Verbose] > │ UH0_0(v7, v9) │
00:00:17 #546 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:17 #547 [Verbose] > │ UH0_1 │
00:00:17 #548 [Verbose] > │ let v13 : US0 = US0_0(v12) │
00:00:17 #549 [Verbose] > │ v1.l0 <- v13 │
00:00:17 #550 [Verbose] > │ v12 │
00:00:17 #551 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:17 #552 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:17 #553 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:17 #554 [Verbose] > │ closure2(v0, v3) │
00:00:17 #555 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US1 = │
00:00:17 #556 [Verbose] > │ match v1 with │
00:00:17 #557 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:17 #558 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:17 #559 [Verbose] > │ if v4 then │
00:00:17 #560 [Verbose] > │ US1_1(v2) │
00:00:17 #561 [Verbose] > │ else │
00:00:17 #562 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:17 #563 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:17 #564 [Verbose] > │ method3(v6, v7) │
00:00:17 #565 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:17 #566 [Verbose] > │ US1_0 │
00:00:17 #567 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:17 #568 [Verbose] > │ v0 │
00:00:17 #569 [Verbose] > │ and method0 () : unit = │
00:00:17 #570 [Verbose] > │ let v0 : int32 = 0 │
00:00:17 #571 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:17 #572 [Verbose] > │ let v2 : (unit -> UH0) = closure1(v1) │
00:00:17 #573 [Verbose] > │ let v3 : (unit -> UH0) = method2(v1, v2) │
00:00:17 #574 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:17 #575 [Verbose] > │ let v5 : int32 = 3 │
00:00:17 #576 [Verbose] > │ let v6 : US1 = method3(v5, v4) │
00:00:17 #577 [Verbose] > │ let v10 : int32 = │
00:00:17 #578 [Verbose] > │ match v6 with │
00:00:17 #579 [Verbose] > │ | US1_0 -> (* None *) │
00:00:17 #580 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:17 #581 [Verbose] > │ | US1_1(v7) -> (* Some *) │
00:00:17 #582 [Verbose] > │ v7 │
00:00:17 #583 [Verbose] > │ let v11 : string = $"%A{v10}" │
00:00:17 #584 [Verbose] > │ System.Console.WriteLine v11 │
00:00:17 #585 [Verbose] > │ let v12 : bool = v10 = 3 │
00:00:17 #586 [Verbose] > │ let v14 : bool = │
00:00:17 #587 [Verbose] > │ if v12 then │
00:00:17 #588 [Verbose] > │ true │
00:00:17 #589 [Verbose] > │ else │
00:00:17 #590 [Verbose] > │ method4(v12) │
00:00:17 #591 [Verbose] > │ let v15 : string = $"__expect / actual: %A{v10} / expected: %A{3}" │
00:00:17 #592 [Verbose] > │ let v16 : bool = v14 = false │
00:00:17 #593 [Verbose] > │ if v16 then │
00:00:17 #594 [Verbose] > │ failwith<unit> v15 │
00:00:17 #595 [Verbose] > │ let v17 : UH0 = v3 () │
00:00:17 #596 [Verbose] > │ let v18 : int32 = 5 │
00:00:17 #597 [Verbose] > │ let v19 : US1 = method3(v18, v17) │
00:00:17 #598 [Verbose] > │ let v23 : int32 = │
00:00:17 #599 [Verbose] > │ match v19 with │
00:00:17 #600 [Verbose] > │ | US1_0 -> (* None *) │
00:00:17 #601 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:17 #602 [Verbose] > │ | US1_1(v20) -> (* Some *) │
00:00:17 #603 [Verbose] > │ v20 │
00:00:17 #604 [Verbose] > │ let v24 : string = $"%A{v23}" │
00:00:17 #605 [Verbose] > │ System.Console.WriteLine v24 │
00:00:17 #606 [Verbose] > │ let v25 : bool = v23 = 5 │
00:00:17 #607 [Verbose] > │ let v27 : bool = │
00:00:17 #608 [Verbose] > │ if v25 then │
00:00:17 #609 [Verbose] > │ true │
00:00:17 #610 [Verbose] > │ else │
00:00:17 #611 [Verbose] > │ method4(v25) │
00:00:17 #612 [Verbose] > │ let v28 : string = $"__expect / actual: %A{v23} / expected: %A{5}" │
00:00:17 #613 [Verbose] > │ let v29 : bool = v27 = false │
00:00:17 #614 [Verbose] > │ if v29 then │
00:00:17 #615 [Verbose] > │ failwith<unit> v28 │
00:00:17 #616 [Verbose] > │ method0() │
00:00:17 #617 [Verbose] > │ │
00:00:17 #618 [Verbose] > │ print_and_return / x: 0 │
00:00:17 #619 [Verbose] > │ print_and_return / x: 1 │
00:00:17 #620 [Verbose] > │ print_and_return / x: 2 │
00:00:17 #621 [Verbose] > │ print_and_return / x: 3 │
00:00:17 #622 [Verbose] > │ 3 │
00:00:17 #623 [Verbose] > │ print_and_return / x: 4 │
00:00:17 #624 [Verbose] > │ print_and_return / x: 5 │
00:00:17 #625 [Verbose] > │ 5 │
00:00:17 #626 [Verbose] > │ │
00:00:17 #627 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #628 [Verbose] >
00:00:17 #629 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #630 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #631 [Verbose] > │ ## unfold │
00:00:17 #632 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #633 [Verbose] >
00:00:17 #634 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #635 [Verbose] > inl unfold f x0 =
00:00:17 #636 [Verbose] > inl rec body x =
00:00:17 #637 [Verbose] > match f x with
00:00:17 #638 [Verbose] > | Some (x', y) => StreamCons (x', fun () => loop y)
00:00:17 #639 [Verbose] > | None => StreamNil
00:00:17 #640 [Verbose] > and inl loop x = join_body_unit body x0 x
00:00:17 #641 [Verbose] > loop x0
00:00:17 #642 [Verbose] >
00:00:17 #643 [Verbose] > ╭─[ 297.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #644 [Verbose] > │ () │
00:00:17 #645 [Verbose] > │ │
00:00:17 #646 [Verbose] > │ │
00:00:17 #647 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #648 [Verbose] >
00:00:17 #649 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #650 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #651 [Verbose] > │ ## iterate │
00:00:17 #652 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #653 [Verbose] >
00:00:17 #654 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #655 [Verbose] > inl iterate f =
00:00:17 #656 [Verbose] > unfold (fun x => Some (x, f x))
00:00:18 #657 [Verbose] >
00:00:18 #658 [Verbose] > ╭─[ 304.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #659 [Verbose] > │ () │
00:00:18 #660 [Verbose] > │ │
00:00:18 #661 [Verbose] > │ │
00:00:18 #662 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #663 [Verbose] >
00:00:18 #664 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #665 [Verbose] > // // test
00:00:18 #666 [Verbose] >
00:00:18 #667 [Verbose] > iterate ((*) 2) 1i32
00:00:18 #668 [Verbose] > |> item 10i32
00:00:18 #669 [Verbose] > |> _assert_eq 1024
00:00:18 #670 [Verbose] >
00:00:18 #671 [Verbose] > ╭─[ 261.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #672 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #673 [Verbose] > │ let v0 : string = $"%A{1024}" │
00:00:18 #674 [Verbose] > │ System.Console.WriteLine v0 │
00:00:18 #675 [Verbose] > │ let v1 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:18 #676 [Verbose] > │ () │
00:00:18 #677 [Verbose] > │ method0() │
00:00:18 #678 [Verbose] > │ │
00:00:18 #679 [Verbose] > │ 1024 │
00:00:18 #680 [Verbose] > │ │
00:00:18 #681 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #682 [Verbose] >
00:00:18 #683 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #684 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #685 [Verbose] > │ ## take_while │
00:00:18 #686 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #687 [Verbose] >
00:00:18 #688 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #689 [Verbose] > inl take_while cond s =
00:00:18 #690 [Verbose] > inl rec body i = function
00:00:18 #691 [Verbose] > | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:00:18 #692 [Verbose] > (i + 1) (fn ()))
00:00:18 #693 [Verbose] > | _ => StreamNil
00:00:18 #694 [Verbose] > and inl loop i = join_body body i
00:00:18 #695 [Verbose] > loop 0 s
00:00:18 #696 [Verbose] >
00:00:18 #697 [Verbose] > ╭─[ 239.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #698 [Verbose] > │ () │
00:00:18 #699 [Verbose] > │ │
00:00:18 #700 [Verbose] > │ │
00:00:18 #701 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #702 [Verbose] >
00:00:18 #703 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #704 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #705 [Verbose] > │ ## sum │
00:00:18 #706 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #707 [Verbose] >
00:00:18 #708 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #709 [Verbose] > inl sum seq =
00:00:18 #710 [Verbose] > seq |> fold (+) 0
00:00:18 #711 [Verbose] >
00:00:18 #712 [Verbose] > ╭─[ 317.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #713 [Verbose] > │ () │
00:00:18 #714 [Verbose] > │ │
00:00:18 #715 [Verbose] > │ │
00:00:18 #716 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #717 [Verbose] >
00:00:18 #718 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #719 [Verbose] > // // test
00:00:18 #720 [Verbose] >
00:00:18 #721 [Verbose] > listm.init 10i32 id
00:00:18 #722 [Verbose] > |> from_list
00:00:18 #723 [Verbose] > |> sum
00:00:18 #724 [Verbose] > |> _assert_eq 45
00:00:19 #725 [Verbose] >
00:00:19 #726 [Verbose] > ╭─[ 261.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #727 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #728 [Verbose] > │ let v0 : string = $"%A{45}" │
00:00:19 #729 [Verbose] > │ System.Console.WriteLine v0 │
00:00:19 #730 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:19 #731 [Verbose] > │ () │
00:00:19 #732 [Verbose] > │ method0() │
00:00:19 #733 [Verbose] > │ │
00:00:19 #734 [Verbose] > │ 45 │
00:00:19 #735 [Verbose] > │ │
00:00:19 #736 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #737 [Verbose] >
00:00:19 #738 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #739 [Verbose] > // // test
00:00:19 #740 [Verbose] >
00:00:19 #741 [Verbose] > new_finite_stream print_and_return 10i32
00:00:19 #742 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:19 #743 [Verbose] > |> sum
00:00:19 #744 [Verbose] > |> _assert_eq 10
00:00:19 #745 [Verbose] >
00:00:19 #746 [Verbose] > ╭─[ 326.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #747 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #748 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:19 #749 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:19 #750 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:19 #751 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:19 #752 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:19 #753 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:19 #754 [Verbose] > │ let v0 : string = $"%A{10}" │
00:00:19 #755 [Verbose] > │ System.Console.WriteLine v0 │
00:00:19 #756 [Verbose] > │ let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:19 #757 [Verbose] > │ () │
00:00:19 #758 [Verbose] > │ method0() │
00:00:19 #759 [Verbose] > │ │
00:00:19 #760 [Verbose] > │ print_and_return / x: 0 │
00:00:19 #761 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #762 [Verbose] > │ print_and_return / x: 2 │
00:00:19 #763 [Verbose] > │ print_and_return / x: 3 │
00:00:19 #764 [Verbose] > │ print_and_return / x: 4 │
00:00:19 #765 [Verbose] > │ print_and_return / x: 5 │
00:00:19 #766 [Verbose] > │ 10 │
00:00:19 #767 [Verbose] > │ │
00:00:19 #768 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #769 [Verbose] >
00:00:19 #770 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #771 [Verbose] > // // test
00:00:19 #772 [Verbose] >
00:00:19 #773 [Verbose] > new_infinite_stream print_and_return
00:00:19 #774 [Verbose] > |> take_while (fun n (_ : i32) => n < 5i32)
00:00:19 #775 [Verbose] > |> sum
00:00:19 #776 [Verbose] > |> _assert_eq 10
00:00:20 #777 [Verbose] >
00:00:20 #778 [Verbose] > ╭─[ 879.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #779 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #780 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:20 #781 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:20 #782 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:20 #783 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:20 #784 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:20 #785 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:20 #786 [Verbose] > │ let v0 : string = $"%A{10}" │
00:00:20 #787 [Verbose] > │ System.Console.WriteLine v0 │
00:00:20 #788 [Verbose] > │ let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:20 #789 [Verbose] > │ () │
00:00:20 #790 [Verbose] > │ method0() │
00:00:20 #791 [Verbose] > │ │
00:00:20 #792 [Verbose] > │ print_and_return / x: 0 │
00:00:20 #793 [Verbose] > │ print_and_return / x: 1 │
00:00:20 #794 [Verbose] > │ print_and_return / x: 2 │
00:00:20 #795 [Verbose] > │ print_and_return / x: 3 │
00:00:20 #796 [Verbose] > │ print_and_return / x: 4 │
00:00:20 #797 [Verbose] > │ print_and_return / x: 5 │
00:00:20 #798 [Verbose] > │ 10 │
00:00:20 #799 [Verbose] > │ │
00:00:20 #800 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #801 [Verbose] >
00:00:20 #802 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #803 [Verbose] > // // test
00:00:20 #804 [Verbose] >
00:00:20 #805 [Verbose] > iterate ((*) 6) 1i32
00:00:20 #806 [Verbose] > |> take_while (fun _ i => i <= 7i32)
00:00:20 #807 [Verbose] > |> to_list
00:00:20 #808 [Verbose] > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:00:20 #809 [Verbose] >
00:00:20 #810 [Verbose] > ╭─[ 419.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #811 [Verbose] > │ type UH0 = │
00:00:20 #812 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:20 #813 [Verbose] > │ | UH0_1 │
00:00:20 #814 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #815 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:20 #816 [Verbose] > │ let v1 : UH0 = UH0_0(279936, v0) │
00:00:20 #817 [Verbose] > │ let v2 : UH0 = UH0_0(46656, v1) │
00:00:20 #818 [Verbose] > │ let v3 : UH0 = UH0_0(7776, v2) │
00:00:20 #819 [Verbose] > │ let v4 : UH0 = UH0_0(1296, v3) │
00:00:20 #820 [Verbose] > │ let v5 : UH0 = UH0_0(216, v4) │
00:00:20 #821 [Verbose] > │ let v6 : UH0 = UH0_0(36, v5) │
00:00:20 #822 [Verbose] > │ let v7 : UH0 = UH0_0(6, v6) │
00:00:20 #823 [Verbose] > │ let v8 : UH0 = UH0_0(1, v7) │
00:00:20 #824 [Verbose] > │ let v9 : string = $"%A{v8}" │
00:00:20 #825 [Verbose] > │ System.Console.WriteLine v9 │
00:00:20 #826 [Verbose] > │ let v73 : UH0 = UH0_1 │
00:00:20 #827 [Verbose] > │ let v74 : UH0 = UH0_0(279936, v73) │
00:00:20 #828 [Verbose] > │ let v75 : UH0 = UH0_0(46656, v74) │
00:00:20 #829 [Verbose] > │ let v76 : UH0 = UH0_0(7776, v75) │
00:00:20 #830 [Verbose] > │ let v77 : UH0 = UH0_0(1296, v76) │
00:00:20 #831 [Verbose] > │ let v78 : UH0 = UH0_0(216, v77) │
00:00:20 #832 [Verbose] > │ let v79 : UH0 = UH0_0(36, v78) │
00:00:20 #833 [Verbose] > │ let v80 : UH0 = UH0_0(6, v79) │
00:00:20 #834 [Verbose] > │ let v81 : UH0 = UH0_0(1, v80) │
00:00:20 #835 [Verbose] > │ let v82 : UH0 = UH0_1 │
00:00:20 #836 [Verbose] > │ let v83 : UH0 = UH0_0(279936, v82) │
00:00:20 #837 [Verbose] > │ let v84 : UH0 = UH0_0(46656, v83) │
00:00:20 #838 [Verbose] > │ let v85 : UH0 = UH0_0(7776, v84) │
00:00:20 #839 [Verbose] > │ let v86 : UH0 = UH0_0(1296, v85) │
00:00:20 #840 [Verbose] > │ let v87 : UH0 = UH0_0(216, v86) │
00:00:20 #841 [Verbose] > │ let v88 : UH0 = UH0_0(36, v87) │
00:00:20 #842 [Verbose] > │ let v89 : UH0 = UH0_0(6, v88) │
00:00:20 #843 [Verbose] > │ let v90 : UH0 = UH0_0(1, v89) │
00:00:20 #844 [Verbose] > │ let v91 : string = $"__expect / actual: %A{v81} / expected: %A{v90}" │
00:00:20 #845 [Verbose] > │ () │
00:00:20 #846 [Verbose] > │ method0() │
00:00:20 #847 [Verbose] > │ │
00:00:20 #848 [Verbose] > │ UH0_0 │
00:00:20 #849 [Verbose] > │ (1, │
00:00:20 #850 [Verbose] > │ UH0_0 │
00:00:20 #851 [Verbose] > │ (6, │
00:00:20 #852 [Verbose] > │ UH0_0 │
00:00:20 #853 [Verbose] > │ (36, │
00:00:20 #854 [Verbose] > │ UH0_0 │
00:00:20 #855 [Verbose] > │ (216, │
00:00:20 #856 [Verbose] > │ UH0_0 (1296, UH0_0 (7776, UH0_0 (46656, UH0_0 (279936, │
00:00:20 #857 [Verbose] > │ UH0_1)))))))) │
00:00:20 #858 [Verbose] > │ │
00:00:20 #859 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #860 [Verbose] >
00:00:20 #861 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #862 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #863 [Verbose] > │ ## indexed │
00:00:20 #864 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #865 [Verbose] >
00:00:20 #866 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #867 [Verbose] > inl indexed s =
00:00:20 #868 [Verbose] > ((StreamNil, 0), s)
00:00:20 #869 [Verbose] > ||> fold fun (acc, i) x =>
00:00:20 #870 [Verbose] > StreamCons ((i, x), fun () => acc), i + 1
00:00:20 #871 [Verbose] > |> fst
00:00:20 #872 [Verbose] > |> rev
00:00:21 #873 [Verbose] >
00:00:21 #874 [Verbose] > ╭─[ 268.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #875 [Verbose] > │ () │
00:00:21 #876 [Verbose] > │ │
00:00:21 #877 [Verbose] > │ │
00:00:21 #878 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #879 [Verbose] >
00:00:21 #880 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #881 [Verbose] > // // test
00:00:21 #882 [Verbose] >
00:00:21 #883 [Verbose] > listm.init 10i32 ((*) 2)
00:00:21 #884 [Verbose] > |> from_list
00:00:21 #885 [Verbose] > |> indexed
00:00:21 #886 [Verbose] > |> item 5i32
00:00:21 #887 [Verbose] > |> _assert_eq (5i32, 10i32)
00:00:21 #888 [Verbose] >
00:00:21 #889 [Verbose] > ╭─[ 425.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #890 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #891 [Verbose] > │ let v0 : string = $"%A{struct (5, 10)}" │
00:00:21 #892 [Verbose] > │ System.Console.WriteLine v0 │
00:00:21 #893 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (5, 10)} / expected: │
00:00:21 #894 [Verbose] > │ %A{struct (5, 10)}" │
00:00:21 #895 [Verbose] > │ () │
00:00:21 #896 [Verbose] > │ method0() │
00:00:21 #897 [Verbose] > │ │
00:00:21 #898 [Verbose] > │ struct (5, 10) │
00:00:21 #899 [Verbose] > │ │
00:00:21 #900 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #901 [Verbose] >
00:00:21 #902 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #903 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #904 [Verbose] > │ ## map │
00:00:21 #905 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #906 [Verbose] >
00:00:21 #907 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #908 [Verbose] > inl map fn s =
00:00:21 #909 [Verbose] > (s, StreamNil)
00:00:21 #910 [Verbose] > ||> fold_back fun x acc =>
00:00:21 #911 [Verbose] > StreamCons (fn x, fun () => acc)
00:00:21 #912 [Verbose] >
00:00:21 #913 [Verbose] > ╭─[ 255.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #914 [Verbose] > │ () │
00:00:21 #915 [Verbose] > │ │
00:00:21 #916 [Verbose] > │ │
00:00:21 #917 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #918 [Verbose] >
00:00:21 #919 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #920 [Verbose] > // // test
00:00:21 #921 [Verbose] >
00:00:21 #922 [Verbose] > listm.init 10i32 id
00:00:21 #923 [Verbose] > |> from_list
00:00:21 #924 [Verbose] > |> map ((*) 2)
00:00:21 #925 [Verbose] > |> item 5i32
00:00:21 #926 [Verbose] > |> _assert_eq 10i32
00:00:22 #927 [Verbose] >
00:00:22 #928 [Verbose] > ╭─[ 301.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #929 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #930 [Verbose] > │ let v0 : string = $"%A{10}" │
00:00:22 #931 [Verbose] > │ System.Console.WriteLine v0 │
00:00:22 #932 [Verbose] > │ let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:22 #933 [Verbose] > │ () │
00:00:22 #934 [Verbose] > │ method0() │
00:00:22 #935 [Verbose] > │ │
00:00:22 #936 [Verbose] > │ 10 │
00:00:22 #937 [Verbose] > │ │
00:00:22 #938 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #939 [Verbose] >
00:00:22 #940 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #941 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #942 [Verbose] > │ ## zip_with │
00:00:22 #943 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #944 [Verbose] >
00:00:22 #945 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #946 [Verbose] > inl zip_with fn s1 s2 =
00:00:22 #947 [Verbose] > inl rec loop s1 s2 =
00:00:22 #948 [Verbose] > match s1, s2 with
00:00:22 #949 [Verbose] > | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:00:22 #950 [Verbose] > StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:00:22 #951 [Verbose] > | StreamNil, _ | _, StreamNil => StreamNil
00:00:22 #952 [Verbose] > loop s1 s2
00:00:22 #953 [Verbose] >
00:00:22 #954 [Verbose] > inl zip_with_ fn s1 s2 =
00:00:22 #955 [Verbose] > let rec loop s1 s2 =
00:00:22 #956 [Verbose] > match s1, s2 with
00:00:22 #957 [Verbose] > | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:00:22 #958 [Verbose] > StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:00:22 #959 [Verbose] > | StreamNil, _ | _, StreamNil => StreamNil
00:00:22 #960 [Verbose] > loop s1 s2
00:00:22 #961 [Verbose] >
00:00:22 #962 [Verbose] > ╭─[ 616.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #963 [Verbose] > │ () │
00:00:22 #964 [Verbose] > │ │
00:00:22 #965 [Verbose] > │ │
00:00:22 #966 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #967 [Verbose] >
00:00:22 #968 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #969 [Verbose] > // // test
00:00:22 #970 [Verbose] >
00:00:22 #971 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:22 #972 [Verbose] > ||> zip_with (+)
00:00:22 #973 [Verbose] > |> item 2i32
00:00:22 #974 [Verbose] > |> _assert_eq 6
00:00:23 #975 [Verbose] >
00:00:23 #976 [Verbose] > ╭─[ 359.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #977 [Verbose] > │ let rec method0 () : unit = │
00:00:23 #978 [Verbose] > │ let v0 : string = $"%A{6}" │
00:00:23 #979 [Verbose] > │ System.Console.WriteLine v0 │
00:00:23 #980 [Verbose] > │ let v1 : string = $"__expect / actual: %A{6} / expected: %A{6}" │
00:00:23 #981 [Verbose] > │ () │
00:00:23 #982 [Verbose] > │ method0() │
00:00:23 #983 [Verbose] > │ │
00:00:23 #984 [Verbose] > │ 6 │
00:00:23 #985 [Verbose] > │ │
00:00:23 #986 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #987 [Verbose] >
00:00:23 #988 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #989 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #990 [Verbose] > │ ## zip │
00:00:23 #991 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #992 [Verbose] >
00:00:23 #993 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #994 [Verbose] > inl zip s1 s2 =
00:00:23 #995 [Verbose] > zip_with pair s1 s2
00:00:23 #996 [Verbose] >
00:00:23 #997 [Verbose] > inl zip_ s1 s2 =
00:00:23 #998 [Verbose] > zip_with_ pair s1 s2
00:00:23 #999 [Verbose] >
00:00:23 #1000 [Verbose] > ╭─[ 361.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #1001 [Verbose] > │ () │
00:00:23 #1002 [Verbose] > │ │
00:00:23 #1003 [Verbose] > │ │
00:00:23 #1004 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1005 [Verbose] >
00:00:23 #1006 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #1007 [Verbose] > // // test
00:00:23 #1008 [Verbose] >
00:00:23 #1009 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:23 #1010 [Verbose] > ||> zip
00:00:23 #1011 [Verbose] > |> item 5i32
00:00:23 #1012 [Verbose] > |> _assert_eq (5, 10)
00:00:24 #1013 [Verbose] >
00:00:24 #1014 [Verbose] > ╭─[ 527.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #1015 [Verbose] > │ let rec method0 () : unit = │
00:00:24 #1016 [Verbose] > │ let v0 : string = $"%A{struct (5, 10)}" │
00:00:24 #1017 [Verbose] > │ System.Console.WriteLine v0 │
00:00:24 #1018 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (5, 10)} / expected: │
00:00:24 #1019 [Verbose] > │ %A{struct (5, 10)}" │
00:00:24 #1020 [Verbose] > │ () │
00:00:24 #1021 [Verbose] > │ method0() │
00:00:24 #1022 [Verbose] > │ │
00:00:24 #1023 [Verbose] > │ struct (5, 10) │
00:00:24 #1024 [Verbose] > │ │
00:00:24 #1025 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1026 [Verbose] >
00:00:24 #1027 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #1028 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #1029 [Verbose] > │ ## unzip │
00:00:24 #1030 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1031 [Verbose] >
00:00:24 #1032 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #1033 [Verbose] > inl unzip s =
00:00:24 #1034 [Verbose] > inl rec body s =
00:00:24 #1035 [Verbose] > match s with
00:00:24 #1036 [Verbose] > | StreamCons ((x, y), fn) =>
00:00:24 #1037 [Verbose] > inl xs, ys = loop (fn ())
00:00:24 #1038 [Verbose] > StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:00:24 #1039 [Verbose] > | StreamNil => pair StreamNil StreamNil
00:00:24 #1040 [Verbose] > and inl loop x =
00:00:24 #1041 [Verbose] > if var_is x |> not
00:00:24 #1042 [Verbose] > then body x
00:00:24 #1043 [Verbose] > else
00:00:24 #1044 [Verbose] > inl x = dyn x
00:00:24 #1045 [Verbose] > join body x
00:00:24 #1046 [Verbose] > loop s
00:00:24 #1047 [Verbose] >
00:00:24 #1048 [Verbose] > ╭─[ 414.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #1049 [Verbose] > │ () │
00:00:24 #1050 [Verbose] > │ │
00:00:24 #1051 [Verbose] > │ │
00:00:24 #1052 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1053 [Verbose] >
00:00:24 #1054 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #1055 [Verbose] > // // test
00:00:24 #1056 [Verbose] >
00:00:24 #1057 [Verbose] > listm.init 10i32 id
00:00:24 #1058 [Verbose] > |> listm.map (fun x => x, x)
00:00:24 #1059 [Verbose] > |> from_list
00:00:24 #1060 [Verbose] > |> unzip
00:00:24 #1061 [Verbose] > |> fun x, y =>
00:00:24 #1062 [Verbose] > x |> sum
00:00:24 #1063 [Verbose] > |> _assert_eq 45
00:00:24 #1064 [Verbose] >
00:00:24 #1065 [Verbose] > y |> sum
00:00:24 #1066 [Verbose] > |> _assert_eq 45
00:00:24 #1067 [Verbose] >
00:00:24 #1068 [Verbose] > ╭─[ 423.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #1069 [Verbose] > │ let rec method0 () : unit = │
00:00:24 #1070 [Verbose] > │ let v0 : string = $"%A{45}" │
00:00:24 #1071 [Verbose] > │ System.Console.WriteLine v0 │
00:00:24 #1072 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:24 #1073 [Verbose] > │ let v2 : string = $"%A{45}" │
00:00:24 #1074 [Verbose] > │ System.Console.WriteLine v2 │
00:00:24 #1075 [Verbose] > │ let v3 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:24 #1076 [Verbose] > │ () │
00:00:24 #1077 [Verbose] > │ method0() │
00:00:24 #1078 [Verbose] > │ │
00:00:24 #1079 [Verbose] > │ 45 │
00:00:24 #1080 [Verbose] > │ 45 │
00:00:24 #1081 [Verbose] > │ │
00:00:24 #1082 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1083 [Verbose] > [NbConvertApp] Converting notebook stream.dib.ipynb to html
00:00:27 #1084 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:27 #1085 [Verbose] > validate(nb)
00:00:28 #1086 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:28 #1087 [Verbose] > return _pygments_highlight(
00:00:29 #1088 [Verbose] > [NbConvertApp] Writing 360587 bytes to stream.dib.html
00:00:30 #1089 [Debug] executeAsync / exitCode: 0 / output.Length: 66677
00:00:30 #1090 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 seq.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:04 #3 [Verbose] >
00:00:04 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #6 [Verbose] > │ # seq │
00:00:04 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #8 [Verbose] >
00:00:04 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #10 [Verbose] > // // test
00:00:04 #11 [Verbose] >
00:00:04 #12 [Verbose] > open testing
00:00:11 #13 [Verbose] >
00:00:11 #14 [Verbose] > ╭─[ 7.40s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #15 [Verbose] > │ () │
00:00:11 #16 [Verbose] > │ │
00:00:11 #17 [Verbose] > │ │
00:00:11 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #19 [Verbose] >
00:00:11 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #22 [Verbose] > │ ## seq' │
00:00:11 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #24 [Verbose] >
00:00:11 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #26 [Verbose] > type seq' t = $"`t seq"
00:00:12 #27 [Verbose] >
00:00:12 #28 [Verbose] > ╭─[ 252.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #29 [Verbose] > │ () │
00:00:12 #30 [Verbose] > │ │
00:00:12 #31 [Verbose] > │ │
00:00:12 #32 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #33 [Verbose] >
00:00:12 #34 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #35 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #36 [Verbose] > │ ## of_array' │
00:00:12 #37 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #38 [Verbose] >
00:00:12 #39 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #40 [Verbose] > inl of_array' forall dim t. (items : a dim t) : seq' t =
00:00:12 #41 [Verbose] > $'seq { for i = 0 to !items.Length - 1 do yield !items.[[i]] }'
00:00:12 #42 [Verbose] >
00:00:12 #43 [Verbose] > ╭─[ 245.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #44 [Verbose] > │ () │
00:00:12 #45 [Verbose] > │ │
00:00:12 #46 [Verbose] > │ │
00:00:12 #47 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #48 [Verbose] >
00:00:12 #49 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #50 [Verbose] > // // test
00:00:12 #51 [Verbose] >
00:00:12 #52 [Verbose] > (a ;[["a"; "b"]] : _ i32 _)
00:00:12 #53 [Verbose] > |> of_array'
00:00:13 #54 [Verbose] >
00:00:13 #55 [Verbose] > ╭─[ 1.43s - return value ]─────────────────────────────────────────────────────╮
00:00:13 #56 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span │
00:00:13 #57 [Verbose] > │ class="dni-code-hint"><code>[ a, b │
00:00:13 #58 [Verbose] > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:00:13 #59 [Verbose] > │ CheckClose</td><td><div │
00:00:13 #60 [Verbose] > │ class="dni-plaintext"><pre>False</pre></div></td></tr><tr><td>LastGenerated< │
00:00:13 #61 [Verbose] > │ /td><td><div │
00:00:13 #62 [Verbose] > │ class="dni-plaintext"><pre><null></pre></div></td></tr><tr><td>v2</td> │
00:00:13 #63 [Verbose] > │ <td><div class="dni-plaintext"><pre>[ a, b │
00:00:13 #64 [Verbose] > │ ]</pre></div></td></tr><tr><td>enum</td><td><div │
00:00:13 #65 [Verbose] > │ class="dni-plaintext"><pre><null></pre></div></td></tr><tr><td>pc</td> │
00:00:13 #66 [Verbose] > │ <td><div │
00:00:13 #67 [Verbose] > │ class="dni-plaintext"><pre>0</pre></div></td></tr><tr><td>current</td><td><d │
00:00:13 #68 [Verbose] > │ iv │
00:00:13 #69 [Verbose] > │ class="dni-plaintext"><pre><null></pre></div></td></tr><tr><td><i>(val │
00:00:13 #70 [Verbose] > │ ues)</i></td><td><div class="dni-plaintext"><pre>[ a, b ]</pr... │
00:00:13 #71 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #72 [Verbose] >
00:00:13 #73 [Verbose] > ╭─[ 1.45s - stdout ]───────────────────────────────────────────────────────────╮
00:00:13 #74 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:13 #75 [Verbose] > │ v0 │
00:00:13 #76 [Verbose] > │ and method0 () : string seq = │
00:00:13 #77 [Verbose] > │ let v0 : string = "a" │
00:00:13 #78 [Verbose] > │ let v1 : string = "b" │
00:00:13 #79 [Verbose] > │ let v2 : (string []) = [|v0; v1|] │
00:00:13 #80 [Verbose] > │ let v3 : (string []) = method1(v2) │
00:00:13 #81 [Verbose] > │ let v4 : string seq = seq { for i = 0 to v3.Length - 1 do yield v3.[i] } │
00:00:13 #82 [Verbose] > │ v4 │
00:00:13 #83 [Verbose] > │ method0() │
00:00:13 #84 [Verbose] > │ │
00:00:13 #85 [Verbose] > │ │
00:00:13 #86 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #87 [Verbose] >
00:00:13 #88 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #89 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #90 [Verbose] > │ ## to_array' │
00:00:13 #91 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #92 [Verbose] >
00:00:13 #93 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #94 [Verbose] > inl to_array' forall dim t. (items : seq' t) : a dim t =
00:00:13 #95 [Verbose] > $'!items |> Seq.toArray'
00:00:14 #96 [Verbose] >
00:00:14 #97 [Verbose] > ╭─[ 376.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #98 [Verbose] > │ () │
00:00:14 #99 [Verbose] > │ │
00:00:14 #100 [Verbose] > │ │
00:00:14 #101 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #102 [Verbose] >
00:00:14 #103 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #104 [Verbose] > // // test
00:00:14 #105 [Verbose] >
00:00:14 #106 [Verbose] > (a ;[["a"; "b"]] : _ i32 _)
00:00:14 #107 [Verbose] > |> of_array'
00:00:14 #108 [Verbose] > |> to_array'
00:00:14 #109 [Verbose] > |> _assert_eq (a ;[["a"; "b"]] : _ i32 _)
00:00:14 #110 [Verbose] >
00:00:15 #111 [Verbose] > ╭─[ 766.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #112 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:15 #113 [Verbose] > │ v0 │
00:00:15 #114 [Verbose] > │ and method2 (v0 : (string []), v1 : (string []), v2 : int32) : bool = │
00:00:15 #115 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:15 #116 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:15 #117 [Verbose] > │ if v4 then │
00:00:15 #118 [Verbose] > │ let v5 : string = v0.[int v2] │
00:00:15 #119 [Verbose] > │ let v6 : string = v1.[int v2] │
00:00:15 #120 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:15 #121 [Verbose] > │ if v7 then │
00:00:15 #122 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:15 #123 [Verbose] > │ method2(v0, v1, v8) │
00:00:15 #124 [Verbose] > │ else │
00:00:15 #125 [Verbose] > │ false │
00:00:15 #126 [Verbose] > │ else │
00:00:15 #127 [Verbose] > │ true │
00:00:15 #128 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:15 #129 [Verbose] > │ v0 │
00:00:15 #130 [Verbose] > │ and method0 () : unit = │
00:00:15 #131 [Verbose] > │ let v0 : string = "a" │
00:00:15 #132 [Verbose] > │ let v1 : string = "b" │
00:00:15 #133 [Verbose] > │ let v2 : (string []) = [|v0; v1|] │
00:00:15 #134 [Verbose] > │ let v3 : (string []) = method1(v2) │
00:00:15 #135 [Verbose] > │ let v4 : string seq = seq { for i = 0 to v3.Length - 1 do yield v3.[i] } │
00:00:15 #136 [Verbose] > │ let v5 : (string []) = v4 |> Seq.toArray │
00:00:15 #137 [Verbose] > │ let v6 : (string []) = [|v0; v1|] │
00:00:15 #138 [Verbose] > │ let v7 : (string []) = method1(v6) │
00:00:15 #139 [Verbose] > │ let v8 : string = $"%A{v5}" │
00:00:15 #140 [Verbose] > │ System.Console.WriteLine v8 │
00:00:15 #141 [Verbose] > │ let v9 : int32 = v5.Length │
00:00:15 #142 [Verbose] > │ let v10 : int32 = v7.Length │
00:00:15 #143 [Verbose] > │ let v11 : bool = v9 = v10 │
00:00:15 #144 [Verbose] > │ let v12 : bool = v11 <> true │
00:00:15 #145 [Verbose] > │ let v15 : bool = │
00:00:15 #146 [Verbose] > │ if v12 then │
00:00:15 #147 [Verbose] > │ false │
00:00:15 #148 [Verbose] > │ else │
00:00:15 #149 [Verbose] > │ let v13 : int32 = 0 │
00:00:15 #150 [Verbose] > │ method2(v5, v7, v13) │
00:00:15 #151 [Verbose] > │ let v17 : bool = │
00:00:15 #152 [Verbose] > │ if v15 then │
00:00:15 #153 [Verbose] > │ true │
00:00:15 #154 [Verbose] > │ else │
00:00:15 #155 [Verbose] > │ method3(v15) │
00:00:15 #156 [Verbose] > │ let v18 : string = $"__expect / actual: %A{v5} / expected: %A{v7}" │
00:00:15 #157 [Verbose] > │ let v19 : bool = v17 = false │
00:00:15 #158 [Verbose] > │ if v19 then │
00:00:15 #159 [Verbose] > │ failwith<unit> v18 │
00:00:15 #160 [Verbose] > │ method0() │
00:00:15 #161 [Verbose] > │ │
00:00:15 #162 [Verbose] > │ [|"a"; "b"|] │
00:00:15 #163 [Verbose] > │ │
00:00:15 #164 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #165 [Verbose] >
00:00:15 #166 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #167 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #168 [Verbose] > │ ## seq │
00:00:15 #169 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #170 [Verbose] >
00:00:15 #171 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #172 [Verbose] > type seq dim el = dim -> option el
00:00:15 #173 [Verbose] >
00:00:15 #174 [Verbose] > ╭─[ 285.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #175 [Verbose] > │ () │
00:00:15 #176 [Verbose] > │ │
00:00:15 #177 [Verbose] > │ │
00:00:15 #178 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #179 [Verbose] >
00:00:15 #180 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #181 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #182 [Verbose] > │ ## try_item │
00:00:15 #183 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #184 [Verbose] >
00:00:15 #185 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #186 [Verbose] > inl try_item n s =
00:00:15 #187 [Verbose] > n |> s
00:00:15 #188 [Verbose] >
00:00:15 #189 [Verbose] > ╭─[ 265.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #190 [Verbose] > │ () │
00:00:15 #191 [Verbose] > │ │
00:00:15 #192 [Verbose] > │ │
00:00:15 #193 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #194 [Verbose] >
00:00:15 #195 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #196 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #197 [Verbose] > │ ## from_list │
00:00:15 #198 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #199 [Verbose] >
00:00:15 #200 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #201 [Verbose] > inl from_list list =
00:00:15 #202 [Verbose] > fun n =>
00:00:15 #203 [Verbose] > list
00:00:15 #204 [Verbose] > |> listm'.try_item n
00:00:15 #205 [Verbose] >
00:00:15 #206 [Verbose] > ╭─[ 354.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #207 [Verbose] > │ () │
00:00:15 #208 [Verbose] > │ │
00:00:15 #209 [Verbose] > │ │
00:00:15 #210 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #211 [Verbose] >
00:00:15 #212 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #213 [Verbose] > // // test
00:00:15 #214 [Verbose] >
00:00:15 #215 [Verbose] > listm.init 10i32 print_and_return
00:00:15 #216 [Verbose] > |> from_list
00:00:15 #217 [Verbose] > |> try_item 5i32
00:00:15 #218 [Verbose] > |> _assert_eq (Some 5i32)
00:00:16 #219 [Verbose] >
00:00:16 #220 [Verbose] > ╭─[ 825.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #221 [Verbose] > │ type [<Struct>] US0 = │
00:00:16 #222 [Verbose] > │ | US0_0 │
00:00:16 #223 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:16 #224 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #225 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:16 #226 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:16 #227 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:16 #228 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:16 #229 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:16 #230 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:16 #231 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:16 #232 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:16 #233 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:16 #234 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:16 #235 [Verbose] > │ let v0 : US0 = US0_1(5) │
00:00:16 #236 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:16 #237 [Verbose] > │ System.Console.WriteLine v1 │
00:00:16 #238 [Verbose] > │ let v5 : US0 = US0_1(5) │
00:00:16 #239 [Verbose] > │ let v6 : US0 = US0_1(5) │
00:00:16 #240 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:16 #241 [Verbose] > │ () │
00:00:16 #242 [Verbose] > │ method0() │
00:00:16 #243 [Verbose] > │ │
00:00:16 #244 [Verbose] > │ print_and_return / x: 0 │
00:00:16 #245 [Verbose] > │ print_and_return / x: 1 │
00:00:16 #246 [Verbose] > │ print_and_return / x: 2 │
00:00:16 #247 [Verbose] > │ print_and_return / x: 3 │
00:00:16 #248 [Verbose] > │ print_and_return / x: 4 │
00:00:16 #249 [Verbose] > │ print_and_return / x: 5 │
00:00:16 #250 [Verbose] > │ print_and_return / x: 6 │
00:00:16 #251 [Verbose] > │ print_and_return / x: 7 │
00:00:16 #252 [Verbose] > │ print_and_return / x: 8 │
00:00:16 #253 [Verbose] > │ print_and_return / x: 9 │
00:00:16 #254 [Verbose] > │ US0_1 5 │
00:00:16 #255 [Verbose] > │ │
00:00:16 #256 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #257 [Verbose] >
00:00:16 #258 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #259 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #260 [Verbose] > │ ## map │
00:00:16 #261 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #262 [Verbose] >
00:00:16 #263 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #264 [Verbose] > inl map fn s =
00:00:16 #265 [Verbose] > fun n =>
00:00:16 #266 [Verbose] > n
00:00:16 #267 [Verbose] > |> s
00:00:16 #268 [Verbose] > |> optionm.map fn
00:00:17 #269 [Verbose] >
00:00:17 #270 [Verbose] > ╭─[ 271.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #271 [Verbose] > │ () │
00:00:17 #272 [Verbose] > │ │
00:00:17 #273 [Verbose] > │ │
00:00:17 #274 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #275 [Verbose] >
00:00:17 #276 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #277 [Verbose] > // // test
00:00:17 #278 [Verbose] >
00:00:17 #279 [Verbose] > listm.init 10i32 id
00:00:17 #280 [Verbose] > |> from_list
00:00:17 #281 [Verbose] > |> map ((*) 2)
00:00:17 #282 [Verbose] > |> try_item 5i32
00:00:17 #283 [Verbose] > |> _assert_eq (Some 10i32)
00:00:17 #284 [Verbose] >
00:00:17 #285 [Verbose] > ╭─[ 307.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #286 [Verbose] > │ type [<Struct>] US0 = │
00:00:17 #287 [Verbose] > │ | US0_0 │
00:00:17 #288 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:17 #289 [Verbose] > │ let rec method0 () : unit = │
00:00:17 #290 [Verbose] > │ let v0 : US0 = US0_1(10) │
00:00:17 #291 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:17 #292 [Verbose] > │ System.Console.WriteLine v1 │
00:00:17 #293 [Verbose] > │ let v5 : US0 = US0_1(10) │
00:00:17 #294 [Verbose] > │ let v6 : US0 = US0_1(10) │
00:00:17 #295 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:17 #296 [Verbose] > │ () │
00:00:17 #297 [Verbose] > │ method0() │
00:00:17 #298 [Verbose] > │ │
00:00:17 #299 [Verbose] > │ US0_1 10 │
00:00:17 #300 [Verbose] > │ │
00:00:17 #301 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #302 [Verbose] >
00:00:17 #303 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #304 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #305 [Verbose] > │ ## mapi │
00:00:17 #306 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #307 [Verbose] >
00:00:17 #308 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #309 [Verbose] > inl mapi fn s =
00:00:17 #310 [Verbose] > fun n =>
00:00:17 #311 [Verbose] > n
00:00:17 #312 [Verbose] > |> s
00:00:17 #313 [Verbose] > |> optionm.map (fn n)
00:00:17 #314 [Verbose] >
00:00:17 #315 [Verbose] > ╭─[ 309.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #316 [Verbose] > │ () │
00:00:17 #317 [Verbose] > │ │
00:00:17 #318 [Verbose] > │ │
00:00:17 #319 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #320 [Verbose] >
00:00:17 #321 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #322 [Verbose] > // // test
00:00:17 #323 [Verbose] >
00:00:17 #324 [Verbose] > listm.init 10i32 print_and_return
00:00:17 #325 [Verbose] > |> from_list
00:00:17 #326 [Verbose] > |> mapi fun i x => i + x
00:00:17 #327 [Verbose] > |> try_item 5i32
00:00:17 #328 [Verbose] > |> _assert_eq (Some 10i32)
00:00:18 #329 [Verbose] >
00:00:18 #330 [Verbose] > ╭─[ 330.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #331 [Verbose] > │ type [<Struct>] US0 = │
00:00:18 #332 [Verbose] > │ | US0_0 │
00:00:18 #333 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:18 #334 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #335 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:18 #336 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #337 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:18 #338 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:18 #339 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:18 #340 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:18 #341 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:18 #342 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:18 #343 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:18 #344 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:18 #345 [Verbose] > │ let v0 : US0 = US0_1(10) │
00:00:18 #346 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:18 #347 [Verbose] > │ System.Console.WriteLine v1 │
00:00:18 #348 [Verbose] > │ let v5 : US0 = US0_1(10) │
00:00:18 #349 [Verbose] > │ let v6 : US0 = US0_1(10) │
00:00:18 #350 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:18 #351 [Verbose] > │ () │
00:00:18 #352 [Verbose] > │ method0() │
00:00:18 #353 [Verbose] > │ │
00:00:18 #354 [Verbose] > │ print_and_return / x: 0 │
00:00:18 #355 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #356 [Verbose] > │ print_and_return / x: 2 │
00:00:18 #357 [Verbose] > │ print_and_return / x: 3 │
00:00:18 #358 [Verbose] > │ print_and_return / x: 4 │
00:00:18 #359 [Verbose] > │ print_and_return / x: 5 │
00:00:18 #360 [Verbose] > │ print_and_return / x: 6 │
00:00:18 #361 [Verbose] > │ print_and_return / x: 7 │
00:00:18 #362 [Verbose] > │ print_and_return / x: 8 │
00:00:18 #363 [Verbose] > │ print_and_return / x: 9 │
00:00:18 #364 [Verbose] > │ US0_1 10 │
00:00:18 #365 [Verbose] > │ │
00:00:18 #366 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #367 [Verbose] >
00:00:18 #368 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #369 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #370 [Verbose] > │ ## choose │
00:00:18 #371 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #372 [Verbose] >
00:00:18 #373 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #374 [Verbose] > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:00:18 #375 [Verbose] > dim u =
00:00:18 #376 [Verbose] > fun n =>
00:00:18 #377 [Verbose] > inl rec body fn s i i' =
00:00:18 #378 [Verbose] > match i |> s with
00:00:18 #379 [Verbose] > | None => None
00:00:18 #380 [Verbose] > | Some x =>
00:00:18 #381 [Verbose] > match x |> fn with
00:00:18 #382 [Verbose] > | Some x when n = i' => Some x
00:00:18 #383 [Verbose] > | Some _ => loop (i + 1) (i' + 1)
00:00:18 #384 [Verbose] > | _ => loop (i + 1) i'
00:00:18 #385 [Verbose] > and inl loop i i' =
00:00:18 #386 [Verbose] > if n |> var_is |> not
00:00:18 #387 [Verbose] > then body fn s i i'
00:00:18 #388 [Verbose] > else
00:00:18 #389 [Verbose] > inl fn = join fn
00:00:18 #390 [Verbose] > inl s = join s
00:00:18 #391 [Verbose] > join body fn s i i'
00:00:18 #392 [Verbose] > loop 0 0
00:00:18 #393 [Verbose] >
00:00:18 #394 [Verbose] > ╭─[ 239.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #395 [Verbose] > │ () │
00:00:18 #396 [Verbose] > │ │
00:00:18 #397 [Verbose] > │ │
00:00:18 #398 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #399 [Verbose] >
00:00:18 #400 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #401 [Verbose] > // // test
00:00:18 #402 [Verbose] >
00:00:18 #403 [Verbose] > listm.init 10i32 print_and_return
00:00:18 #404 [Verbose] > |> from_list
00:00:18 #405 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:18 #406 [Verbose] > |> try_item 1i32
00:00:18 #407 [Verbose] > |> _assert_eq (Some 2i32)
00:00:18 #408 [Verbose] >
00:00:18 #409 [Verbose] > ╭─[ 393.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #410 [Verbose] > │ type [<Struct>] US0 = │
00:00:18 #411 [Verbose] > │ | US0_0 │
00:00:18 #412 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:18 #413 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #414 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:18 #415 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #416 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:18 #417 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:18 #418 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:18 #419 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:18 #420 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:18 #421 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:18 #422 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:18 #423 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:18 #424 [Verbose] > │ let v0 : US0 = US0_1(2) │
00:00:18 #425 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:18 #426 [Verbose] > │ System.Console.WriteLine v1 │
00:00:18 #427 [Verbose] > │ let v5 : US0 = US0_1(2) │
00:00:18 #428 [Verbose] > │ let v6 : US0 = US0_1(2) │
00:00:18 #429 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:18 #430 [Verbose] > │ () │
00:00:18 #431 [Verbose] > │ method0() │
00:00:18 #432 [Verbose] > │ │
00:00:18 #433 [Verbose] > │ print_and_return / x: 0 │
00:00:18 #434 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #435 [Verbose] > │ print_and_return / x: 2 │
00:00:18 #436 [Verbose] > │ print_and_return / x: 3 │
00:00:18 #437 [Verbose] > │ print_and_return / x: 4 │
00:00:18 #438 [Verbose] > │ print_and_return / x: 5 │
00:00:18 #439 [Verbose] > │ print_and_return / x: 6 │
00:00:18 #440 [Verbose] > │ print_and_return / x: 7 │
00:00:18 #441 [Verbose] > │ print_and_return / x: 8 │
00:00:18 #442 [Verbose] > │ print_and_return / x: 9 │
00:00:18 #443 [Verbose] > │ US0_1 2 │
00:00:18 #444 [Verbose] > │ │
00:00:18 #445 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #446 [Verbose] >
00:00:18 #447 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #448 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #449 [Verbose] > │ ## indexed │
00:00:18 #450 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #451 [Verbose] >
00:00:18 #452 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #453 [Verbose] > inl indexed s =
00:00:18 #454 [Verbose] > s
00:00:18 #455 [Verbose] > |> mapi fun i x =>
00:00:18 #456 [Verbose] > i, x
00:00:19 #457 [Verbose] >
00:00:19 #458 [Verbose] > ╭─[ 324.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #459 [Verbose] > │ () │
00:00:19 #460 [Verbose] > │ │
00:00:19 #461 [Verbose] > │ │
00:00:19 #462 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #463 [Verbose] >
00:00:19 #464 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #465 [Verbose] > // // test
00:00:19 #466 [Verbose] >
00:00:19 #467 [Verbose] > listm.init 10i32 ((*) 2)
00:00:19 #468 [Verbose] > |> from_list
00:00:19 #469 [Verbose] > |> indexed
00:00:19 #470 [Verbose] > |> try_item 5i32
00:00:19 #471 [Verbose] > |> _assert_eq (Some (5i32, 10i32))
00:00:19 #472 [Verbose] >
00:00:19 #473 [Verbose] > ╭─[ 322.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #474 [Verbose] > │ type [<Struct>] US0 = │
00:00:19 #475 [Verbose] > │ | US0_0 │
00:00:19 #476 [Verbose] > │ | US0_1 of f1_0 : int32 * f1_1 : int32 │
00:00:19 #477 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #478 [Verbose] > │ let v0 : US0 = US0_1(5, 10) │
00:00:19 #479 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:19 #480 [Verbose] > │ System.Console.WriteLine v1 │
00:00:19 #481 [Verbose] > │ let v5 : US0 = US0_1(5, 10) │
00:00:19 #482 [Verbose] > │ let v6 : US0 = US0_1(5, 10) │
00:00:19 #483 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:19 #484 [Verbose] > │ () │
00:00:19 #485 [Verbose] > │ method0() │
00:00:19 #486 [Verbose] > │ │
00:00:19 #487 [Verbose] > │ US0_1 (5, 10) │
00:00:19 #488 [Verbose] > │ │
00:00:19 #489 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #490 [Verbose] >
00:00:19 #491 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #492 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #493 [Verbose] > │ ## zip │
00:00:19 #494 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #495 [Verbose] >
00:00:19 #496 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #497 [Verbose] > inl zip n seq1 seq2 =
00:00:19 #498 [Verbose] > seq1 n, seq2 n
00:00:19 #499 [Verbose] >
00:00:19 #500 [Verbose] > ╭─[ 267.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #501 [Verbose] > │ () │
00:00:19 #502 [Verbose] > │ │
00:00:19 #503 [Verbose] > │ │
00:00:19 #504 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #505 [Verbose] >
00:00:19 #506 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #507 [Verbose] > // // test
00:00:19 #508 [Verbose] >
00:00:19 #509 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:19 #510 [Verbose] > ||> zip 5i32
00:00:19 #511 [Verbose] > |> _assert_eq (Some 5, Some 10)
00:00:20 #512 [Verbose] >
00:00:20 #513 [Verbose] > ╭─[ 382.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #514 [Verbose] > │ type [<Struct>] US0 = │
00:00:20 #515 [Verbose] > │ | US0_0 │
00:00:20 #516 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:20 #517 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #518 [Verbose] > │ let v0 : US0 = US0_1(5) │
00:00:20 #519 [Verbose] > │ let v1 : US0 = US0_1(10) │
00:00:20 #520 [Verbose] > │ let v2 : string = $"%A{struct (v0, v1)}" │
00:00:20 #521 [Verbose] > │ System.Console.WriteLine v2 │
00:00:20 #522 [Verbose] > │ let v9 : US0 = US0_1(5) │
00:00:20 #523 [Verbose] > │ let v10 : US0 = US0_1(10) │
00:00:20 #524 [Verbose] > │ let v11 : US0 = US0_1(5) │
00:00:20 #525 [Verbose] > │ let v12 : US0 = US0_1(10) │
00:00:20 #526 [Verbose] > │ let v13 : string = $"__expect / actual: %A{struct (v9, v10)} / expected: │
00:00:20 #527 [Verbose] > │ %A{struct (v11, v12)}" │
00:00:20 #528 [Verbose] > │ () │
00:00:20 #529 [Verbose] > │ method0() │
00:00:20 #530 [Verbose] > │ │
00:00:20 #531 [Verbose] > │ struct (US0_1 5, US0_1 10) │
00:00:20 #532 [Verbose] > │ │
00:00:20 #533 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #534 [Verbose] >
00:00:20 #535 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #536 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #537 [Verbose] > │ ## zip_with │
00:00:20 #538 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #539 [Verbose] >
00:00:20 #540 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #541 [Verbose] > inl zip_with fn seq1 seq2 =
00:00:20 #542 [Verbose] > fun n =>
00:00:20 #543 [Verbose] > fn (seq1 n) (seq2 n)
00:00:20 #544 [Verbose] >
00:00:20 #545 [Verbose] > ╭─[ 268.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #546 [Verbose] > │ () │
00:00:20 #547 [Verbose] > │ │
00:00:20 #548 [Verbose] > │ │
00:00:20 #549 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #550 [Verbose] >
00:00:20 #551 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #552 [Verbose] > // // test
00:00:20 #553 [Verbose] >
00:00:20 #554 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:20 #555 [Verbose] > ||> zip_with (optionm'.choose (+))
00:00:20 #556 [Verbose] > |> try_item 2i32
00:00:20 #557 [Verbose] > |> _assert_eq (Some 6)
00:00:20 #558 [Verbose] >
00:00:20 #559 [Verbose] > ╭─[ 366.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #560 [Verbose] > │ type [<Struct>] US0 = │
00:00:20 #561 [Verbose] > │ | US0_0 │
00:00:20 #562 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:20 #563 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #564 [Verbose] > │ let v0 : US0 = US0_1(6) │
00:00:20 #565 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:20 #566 [Verbose] > │ System.Console.WriteLine v1 │
00:00:20 #567 [Verbose] > │ let v5 : US0 = US0_1(6) │
00:00:20 #568 [Verbose] > │ let v6 : US0 = US0_1(6) │
00:00:20 #569 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:20 #570 [Verbose] > │ () │
00:00:20 #571 [Verbose] > │ method0() │
00:00:20 #572 [Verbose] > │ │
00:00:20 #573 [Verbose] > │ US0_1 6 │
00:00:20 #574 [Verbose] > │ │
00:00:20 #575 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #576 [Verbose] >
00:00:20 #577 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #578 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #579 [Verbose] > │ ## fold │
00:00:20 #580 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #581 [Verbose] >
00:00:20 #582 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #583 [Verbose] > inl fold fn init seq =
00:00:20 #584 [Verbose] > inl rec loop acc n =
00:00:20 #585 [Verbose] > match seq n with
00:00:20 #586 [Verbose] > | Some x => loop (fn acc x) (n + 1)
00:00:20 #587 [Verbose] > | None => acc
00:00:20 #588 [Verbose] > loop init 0
00:00:20 #589 [Verbose] >
00:00:20 #590 [Verbose] > inl fold_ fn init seq =
00:00:20 #591 [Verbose] > let rec loop acc n =
00:00:20 #592 [Verbose] > match seq n with
00:00:20 #593 [Verbose] > | Some x => loop (fn acc x) (n + 1)
00:00:20 #594 [Verbose] > | None => acc
00:00:20 #595 [Verbose] > loop init 0
00:00:21 #596 [Verbose] >
00:00:21 #597 [Verbose] > ╭─[ 439.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #598 [Verbose] > │ () │
00:00:21 #599 [Verbose] > │ │
00:00:21 #600 [Verbose] > │ │
00:00:21 #601 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #602 [Verbose] >
00:00:21 #603 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #604 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #605 [Verbose] > │ ## sum │
00:00:21 #606 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #607 [Verbose] >
00:00:21 #608 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #609 [Verbose] > inl sum seq =
00:00:21 #610 [Verbose] > seq |> fold (+) 0
00:00:21 #611 [Verbose] >
00:00:21 #612 [Verbose] > inl sum_ seq =
00:00:21 #613 [Verbose] > seq |> fold_ (+) 0
00:00:21 #614 [Verbose] >
00:00:21 #615 [Verbose] > ╭─[ 258.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #616 [Verbose] > │ () │
00:00:21 #617 [Verbose] > │ │
00:00:21 #618 [Verbose] > │ │
00:00:21 #619 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #620 [Verbose] >
00:00:21 #621 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #622 [Verbose] > // // test
00:00:21 #623 [Verbose] >
00:00:21 #624 [Verbose] > listm.init 10i32 id
00:00:21 #625 [Verbose] > |> from_list
00:00:21 #626 [Verbose] > |> fun f (n : i32) => f n
00:00:21 #627 [Verbose] > |> sum
00:00:21 #628 [Verbose] > |> _assert_eq 45
00:00:21 #629 [Verbose] >
00:00:21 #630 [Verbose] > ╭─[ 343.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #631 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #632 [Verbose] > │ let v0 : string = $"%A{45}" │
00:00:21 #633 [Verbose] > │ System.Console.WriteLine v0 │
00:00:21 #634 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:21 #635 [Verbose] > │ () │
00:00:21 #636 [Verbose] > │ method0() │
00:00:21 #637 [Verbose] > │ │
00:00:21 #638 [Verbose] > │ 45 │
00:00:21 #639 [Verbose] > │ │
00:00:21 #640 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #641 [Verbose] >
00:00:21 #642 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #643 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #644 [Verbose] > │ ## to_list │
00:00:21 #645 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #646 [Verbose] >
00:00:21 #647 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #648 [Verbose] > inl to_list seq =
00:00:21 #649 [Verbose] > seq
00:00:21 #650 [Verbose] > |> fold (fun acc x => x :: acc) [[]]
00:00:21 #651 [Verbose] > |> listm.rev
00:00:21 #652 [Verbose] >
00:00:21 #653 [Verbose] > inl to_list_ seq =
00:00:21 #654 [Verbose] > seq
00:00:21 #655 [Verbose] > |> fold_ (fun acc x => x :: acc) [[]]
00:00:21 #656 [Verbose] > |> listm.rev
00:00:22 #657 [Verbose] >
00:00:22 #658 [Verbose] > ╭─[ 463.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #659 [Verbose] > │ () │
00:00:22 #660 [Verbose] > │ │
00:00:22 #661 [Verbose] > │ │
00:00:22 #662 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #663 [Verbose] >
00:00:22 #664 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #665 [Verbose] > // // test
00:00:22 #666 [Verbose] >
00:00:22 #667 [Verbose] > listm.init 10i32 id
00:00:22 #668 [Verbose] > |> from_list
00:00:22 #669 [Verbose] > |> fun f (n : i32) => f n
00:00:22 #670 [Verbose] > |> to_list
00:00:22 #671 [Verbose] > |> _assert_eq (listm.init 10i32 id)
00:00:22 #672 [Verbose] >
00:00:22 #673 [Verbose] > ╭─[ 591.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #674 [Verbose] > │ type UH0 = │
00:00:22 #675 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:22 #676 [Verbose] > │ | UH0_1 │
00:00:22 #677 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #678 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:22 #679 [Verbose] > │ let v1 : UH0 = UH0_0(9, v0) │
00:00:22 #680 [Verbose] > │ let v2 : UH0 = UH0_0(8, v1) │
00:00:22 #681 [Verbose] > │ let v3 : UH0 = UH0_0(7, v2) │
00:00:22 #682 [Verbose] > │ let v4 : UH0 = UH0_0(6, v3) │
00:00:22 #683 [Verbose] > │ let v5 : UH0 = UH0_0(5, v4) │
00:00:22 #684 [Verbose] > │ let v6 : UH0 = UH0_0(4, v5) │
00:00:22 #685 [Verbose] > │ let v7 : UH0 = UH0_0(3, v6) │
00:00:22 #686 [Verbose] > │ let v8 : UH0 = UH0_0(2, v7) │
00:00:22 #687 [Verbose] > │ let v9 : UH0 = UH0_0(1, v8) │
00:00:22 #688 [Verbose] > │ let v10 : UH0 = UH0_0(0, v9) │
00:00:22 #689 [Verbose] > │ let v11 : string = $"%A{v10}" │
00:00:22 #690 [Verbose] > │ System.Console.WriteLine v11 │
00:00:22 #691 [Verbose] > │ let v100 : UH0 = UH0_1 │
00:00:22 #692 [Verbose] > │ let v101 : UH0 = UH0_0(9, v100) │
00:00:22 #693 [Verbose] > │ let v102 : UH0 = UH0_0(8, v101) │
00:00:22 #694 [Verbose] > │ let v103 : UH0 = UH0_0(7, v102) │
00:00:22 #695 [Verbose] > │ let v104 : UH0 = UH0_0(6, v103) │
00:00:22 #696 [Verbose] > │ let v105 : UH0 = UH0_0(5, v104) │
00:00:22 #697 [Verbose] > │ let v106 : UH0 = UH0_0(4, v105) │
00:00:22 #698 [Verbose] > │ let v107 : UH0 = UH0_0(3, v106) │
00:00:22 #699 [Verbose] > │ let v108 : UH0 = UH0_0(2, v107) │
00:00:22 #700 [Verbose] > │ let v109 : UH0 = UH0_0(1, v108) │
00:00:22 #701 [Verbose] > │ let v110 : UH0 = UH0_0(0, v109) │
00:00:22 #702 [Verbose] > │ let v111 : UH0 = UH0_1 │
00:00:22 #703 [Verbose] > │ let v112 : UH0 = UH0_0(9, v111) │
00:00:22 #704 [Verbose] > │ let v113 : UH0 = UH0_0(8, v112) │
00:00:22 #705 [Verbose] > │ let v114 : UH0 = UH0_0(7, v113) │
00:00:22 #706 [Verbose] > │ let v115 : UH0 = UH0_0(6, v114) │
00:00:22 #707 [Verbose] > │ let v116 : UH0 = UH0_0(5, v115) │
00:00:22 #708 [Verbose] > │ let v117 : UH0 = UH0_0(4, v116) │
00:00:22 #709 [Verbose] > │ let v118 : UH0 = UH0_0(3, v117) │
00:00:22 #710 [Verbose] > │ let v119 : UH0 = UH0_0(2, v118) │
00:00:22 #711 [Verbose] > │ let v120 : UH0 = UH0_0(1, v119) │
00:00:22 #712 [Verbose] > │ let v121 : UH0 = UH0_0(0, v120) │
00:00:22 #713 [Verbose] > │ let v122 : string = $"__expect / actual: %A{v110} / expected: %A{v121}" │
00:00:22 #714 [Verbose] > │ () │
00:00:22 #715 [Verbose] > │ method0() │
00:00:22 #716 [Verbose] > │ │
00:00:22 #717 [Verbose] > │ UH0_0 │
00:00:22 #718 [Verbose] > │ (0, │
00:00:22 #719 [Verbose] > │ UH0_0 │
00:00:22 #720 [Verbose] > │ (1, │
00:00:22 #721 [Verbose] > │ UH0_0 │
00:00:22 #722 [Verbose] > │ (2, │
00:00:22 #723 [Verbose] > │ UH0_0 │
00:00:22 #724 [Verbose] > │ (3, │
00:00:22 #725 [Verbose] > │ UH0_0 │
00:00:22 #726 [Verbose] > │ (4, UH0_0 (5, UH0_0 (6, UH0_0 (7, UH0_0 (8, UH0_0 (9, │
00:00:22 #727 [Verbose] > │ UH0_1)))))))))) │
00:00:22 #728 [Verbose] > │ │
00:00:22 #729 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #730 [Verbose] >
00:00:22 #731 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #732 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #733 [Verbose] > │ ## from_array │
00:00:22 #734 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #735 [Verbose] >
00:00:22 #736 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #737 [Verbose] > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:00:22 #738 [Verbose] > fun n =>
00:00:22 #739 [Verbose] > if n >= length array
00:00:22 #740 [Verbose] > then None
00:00:22 #741 [Verbose] > else index array n |> Some
00:00:23 #742 [Verbose] >
00:00:23 #743 [Verbose] > ╭─[ 324.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #744 [Verbose] > │ () │
00:00:23 #745 [Verbose] > │ │
00:00:23 #746 [Verbose] > │ │
00:00:23 #747 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #748 [Verbose] >
00:00:23 #749 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #750 [Verbose] > // // test
00:00:23 #751 [Verbose] >
00:00:23 #752 [Verbose] > a ;[[ 1; 2; 3 ]]
00:00:23 #753 [Verbose] > |> from_array
00:00:23 #754 [Verbose] > |> try_item 1i32
00:00:23 #755 [Verbose] > |> _assert_eq (Some 2i32)
00:00:23 #756 [Verbose] >
00:00:23 #757 [Verbose] > ╭─[ 426.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #758 [Verbose] > │ type [<Struct>] US0 = │
00:00:23 #759 [Verbose] > │ | US0_0 │
00:00:23 #760 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:23 #761 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:00:23 #762 [Verbose] > │ v0 │
00:00:23 #763 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:23 #764 [Verbose] > │ v0 │
00:00:23 #765 [Verbose] > │ and method0 () : unit = │
00:00:23 #766 [Verbose] > │ let v0 : (int32 []) = [|1; 2; 3|] │
00:00:23 #767 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:00:23 #768 [Verbose] > │ let v2 : int32 = v1.Length │
00:00:23 #769 [Verbose] > │ let v3 : bool = 1 >= v2 │
00:00:23 #770 [Verbose] > │ let v7 : US0 = │
00:00:23 #771 [Verbose] > │ if v3 then │
00:00:23 #772 [Verbose] > │ US0_0 │
00:00:23 #773 [Verbose] > │ else │
00:00:23 #774 [Verbose] > │ let v5 : int32 = v1.[int 1] │
00:00:23 #775 [Verbose] > │ US0_1(v5) │
00:00:23 #776 [Verbose] > │ let v8 : string = $"%A{v7}" │
00:00:23 #777 [Verbose] > │ System.Console.WriteLine v8 │
00:00:23 #778 [Verbose] > │ let v12 : bool = │
00:00:23 #779 [Verbose] > │ match v7 with │
00:00:23 #780 [Verbose] > │ | US0_1(v10) -> (* Some *) │
00:00:23 #781 [Verbose] > │ let v11 : bool = v10 = 2 │
00:00:23 #782 [Verbose] > │ v11 │
00:00:23 #783 [Verbose] > │ | _ -> │
00:00:23 #784 [Verbose] > │ false │
00:00:23 #785 [Verbose] > │ let v14 : bool = │
00:00:23 #786 [Verbose] > │ if v12 then │
00:00:23 #787 [Verbose] > │ true │
00:00:23 #788 [Verbose] > │ else │
00:00:23 #789 [Verbose] > │ method2(v12) │
00:00:23 #790 [Verbose] > │ let v15 : US0 = US0_1(2) │
00:00:23 #791 [Verbose] > │ let v16 : string = $"__expect / actual: %A{v7} / expected: %A{v15}" │
00:00:23 #792 [Verbose] > │ let v17 : bool = v14 = false │
00:00:23 #793 [Verbose] > │ if v17 then │
00:00:23 #794 [Verbose] > │ failwith<unit> v16 │
00:00:23 #795 [Verbose] > │ method0() │
00:00:23 #796 [Verbose] > │ │
00:00:23 #797 [Verbose] > │ US0_1 2 │
00:00:23 #798 [Verbose] > │ │
00:00:23 #799 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #800 [Verbose] >
00:00:23 #801 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #802 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #803 [Verbose] > │ ## to_array │
00:00:23 #804 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #805 [Verbose] >
00:00:23 #806 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #807 [Verbose] > inl to_array seq =
00:00:23 #808 [Verbose] > inl ar = a ;[[]] |> mut
00:00:23 #809 [Verbose] > ((), seq)
00:00:23 #810 [Verbose] > ||> fold fun _ x =>
00:00:23 #811 [Verbose] > ar <- *ar /@ a ;[[x]]
00:00:23 #812 [Verbose] > *ar
00:00:23 #813 [Verbose] >
00:00:23 #814 [Verbose] > inl to_array_ seq =
00:00:23 #815 [Verbose] > inl ar = a ;[[]] |> mut
00:00:23 #816 [Verbose] > ((), seq)
00:00:23 #817 [Verbose] > ||> fold_ fun _ x =>
00:00:23 #818 [Verbose] > ar <- *ar /@ a ;[[x]]
00:00:23 #819 [Verbose] > *ar
00:00:24 #820 [Verbose] >
00:00:24 #821 [Verbose] > ╭─[ 335.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #822 [Verbose] > │ () │
00:00:24 #823 [Verbose] > │ │
00:00:24 #824 [Verbose] > │ │
00:00:24 #825 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #826 [Verbose] >
00:00:24 #827 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #828 [Verbose] > // // test
00:00:24 #829 [Verbose] >
00:00:24 #830 [Verbose] > listm.init 10i32 id
00:00:24 #831 [Verbose] > |> from_list
00:00:24 #832 [Verbose] > |> fun (x : i32 -> _) => x
00:00:24 #833 [Verbose] > |> to_array
00:00:24 #834 [Verbose] > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:00:24 #835 [Verbose] >
00:00:24 #836 [Verbose] > ╭─[ 641.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #837 [Verbose] > │ type Mut0 = {mutable l0 : (int32 [])} │
00:00:24 #838 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:24 #839 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:00:24 #840 [Verbose] > │ v0 │
00:00:24 #841 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:24 #842 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:24 #843 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:24 #844 [Verbose] > │ v3 │
00:00:24 #845 [Verbose] > │ and method3 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool = │
00:00:24 #846 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:24 #847 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:24 #848 [Verbose] > │ if v4 then │
00:00:24 #849 [Verbose] > │ let v5 : int32 = v0.[int v2] │
00:00:24 #850 [Verbose] > │ let v6 : int32 = v1.[int v2] │
00:00:24 #851 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:24 #852 [Verbose] > │ if v7 then │
00:00:24 #853 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:24 #854 [Verbose] > │ method3(v0, v1, v8) │
00:00:24 #855 [Verbose] > │ else │
00:00:24 #856 [Verbose] > │ false │
00:00:24 #857 [Verbose] > │ else │
00:00:24 #858 [Verbose] > │ true │
00:00:24 #859 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:24 #860 [Verbose] > │ v0 │
00:00:24 #861 [Verbose] > │ and method0 () : unit = │
00:00:24 #862 [Verbose] > │ let v0 : (int32 []) = [||] │
00:00:24 #863 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:00:24 #864 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:24 #865 [Verbose] > │ let v3 : (int32 []) = v2.l0 │
00:00:24 #866 [Verbose] > │ let v4 : (int32 []) = [|0|] │
00:00:24 #867 [Verbose] > │ let v5 : (int32 []) = method1(v4) │
00:00:24 #868 [Verbose] > │ let v6 : int32 = v3.Length │
00:00:24 #869 [Verbose] > │ let v7 : int32 = v5.Length │
00:00:24 #870 [Verbose] > │ let v8 : int32 = v6 + v7 │
00:00:24 #871 [Verbose] > │ let v9 : (int32 []) = Array.zeroCreate<int32> (v8) │
00:00:24 #872 [Verbose] > │ let v10 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #873 [Verbose] > │ while method2(v8, v10) do │
00:00:24 #874 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:24 #875 [Verbose] > │ let v13 : bool = v12 < v6 │
00:00:24 #876 [Verbose] > │ let v17 : int32 = │
00:00:24 #877 [Verbose] > │ if v13 then │
00:00:24 #878 [Verbose] > │ let v14 : int32 = v3.[int v12] │
00:00:24 #879 [Verbose] > │ v14 │
00:00:24 #880 [Verbose] > │ else │
00:00:24 #881 [Verbose] > │ let v15 : int32 = v12 - v6 │
00:00:24 #882 [Verbose] > │ let v16 : int32 = v5.[int v15] │
00:00:24 #883 [Verbose] > │ v16 │
00:00:24 #884 [Verbose] > │ v9.[int v12] <- v17 │
00:00:24 #885 [Verbose] > │ let v18 : int32 = v12 + 1 │
00:00:24 #886 [Verbose] > │ v10.l0 <- v18 │
00:00:24 #887 [Verbose] > │ () │
00:00:24 #888 [Verbose] > │ v2.l0 <- v9 │
00:00:24 #889 [Verbose] > │ let v19 : (int32 []) = v2.l0 │
00:00:24 #890 [Verbose] > │ let v20 : (int32 []) = [|1|] │
00:00:24 #891 [Verbose] > │ let v21 : (int32 []) = method1(v20) │
00:00:24 #892 [Verbose] > │ let v22 : int32 = v19.Length │
00:00:24 #893 [Verbose] > │ let v23 : int32 = v21.Length │
00:00:24 #894 [Verbose] > │ let v24 : int32 = v22 + v23 │
00:00:24 #895 [Verbose] > │ let v25 : (int32 []) = Array.zeroCreate<int32> (v24) │
00:00:24 #896 [Verbose] > │ let v26 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #897 [Verbose] > │ while method2(v24, v26) do │
00:00:24 #898 [Verbose] > │ let v28 : int32 = v26.l0 │
00:00:24 #899 [Verbose] > │ let v29 : bool = v28 < v22 │
00:00:24 #900 [Verbose] > │ let v33 : int32 = │
00:00:24 #901 [Verbose] > │ if v29 then │
00:00:24 #902 [Verbose] > │ let v30 : int32 = v19.[int v28] │
00:00:24 #903 [Verbose] > │ v30 │
00:00:24 #904 [Verbose] > │ else │
00:00:24 #905 [Verbose] > │ let v31 : int32 = v28 - v22 │
00:00:24 #906 [Verbose] > │ let v32 : int32 = v21.[int v31] │
00:00:24 #907 [Verbose] > │ v32 │
00:00:24 #908 [Verbose] > │ v25.[int v28] <- v33 │
00:00:24 #909 [Verbose] > │ let v34 : int32 = v28 + 1 │
00:00:24 #910 [Verbose] > │ v26.l0 <- v34 │
00:00:24 #911 [Verbose] > │ () │
00:00:24 #912 [Verbose] > │ v2.l0 <- v25 │
00:00:24 #913 [Verbose] > │ let v35 : (int32 []) = v2.l0 │
00:00:24 #914 [Verbose] > │ let v36 : (int32 []) = [|2|] │
00:00:24 #915 [Verbose] > │ let v37 : (int32 []) = method1(v36) │
00:00:24 #916 [Verbose] > │ let v38 : int32 = v35.Length │
00:00:24 #917 [Verbose] > │ let v39 : int32 = v37.Length │
00:00:24 #918 [Verbose] > │ let v40 : int32 = v38 + v39 │
00:00:24 #919 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (v40) │
00:00:24 #920 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #921 [Verbose] > │ while method2(v40, v42) do │
00:00:24 #922 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:24 #923 [Verbose] > │ let v45 : bool = v44 < v38 │
00:00:24 #924 [Verbose] > │ let v49 : int32 = │
00:00:24 #925 [Verbose] > │ if v45 then │
00:00:24 #926 [Verbose] > │ let v46 : int32 = v35.[int v44] │
00:00:24 #927 [Verbose] > │ v46 │
00:00:24 #928 [Verbose] > │ else │
00:00:24 #929 [Verbose] > │ let v47 : int32 = v44 - v38 │
00:00:24 #930 [Verbose] > │ let v48 : int32 = v37.[int v47] │
00:00:24 #931 [Verbose] > │ v48 │
00:00:24 #932 [Verbose] > │ v41.[int v44] <- v49 │
00:00:24 #933 [Verbose] > │ let v50 : int32 = v44 + 1 │
00:00:24 #934 [Verbose] > │ v42.l0 <- v50 │
00:00:24 #935 [Verbose] > │ () │
00:00:24 #936 [Verbose] > │ v2.l0 <- v41 │
00:00:24 #937 [Verbose] > │ let v51 : (int32 []) = v2.l0 │
00:00:24 #938 [Verbose] > │ let v52 : (int32 []) = [|3|] │
00:00:24 #939 [Verbose] > │ let v53 : (int32 []) = method1(v52) │
00:00:24 #940 [Verbose] > │ let v54 : int32 = v51.Length │
00:00:24 #941 [Verbose] > │ let v55 : int32 = v53.Length │
00:00:24 #942 [Verbose] > │ let v56 : int32 = v54 + v55 │
00:00:24 #943 [Verbose] > │ let v57 : (int32 []) = Array.zeroCreate<int32> (v56) │
00:00:24 #944 [Verbose] > │ let v58 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #945 [Verbose] > │ while method2(v56, v58) do │
00:00:24 #946 [Verbose] > │ let v60 : int32 = v58.l0 │
00:00:24 #947 [Verbose] > │ let v61 : bool = v60 < v54 │
00:00:24 #948 [Verbose] > │ let v65 : int32 = │
00:00:24 #949 [Verbose] > │ if v61 then │
00:00:24 #950 [Verbose] > │ let v62 : int32 = v51.[int v60] │
00:00:24 #951 [Verbose] > │ v62 │
00:00:24 #952 [Verbose] > │ else │
00:00:24 #953 [Verbose] > │ let v63 : int32 = v60 - v54 │
00:00:24 #954 [Verbose] > │ let v64 : int32 = v53.[int v63] │
00:00:24 #955 [Verbose] > │ v64 │
00:00:24 #956 [Verbose] > │ v57.[int v60] <- v65 │
00:00:24 #957 [Verbose] > │ let v66 : int32 = v60 + 1 │
00:00:24 #958 [Verbose] > │ v58.l0 <- v66 │
00:00:24 #959 [Verbose] > │ () │
00:00:24 #960 [Verbose] > │ v2.l0 <- v57 │
00:00:24 #961 [Verbose] > │ let v67 : (int32 []) = v2.l0 │
00:00:24 #962 [Verbose] > │ let v68 : (int32 []) = [|4|] │
00:00:24 #963 [Verbose] > │ let v69 : (int32 []) = method1(v68) │
00:00:24 #964 [Verbose] > │ let v70 : int32 = v67.Length │
00:00:24 #965 [Verbose] > │ let v71 : int32 = v69.Length │
00:00:24 #966 [Verbose] > │ let v72 : int32 = v70 + v71 │
00:00:24 #967 [Verbose] > │ let v73 : (int32 []) = Array.zeroCreate<int32> (v72) │
00:00:24 #968 [Verbose] > │ let v74 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #969 [Verbose] > │ while method2(v72, v74) do │
00:00:24 #970 [Verbose] > │ let v76 : int32 = v74.l0 │
00:00:24 #971 [Verbose] > │ let v77 : bool = v76 < v70 │
00:00:24 #972 [Verbose] > │ let v81 : int32 = │
00:00:24 #973 [Verbose] > │ if v77 then │
00:00:24 #974 [Verbose] > │ let v78 : int32 = v67.[int v76] │
00:00:24 #975 [Verbose] > │ v78 │
00:00:24 #976 [Verbose] > │ else │
00:00:24 #977 [Verbose] > │ let v79 : int32 = v76 - v70 │
00:00:24 #978 [Verbose] > │ let v80 : int32 = v69.[int v79] │
00:00:24 #979 [Verbose] > │ v80 │
00:00:24 #980 [Verbose] > │ v73.[int v76] <- v81 │
00:00:24 #981 [Verbose] > │ let v82 : int32 = v76 + 1 │
00:00:24 #982 [Verbose] > │ v74.l0 <- v82 │
00:00:24 #983 [Verbose] > │ () │
00:00:24 #984 [Verbose] > │ v2.l0 <- v73 │
00:00:24 #985 [Verbose] > │ let v83 : (int32 []) = v2.l0 │
00:00:24 #986 [Verbose] > │ let v84 : (int32 []) = [|5|] │
00:00:24 #987 [Verbose] > │ let v85 : (int32 []) = method1(v84) │
00:00:24 #988 [Verbose] > │ let v86 : int32 = v83.Length │
00:00:24 #989 [Verbose] > │ let v87 : int32 = v85.Length │
00:00:24 #990 [Verbose] > │ let v88 : int32 = v86 + v87 │
00:00:24 #991 [Verbose] > │ let v89 : (int32 []) = Array.zeroCreate<int32> (v88) │
00:00:24 #992 [Verbose] > │ let v90 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #993 [Verbose] > │ while method2(v88, v90) do │
00:00:24 #994 [Verbose] > │ let v92 : int32 = v90.l0 │
00:00:24 #995 [Verbose] > │ let v93 : bool = v92 < v86 │
00:00:24 #996 [Verbose] > │ let v97 : int32 = │
00:00:24 #997 [Verbose] > │ if v93 then │
00:00:24 #998 [Verbose] > │ let v94 : int32 = v83.[int v92] │
00:00:24 #999 [Verbose] > │ v94 │
00:00:24 #1000 [Verbose] > │ else │
00:00:24 #1001 [Verbose] > │ let v95 : int32 = v92 - v86 │
00:00:24 #1002 [Verbose] > │ let v96 : int32 = v85.[int v95] │
00:00:24 #1003 [Verbose] > │ v96 │
00:00:24 #1004 [Verbose] > │ v89.[int v92] <- v97 │
00:00:24 #1005 [Verbose] > │ let v98 : int32 = v92 + 1 │
00:00:24 #1006 [Verbose] > │ v90.l0 <- v98 │
00:00:24 #1007 [Verbose] > │ () │
00:00:24 #1008 [Verbose] > │ v2.l0 <- v89 │
00:00:24 #1009 [Verbose] > │ let v99 : (int32 []) = v2.l0 │
00:00:24 #1010 [Verbose] > │ let v100 : (int32 []) = [|6|] │
00:00:24 #1011 [Verbose] > │ let v101 : (int32 []) = method1(v100) │
00:00:24 #1012 [Verbose] > │ let v102 : int32 = v99.Length │
00:00:24 #1013 [Verbose] > │ let v103 : int32 = v101.Length │
00:00:24 #1014 [Verbose] > │ let v104 : int32 = v102 + v103 │
00:00:24 #1015 [Verbose] > │ let v105 : (int32 []) = Array.zeroCreate<int32> (v104) │
00:00:24 #1016 [Verbose] > │ let v106 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #1017 [Verbose] > │ while method2(v104, v106) do │
00:00:24 #1018 [Verbose] > │ let v108 : int32 = v106.l0 │
00:00:24 #1019 [Verbose] > │ let v109 : bool = v108 < v102 │
00:00:24 #1020 [Verbose] > │ let v113 : int32 = │
00:00:24 #1021 [Verbose] > │ if v109 then │
00:00:24 #1022 [Verbose] > │ let v110 : int32 = v99.[int v108] │
00:00:24 #1023 [Verbose] > │ v110 │
00:00:24 #1024 [Verbose] > │ else │
00:00:24 #1025 [Verbose] > │ let v111 : int32 = v108 - v102 │
00:00:24 #1026 [Verbose] > │ let v112 : int32 = v101.[int v111] │
00:00:24 #1027 [Verbose] > │ v112 │
00:00:24 #1028 [Verbose] > │ v105.[int v108] <- v113 │
00:00:24 #1029 [Verbose] > │ let v114 : int32 = v108 + 1 │
00:00:24 #1030 [Verbose] > │ v106.l0 <- v114 │
00:00:24 #1031 [Verbose] > │ () │
00:00:24 #1032 [Verbose] > │ v2.l0 <- v105 │
00:00:24 #1033 [Verbose] > │ let v115 : (int32 []) = v2.l0 │
00:00:24 #1034 [Verbose] > │ let v116 : (int32 []) = [|7|] │
00:00:24 #1035 [Verbose] > │ let v117 : (int32 []) = method1(v116) │
00:00:24 #1036 [Verbose] > │ let v118 : int32 = v115.Length │
00:00:24 #1037 [Verbose] > │ let v119 : int32 = v117.Length │
00:00:24 #1038 [Verbose] > │ let v120 : int32 = v118 + v119 │
00:00:24 #1039 [Verbose] > │ let v121 : (int32 []) = Array.zeroCreate<int32> (v120) │
00:00:24 #1040 [Verbose] > │ let v122 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #1041 [Verbose] > │ while method2(v120, v122) do │
00:00:24 #1042 [Verbose] > │ let v124 : int32 = v122.l0 │
00:00:24 #1043 [Verbose] > │ let v125 : bool = v124 < v118 │
00:00:24 #1044 [Verbose] > │ let v129 : int32 = │
00:00:24 #1045 [Verbose] > │ if v125 then │
00:00:24 #1046 [Verbose] > │ let v126 : int32 = v115.[int v124] │
00:00:24 #1047 [Verbose] > │ v126 │
00:00:24 #1048 [Verbose] > │ else │
00:00:24 #1049 [Verbose] > │ let v127 : int32 = v124 - v118 │
00:00:24 #1050 [Verbose] > │ let v128 : int32 = v117.[int v127] │
00:00:24 #1051 [Verbose] > │ v128 │
00:00:24 #1052 [Verbose] > │ v121.[int v124] <- v129 │
00:00:24 #1053 [Verbose] > │ let v130 : int32 = v124 + 1 │
00:00:24 #1054 [Verbose] > │ v122.l0 <- v130 │
00:00:24 #1055 [Verbose] > │ () │
00:00:24 #1056 [Verbose] > │ v2.l0 <- v121 │
00:00:24 #1057 [Verbose] > │ let v131 : (int32 []) = v2.l0 │
00:00:24 #1058 [Verbose] > │ let v132 : (int32 []) = [|8|] │
00:00:24 #1059 [Verbose] > │ let v133 : (int32 []) = method1(v132) │
00:00:24 #1060 [Verbose] > │ let v134 : int32 = v131.Length │
00:00:24 #1061 [Verbose] > │ let v135 : int32 = v133.Length │
00:00:24 #1062 [Verbose] > │ let v136 : int32 = v134 + v135 │
00:00:24 #1063 [Verbose] > │ let v137 : (int32 []) = Array.zeroCreate<int32> (v136) │
00:00:24 #1064 [Verbose] > │ let v138 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #1065 [Verbose] > │ while method2(v136, v138) do │
00:00:24 #1066 [Verbose] > │ let v140 : int32 = v138.l0 │
00:00:24 #1067 [Verbose] > │ let v141 : bool = v140 < v134 │
00:00:24 #1068 [Verbose] > │ let v145 : int32 = │
00:00:24 #1069 [Verbose] > │ if v141 then │
00:00:24 #1070 [Verbose] > │ let v142 : int32 = v131.[int v140] │
00:00:24 #1071 [Verbose] > │ v142 │
00:00:24 #1072 [Verbose] > │ else │
00:00:24 #1073 [Verbose] > │ let v143 : int32 = v140 - v134 │
00:00:24 #1074 [Verbose] > │ let v144 : int32 = v133.[int v143] │
00:00:24 #1075 [Verbose] > │ v144 │
00:00:24 #1076 [Verbose] > │ v137.[int v140] <- v145 │
00:00:24 #1077 [Verbose] > │ let v146 : int32 = v140 + 1 │
00:00:24 #1078 [Verbose] > │ v138.l0 <- v146 │
00:00:24 #1079 [Verbose] > │ () │
00:00:24 #1080 [Verbose] > │ v2.l0 <- v137 │
00:00:24 #1081 [Verbose] > │ let v147 : (int32 []) = v2.l0 │
00:00:24 #1082 [Verbose] > │ let v148 : (int32 []) = [|9|] │
00:00:24 #1083 [Verbose] > │ let v149 : (int32 []) = method1(v148) │
00:00:24 #1084 [Verbose] > │ let v150 : int32 = v147.Length │
00:00:24 #1085 [Verbose] > │ let v151 : int32 = v149.Length │
00:00:24 #1086 [Verbose] > │ let v152 : int32 = v150 + v151 │
00:00:24 #1087 [Verbose] > │ let v153 : (int32 []) = Array.zeroCreate<int32> (v152) │
00:00:24 #1088 [Verbose] > │ let v154 : Mut1 = {l0 = 0} : Mut1 │
00:00:24 #1089 [Verbose] > │ while method2(v152, v154) do │
00:00:24 #1090 [Verbose] > │ let v156 : int32 = v154.l0 │
00:00:24 #1091 [Verbose] > │ let v157 : bool = v156 < v150 │
00:00:24 #1092 [Verbose] > │ let v161 : int32 = │
00:00:24 #1093 [Verbose] > │ if v157 then │
00:00:24 #1094 [Verbose] > │ let v158 : int32 = v147.[int v156] │
00:00:24 #1095 [Verbose] > │ v158 │
00:00:24 #1096 [Verbose] > │ else │
00:00:24 #1097 [Verbose] > │ let v159 : int32 = v156 - v150 │
00:00:24 #1098 [Verbose] > │ let v160 : int32 = v149.[int v159] │
00:00:24 #1099 [Verbose] > │ v160 │
00:00:24 #1100 [Verbose] > │ v153.[int v156] <- v161 │
00:00:24 #1101 [Verbose] > │ let v162 : int32 = v156 + 1 │
00:00:24 #1102 [Verbose] > │ v154.l0 <- v162 │
00:00:24 #1103 [Verbose] > │ () │
00:00:24 #1104 [Verbose] > │ v2.l0 <- v153 │
00:00:24 #1105 [Verbose] > │ let v163 : (int32 []) = v2.l0 │
00:00:24 #1106 [Verbose] > │ let v164 : (int32 []) = [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] │
00:00:24 #1107 [Verbose] > │ let v165 : (int32 []) = method1(v164) │
00:00:24 #1108 [Verbose] > │ let v166 : string = $"%A{v163}" │
00:00:24 #1109 [Verbose] > │ System.Console.WriteLine v166 │
00:00:24 #1110 [Verbose] > │ let v167 : int32 = v163.Length │
00:00:24 #1111 [Verbose] > │ let v168 : int32 = v165.Length │
00:00:24 #1112 [Verbose] > │ let v169 : bool = v167 = v168 │
00:00:24 #1113 [Verbose] > │ let v170 : bool = v169 <> true │
00:00:24 #1114 [Verbose] > │ let v173 : bool = │
00:00:24 #1115 [Verbose] > │ if v170 then │
00:00:24 #1116 [Verbose] > │ false │
00:00:24 #1117 [Verbose] > │ else │
00:00:24 #1118 [Verbose] > │ let v171 : int32 = 0 │
00:00:24 #1119 [Verbose] > │ method3(v163, v165, v171) │
00:00:24 #1120 [Verbose] > │ let v175 : bool = │
00:00:24 #1121 [Verbose] > │ if v173 then │
00:00:24 #1122 [Verbose] > │ true │
00:00:24 #1123 [Verbose] > │ else │
00:00:24 #1124 [Verbose] > │ method4(v173) │
00:00:24 #1125 [Verbose] > │ let v176 : string = $"__expect / actual: %A{v163} / expected: %A{v165}" │
00:00:24 #1126 [Verbose] > │ let v177 : bool = v175 = false │
00:00:24 #1127 [Verbose] > │ if v177 then │
00:00:24 #1128 [Verbose] > │ failwith<unit> v176 │
00:00:24 #1129 [Verbose] > │ method0() │
00:00:24 #1130 [Verbose] > │ │
00:00:24 #1131 [Verbose] > │ [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] │
00:00:24 #1132 [Verbose] > │ │
00:00:24 #1133 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1134 [Verbose] >
00:00:24 #1135 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #1136 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #1137 [Verbose] > │ ## take_while │
00:00:24 #1138 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1139 [Verbose] >
00:00:24 #1140 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #1141 [Verbose] > inl take_while cond seq =
00:00:24 #1142 [Verbose] > inl rec loop acc i =
00:00:24 #1143 [Verbose] > match seq i with
00:00:24 #1144 [Verbose] > | Some st when cond st i => loop (st :: acc) (i + 1)
00:00:24 #1145 [Verbose] > | _ => acc |> listm.rev
00:00:24 #1146 [Verbose] > loop [[]] 0
00:00:25 #1147 [Verbose] >
00:00:25 #1148 [Verbose] > ╭─[ 297.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #1149 [Verbose] > │ () │
00:00:25 #1150 [Verbose] > │ │
00:00:25 #1151 [Verbose] > │ │
00:00:25 #1152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1153 [Verbose] >
00:00:25 #1154 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #1155 [Verbose] > // // test
00:00:25 #1156 [Verbose] >
00:00:25 #1157 [Verbose] > listm.init 10i32 id
00:00:25 #1158 [Verbose] > |> from_list
00:00:25 #1159 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:25 #1160 [Verbose] > |> listm'.sum
00:00:25 #1161 [Verbose] > |> _assert_eq 10
00:00:25 #1162 [Verbose] >
00:00:25 #1163 [Verbose] > ╭─[ 292.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #1164 [Verbose] > │ let rec method0 () : unit = │
00:00:25 #1165 [Verbose] > │ let v0 : string = $"%A{10}" │
00:00:25 #1166 [Verbose] > │ System.Console.WriteLine v0 │
00:00:25 #1167 [Verbose] > │ let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:25 #1168 [Verbose] > │ () │
00:00:25 #1169 [Verbose] > │ method0() │
00:00:25 #1170 [Verbose] > │ │
00:00:25 #1171 [Verbose] > │ 10 │
00:00:25 #1172 [Verbose] > │ │
00:00:25 #1173 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1174 [Verbose] >
00:00:25 #1175 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #1176 [Verbose] > // // test
00:00:25 #1177 [Verbose] >
00:00:25 #1178 [Verbose] > stream.new_finite_stream print_and_return 10i32
00:00:25 #1179 [Verbose] > |> flip stream.try_item
00:00:25 #1180 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:25 #1181 [Verbose] > |> listm'.sum
00:00:25 #1182 [Verbose] > |> _assert_eq 10
00:00:25 #1183 [Verbose] >
00:00:25 #1184 [Verbose] > ╭─[ 300.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #1185 [Verbose] > │ let rec method0 () : unit = │
00:00:25 #1186 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:25 #1187 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:25 #1188 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:25 #1189 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:25 #1190 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:25 #1191 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:25 #1192 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:25 #1193 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:25 #1194 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:25 #1195 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:25 #1196 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:25 #1197 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:25 #1198 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:25 #1199 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:25 #1200 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:25 #1201 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:25 #1202 [Verbose] > │ let v0 : string = $"%A{10}" │
00:00:25 #1203 [Verbose] > │ System.Console.WriteLine v0 │
00:00:25 #1204 [Verbose] > │ let v1 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:25 #1205 [Verbose] > │ () │
00:00:25 #1206 [Verbose] > │ method0() │
00:00:25 #1207 [Verbose] > │ │
00:00:25 #1208 [Verbose] > │ print_and_return / x: 0 │
00:00:25 #1209 [Verbose] > │ print_and_return / x: 1 │
00:00:25 #1210 [Verbose] > │ print_and_return / x: 1 │
00:00:25 #1211 [Verbose] > │ print_and_return / x: 2 │
00:00:25 #1212 [Verbose] > │ print_and_return / x: 1 │
00:00:25 #1213 [Verbose] > │ print_and_return / x: 2 │
00:00:25 #1214 [Verbose] > │ print_and_return / x: 3 │
00:00:25 #1215 [Verbose] > │ print_and_return / x: 1 │
00:00:25 #1216 [Verbose] > │ print_and_return / x: 2 │
00:00:25 #1217 [Verbose] > │ print_and_return / x: 3 │
00:00:25 #1218 [Verbose] > │ print_and_return / x: 4 │
00:00:25 #1219 [Verbose] > │ print_and_return / x: 1 │
00:00:25 #1220 [Verbose] > │ print_and_return / x: 2 │
00:00:25 #1221 [Verbose] > │ print_and_return / x: 3 │
00:00:25 #1222 [Verbose] > │ print_and_return / x: 4 │
00:00:25 #1223 [Verbose] > │ print_and_return / x: 5 │
00:00:25 #1224 [Verbose] > │ 10 │
00:00:25 #1225 [Verbose] > │ │
00:00:25 #1226 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1227 [Verbose] >
00:00:25 #1228 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 #1229 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 #1230 [Verbose] > │ ## take_while_ │
00:00:25 #1231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1232 [Verbose] >
00:00:25 #1233 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #1234 [Verbose] > inl take_while_ cond seq =
00:00:25 #1235 [Verbose] > let rec loop acc i =
00:00:25 #1236 [Verbose] > match seq i with
00:00:25 #1237 [Verbose] > | Some st when cond st i => loop (st :: acc) (i + 1)
00:00:25 #1238 [Verbose] > | _ => acc |> listm.rev
00:00:25 #1239 [Verbose] > loop [[]] 0
00:00:26 #1240 [Verbose] >
00:00:26 #1241 [Verbose] > ╭─[ 270.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #1242 [Verbose] > │ () │
00:00:26 #1243 [Verbose] > │ │
00:00:26 #1244 [Verbose] > │ │
00:00:26 #1245 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1246 [Verbose] >
00:00:26 #1247 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #1248 [Verbose] > // // test
00:00:26 #1249 [Verbose] >
00:00:26 #1250 [Verbose] > stream.new_infinite_stream_ print_and_return
00:00:26 #1251 [Verbose] > |> flip stream.try_item
00:00:26 #1252 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:00:26 #1253 [Verbose] > |> listm'.sum
00:00:26 #1254 [Verbose] > |> _assert_eq 10
00:00:26 #1255 [Verbose] >
00:00:26 #1256 [Verbose] > ╭─[ 584.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #1257 [Verbose] > │ type UH0 = │
00:00:26 #1258 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:26 #1259 [Verbose] > │ | UH0_1 │
00:00:26 #1260 [Verbose] > │ and UH1 = │
00:00:26 #1261 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:26 #1262 [Verbose] > │ | UH1_1 │
00:00:26 #1263 [Verbose] > │ and [<Struct>] US0 = │
00:00:26 #1264 [Verbose] > │ | US0_0 │
00:00:26 #1265 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:26 #1266 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:26 #1267 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:26 #1268 [Verbose] > │ method1(v1) │
00:00:26 #1269 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:26 #1270 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:26 #1271 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:26 #1272 [Verbose] > │ UH0_0(v0, v1) │
00:00:26 #1273 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US0 = │
00:00:26 #1274 [Verbose] > │ match v1 with │
00:00:26 #1275 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:26 #1276 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:26 #1277 [Verbose] > │ if v4 then │
00:00:26 #1278 [Verbose] > │ US0_1(v2) │
00:00:26 #1279 [Verbose] > │ else │
00:00:26 #1280 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:26 #1281 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:26 #1282 [Verbose] > │ method3(v6, v7) │
00:00:26 #1283 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:26 #1284 [Verbose] > │ US0_0 │
00:00:26 #1285 [Verbose] > │ and method4 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:26 #1286 [Verbose] > │ match v0 with │
00:00:26 #1287 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:26 #1288 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:26 #1289 [Verbose] > │ method4(v3, v4) │
00:00:26 #1290 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:26 #1291 [Verbose] > │ v1 │
00:00:26 #1292 [Verbose] > │ and method2 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:26 #1293 [Verbose] > │ let v3 : US0 = method3(v2, v0) │
00:00:26 #1294 [Verbose] > │ match v3 with │
00:00:26 #1295 [Verbose] > │ | US0_1(v4) -> (* Some *) │
00:00:26 #1296 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:26 #1297 [Verbose] > │ if v5 then │
00:00:26 #1298 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:26 #1299 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:26 #1300 [Verbose] > │ method2(v0, v6, v7) │
00:00:26 #1301 [Verbose] > │ else │
00:00:26 #1302 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:26 #1303 [Verbose] > │ method4(v1, v9) │
00:00:26 #1304 [Verbose] > │ | _ -> │
00:00:26 #1305 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:26 #1306 [Verbose] > │ method4(v1, v12) │
00:00:26 #1307 [Verbose] > │ and method5 (v0 : UH1, v1 : int32) : int32 = │
00:00:26 #1308 [Verbose] > │ match v0 with │
00:00:26 #1309 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:26 #1310 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:26 #1311 [Verbose] > │ method5(v3, v4) │
00:00:26 #1312 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:26 #1313 [Verbose] > │ v1 │
00:00:26 #1314 [Verbose] > │ and method6 (v0 : bool) : bool = │
00:00:26 #1315 [Verbose] > │ v0 │
00:00:26 #1316 [Verbose] > │ and method0 () : unit = │
00:00:26 #1317 [Verbose] > │ let v0 : int32 = 0 │
00:00:26 #1318 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:26 #1319 [Verbose] > │ let v2 : UH1 = UH1_1 │
00:00:26 #1320 [Verbose] > │ let v3 : int32 = 0 │
00:00:26 #1321 [Verbose] > │ let v4 : UH1 = method2(v1, v2, v3) │
00:00:26 #1322 [Verbose] > │ let v5 : int32 = 0 │
00:00:26 #1323 [Verbose] > │ let v6 : int32 = method5(v4, v5) │
00:00:26 #1324 [Verbose] > │ let v7 : string = $"%A{v6}" │
00:00:26 #1325 [Verbose] > │ System.Console.WriteLine v7 │
00:00:26 #1326 [Verbose] > │ let v8 : bool = v6 = 10 │
00:00:26 #1327 [Verbose] > │ let v10 : bool = │
00:00:26 #1328 [Verbose] > │ if v8 then │
00:00:26 #1329 [Verbose] > │ true │
00:00:26 #1330 [Verbose] > │ else │
00:00:26 #1331 [Verbose] > │ method6(v8) │
00:00:26 #1332 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v6} / expected: %A{10}" │
00:00:26 #1333 [Verbose] > │ let v12 : bool = v10 = false │
00:00:26 #1334 [Verbose] > │ if v12 then │
00:00:26 #1335 [Verbose] > │ failwith<unit> v11 │
00:00:26 #1336 [Verbose] > │ method0() │
00:00:26 #1337 [Verbose] > │ │
00:00:26 #1338 [Verbose] > │ print_and_return / x: 0 │
00:00:26 #1339 [Verbose] > │ print_and_return / x: 1 │
00:00:26 #1340 [Verbose] > │ print_and_return / x: 1 │
00:00:26 #1341 [Verbose] > │ print_and_return / x: 2 │
00:00:26 #1342 [Verbose] > │ print_and_return / x: 1 │
00:00:26 #1343 [Verbose] > │ print_and_return / x: 2 │
00:00:26 #1344 [Verbose] > │ print_and_return / x: 3 │
00:00:26 #1345 [Verbose] > │ print_and_return / x: 1 │
00:00:26 #1346 [Verbose] > │ print_and_return / x: 2 │
00:00:26 #1347 [Verbose] > │ print_and_return / x: 3 │
00:00:26 #1348 [Verbose] > │ print_and_return / x: 4 │
00:00:26 #1349 [Verbose] > │ print_and_return / x: 1 │
00:00:26 #1350 [Verbose] > │ print_and_return / x: 2 │
00:00:26 #1351 [Verbose] > │ print_and_return / x: 3 │
00:00:26 #1352 [Verbose] > │ print_and_return / x: 4 │
00:00:26 #1353 [Verbose] > │ print_and_return / x: 5 │
00:00:26 #1354 [Verbose] > │ 10 │
00:00:26 #1355 [Verbose] > │ │
00:00:26 #1356 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1357 [Verbose] >
00:00:26 #1358 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #1359 [Verbose] > // // test
00:00:26 #1360 [Verbose] >
00:00:26 #1361 [Verbose] > stream.new_infinite_stream_ print_and_return
00:00:26 #1362 [Verbose] > |> stream.memoize
00:00:26 #1363 [Verbose] > |> fun list =>
00:00:26 #1364 [Verbose] > inl list = list ()
00:00:26 #1365 [Verbose] > fun n =>
00:00:26 #1366 [Verbose] > list |> stream.try_item n
00:00:26 #1367 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:00:26 #1368 [Verbose] > |> listm'.sum
00:00:26 #1369 [Verbose] > |> _assert_eq 10
00:00:27 #1370 [Verbose] >
00:00:27 #1371 [Verbose] > ╭─[ 410.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #1372 [Verbose] > │ type UH0 = │
00:00:27 #1373 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:27 #1374 [Verbose] > │ | UH0_1 │
00:00:27 #1375 [Verbose] > │ and [<Struct>] US0 = │
00:00:27 #1376 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:27 #1377 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:27 #1378 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:27 #1379 [Verbose] > │ and UH1 = │
00:00:27 #1380 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:27 #1381 [Verbose] > │ | UH1_1 │
00:00:27 #1382 [Verbose] > │ and [<Struct>] US1 = │
00:00:27 #1383 [Verbose] > │ | US1_0 │
00:00:27 #1384 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:27 #1385 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:27 #1386 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:27 #1387 [Verbose] > │ method1(v1) │
00:00:27 #1388 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:27 #1389 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:27 #1390 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:27 #1391 [Verbose] > │ UH0_0(v0, v1) │
00:00:27 #1392 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 = │
00:00:27 #1393 [Verbose] > │ v0 │
00:00:27 #1394 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:27 #1395 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:27 #1396 [Verbose] > │ match v2 with │
00:00:27 #1397 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:27 #1398 [Verbose] > │ v3 │
00:00:27 #1399 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:27 #1400 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:27 #1401 [Verbose] > │ let v12 : UH0 = │
00:00:27 #1402 [Verbose] > │ match v5 with │
00:00:27 #1403 [Verbose] > │ | UH0_0(v7, v8) -> (* StreamCons *) │
00:00:27 #1404 [Verbose] > │ let v9 : (unit -> UH0) = method2(v0, v8) │
00:00:27 #1405 [Verbose] > │ UH0_0(v7, v9) │
00:00:27 #1406 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:27 #1407 [Verbose] > │ UH0_1 │
00:00:27 #1408 [Verbose] > │ let v13 : US0 = US0_0(v12) │
00:00:27 #1409 [Verbose] > │ v1.l0 <- v13 │
00:00:27 #1410 [Verbose] > │ v12 │
00:00:27 #1411 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:27 #1412 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:27 #1413 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:27 #1414 [Verbose] > │ closure2(v0, v3) │
00:00:27 #1415 [Verbose] > │ and method4 (v0 : int32, v1 : UH0) : US1 = │
00:00:27 #1416 [Verbose] > │ match v1 with │
00:00:27 #1417 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:27 #1418 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:27 #1419 [Verbose] > │ if v4 then │
00:00:27 #1420 [Verbose] > │ US1_1(v2) │
00:00:27 #1421 [Verbose] > │ else │
00:00:27 #1422 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:27 #1423 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:27 #1424 [Verbose] > │ method4(v6, v7) │
00:00:27 #1425 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:27 #1426 [Verbose] > │ US1_0 │
00:00:27 #1427 [Verbose] > │ and method5 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:27 #1428 [Verbose] > │ match v0 with │
00:00:27 #1429 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:27 #1430 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:27 #1431 [Verbose] > │ method5(v3, v4) │
00:00:27 #1432 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:27 #1433 [Verbose] > │ v1 │
00:00:27 #1434 [Verbose] > │ and method3 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:27 #1435 [Verbose] > │ let v3 : US1 = method4(v2, v0) │
00:00:27 #1436 [Verbose] > │ match v3 with │
00:00:27 #1437 [Verbose] > │ | US1_1(v4) -> (* Some *) │
00:00:27 #1438 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:27 #1439 [Verbose] > │ if v5 then │
00:00:27 #1440 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:27 #1441 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:27 #1442 [Verbose] > │ method3(v0, v6, v7) │
00:00:27 #1443 [Verbose] > │ else │
00:00:27 #1444 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:27 #1445 [Verbose] > │ method5(v1, v9) │
00:00:27 #1446 [Verbose] > │ | _ -> │
00:00:27 #1447 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:27 #1448 [Verbose] > │ method5(v1, v12) │
00:00:27 #1449 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 = │
00:00:27 #1450 [Verbose] > │ match v0 with │
00:00:27 #1451 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:27 #1452 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:27 #1453 [Verbose] > │ method6(v3, v4) │
00:00:27 #1454 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:27 #1455 [Verbose] > │ v1 │
00:00:27 #1456 [Verbose] > │ and method7 (v0 : bool) : bool = │
00:00:27 #1457 [Verbose] > │ v0 │
00:00:27 #1458 [Verbose] > │ and method0 () : unit = │
00:00:27 #1459 [Verbose] > │ let v0 : int32 = 0 │
00:00:27 #1460 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:27 #1461 [Verbose] > │ let v2 : (unit -> UH0) = closure1(v1) │
00:00:27 #1462 [Verbose] > │ let v3 : (unit -> UH0) = method2(v1, v2) │
00:00:27 #1463 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:27 #1464 [Verbose] > │ let v5 : UH1 = UH1_1 │
00:00:27 #1465 [Verbose] > │ let v6 : int32 = 0 │
00:00:27 #1466 [Verbose] > │ let v7 : UH1 = method3(v4, v5, v6) │
00:00:27 #1467 [Verbose] > │ let v8 : int32 = 0 │
00:00:27 #1468 [Verbose] > │ let v9 : int32 = method6(v7, v8) │
00:00:27 #1469 [Verbose] > │ let v10 : string = $"%A{v9}" │
00:00:27 #1470 [Verbose] > │ System.Console.WriteLine v10 │
00:00:27 #1471 [Verbose] > │ let v11 : bool = v9 = 10 │
00:00:27 #1472 [Verbose] > │ let v13 : bool = │
00:00:27 #1473 [Verbose] > │ if v11 then │
00:00:27 #1474 [Verbose] > │ true │
00:00:27 #1475 [Verbose] > │ else │
00:00:27 #1476 [Verbose] > │ method7(v11) │
00:00:27 #1477 [Verbose] > │ let v14 : string = $"__expect / actual: %A{v9} / expected: %A{10}" │
00:00:27 #1478 [Verbose] > │ let v15 : bool = v13 = false │
00:00:27 #1479 [Verbose] > │ if v15 then │
00:00:27 #1480 [Verbose] > │ failwith<unit> v14 │
00:00:27 #1481 [Verbose] > │ method0() │
00:00:27 #1482 [Verbose] > │ │
00:00:27 #1483 [Verbose] > │ print_and_return / x: 0 │
00:00:27 #1484 [Verbose] > │ print_and_return / x: 1 │
00:00:27 #1485 [Verbose] > │ print_and_return / x: 2 │
00:00:27 #1486 [Verbose] > │ print_and_return / x: 3 │
00:00:27 #1487 [Verbose] > │ print_and_return / x: 4 │
00:00:27 #1488 [Verbose] > │ print_and_return / x: 5 │
00:00:27 #1489 [Verbose] > │ 10 │
00:00:27 #1490 [Verbose] > │ │
00:00:27 #1491 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1492 [Verbose] >
00:00:27 #1493 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #1494 [Verbose] > // // test
00:00:27 #1495 [Verbose] >
00:00:27 #1496 [Verbose] > stream.new_finite_stream print_and_return 10i32
00:00:27 #1497 [Verbose] > |> stream.memoize
00:00:27 #1498 [Verbose] > |> fun list =>
00:00:27 #1499 [Verbose] > inl list = list ()
00:00:27 #1500 [Verbose] > fun n =>
00:00:27 #1501 [Verbose] > list |> stream.try_item n
00:00:27 #1502 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)
00:00:27 #1503 [Verbose] > |> listm'.sum
00:00:27 #1504 [Verbose] > |> _assert_eq 10
00:00:27 #1505 [Verbose] >
00:00:27 #1506 [Verbose] > ╭─[ 612.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #1507 [Verbose] > │ type UH0 = │
00:00:27 #1508 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:27 #1509 [Verbose] > │ | UH0_1 │
00:00:27 #1510 [Verbose] > │ and [<Struct>] US0 = │
00:00:27 #1511 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:27 #1512 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:27 #1513 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:27 #1514 [Verbose] > │ and UH1 = │
00:00:27 #1515 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:27 #1516 [Verbose] > │ | UH1_1 │
00:00:27 #1517 [Verbose] > │ and [<Struct>] US1 = │
00:00:27 #1518 [Verbose] > │ | US1_0 │
00:00:27 #1519 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:27 #1520 [Verbose] > │ let rec closure10 () () : UH0 = │
00:00:27 #1521 [Verbose] > │ UH0_1 │
00:00:27 #1522 [Verbose] > │ and closure9 () () : UH0 = │
00:00:27 #1523 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:27 #1524 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:27 #1525 [Verbose] > │ UH0_0(9, v0) │
00:00:27 #1526 [Verbose] > │ and closure8 () () : UH0 = │
00:00:27 #1527 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:27 #1528 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:27 #1529 [Verbose] > │ UH0_0(8, v0) │
00:00:27 #1530 [Verbose] > │ and closure7 () () : UH0 = │
00:00:27 #1531 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:27 #1532 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:27 #1533 [Verbose] > │ UH0_0(7, v0) │
00:00:27 #1534 [Verbose] > │ and closure6 () () : UH0 = │
00:00:27 #1535 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:27 #1536 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:27 #1537 [Verbose] > │ UH0_0(6, v0) │
00:00:27 #1538 [Verbose] > │ and closure5 () () : UH0 = │
00:00:27 #1539 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:27 #1540 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:27 #1541 [Verbose] > │ UH0_0(5, v0) │
00:00:27 #1542 [Verbose] > │ and closure4 () () : UH0 = │
00:00:27 #1543 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:27 #1544 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:27 #1545 [Verbose] > │ UH0_0(4, v0) │
00:00:27 #1546 [Verbose] > │ and closure3 () () : UH0 = │
00:00:27 #1547 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:27 #1548 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:27 #1549 [Verbose] > │ UH0_0(3, v0) │
00:00:27 #1550 [Verbose] > │ and closure2 () () : UH0 = │
00:00:27 #1551 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:27 #1552 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:27 #1553 [Verbose] > │ UH0_0(2, v0) │
00:00:27 #1554 [Verbose] > │ and closure1 () () : UH0 = │
00:00:27 #1555 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:27 #1556 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:27 #1557 [Verbose] > │ UH0_0(1, v0) │
00:00:27 #1558 [Verbose] > │ and closure0 () () : UH0 = │
00:00:27 #1559 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:27 #1560 [Verbose] > │ UH0_0(0, v0) │
00:00:27 #1561 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 = │
00:00:27 #1562 [Verbose] > │ let v1 : US0 = v0.l0 │
00:00:27 #1563 [Verbose] > │ match v1 with │
00:00:27 #1564 [Verbose] > │ | US0_0(v2) -> (* Computed *) │
00:00:27 #1565 [Verbose] > │ v2 │
00:00:27 #1566 [Verbose] > │ | US0_1(v3) -> (* NotComputed *) │
00:00:27 #1567 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:27 #1568 [Verbose] > │ let v13 : UH0 = │
00:00:27 #1569 [Verbose] > │ match v4 with │
00:00:27 #1570 [Verbose] > │ | UH0_0(v6, v7) -> (* StreamCons *) │
00:00:27 #1571 [Verbose] > │ let v8 : US0 = US0_1(v7) │
00:00:27 #1572 [Verbose] > │ let v9 : Mut0 = {l0 = v8} : Mut0 │
00:00:27 #1573 [Verbose] > │ let v10 : (unit -> UH0) = closure11(v9) │
00:00:27 #1574 [Verbose] > │ UH0_0(v6, v10) │
00:00:27 #1575 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:27 #1576 [Verbose] > │ UH0_1 │
00:00:27 #1577 [Verbose] > │ let v14 : US0 = US0_0(v13) │
00:00:27 #1578 [Verbose] > │ v0.l0 <- v14 │
00:00:27 #1579 [Verbose] > │ v13 │
00:00:27 #1580 [Verbose] > │ and method2 (v0 : int32, v1 : UH0) : US1 = │
00:00:27 #1581 [Verbose] > │ match v1 with │
00:00:27 #1582 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:27 #1583 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:27 #1584 [Verbose] > │ if v4 then │
00:00:27 #1585 [Verbose] > │ US1_1(v2) │
00:00:27 #1586 [Verbose] > │ else │
00:00:27 #1587 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:27 #1588 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:27 #1589 [Verbose] > │ method2(v6, v7) │
00:00:27 #1590 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:27 #1591 [Verbose] > │ US1_0 │
00:00:27 #1592 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:27 #1593 [Verbose] > │ match v0 with │
00:00:27 #1594 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:27 #1595 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:27 #1596 [Verbose] > │ method3(v3, v4) │
00:00:27 #1597 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:27 #1598 [Verbose] > │ v1 │
00:00:27 #1599 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:27 #1600 [Verbose] > │ let v3 : US1 = method2(v2, v0) │
00:00:27 #1601 [Verbose] > │ match v3 with │
00:00:27 #1602 [Verbose] > │ | US1_1(v4) -> (* Some *) │
00:00:27 #1603 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:27 #1604 [Verbose] > │ if v5 then │
00:00:27 #1605 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:27 #1606 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:27 #1607 [Verbose] > │ method1(v0, v6, v7) │
00:00:27 #1608 [Verbose] > │ else │
00:00:27 #1609 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:27 #1610 [Verbose] > │ method3(v1, v9) │
00:00:27 #1611 [Verbose] > │ | _ -> │
00:00:27 #1612 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:27 #1613 [Verbose] > │ method3(v1, v12) │
00:00:27 #1614 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 = │
00:00:27 #1615 [Verbose] > │ match v0 with │
00:00:27 #1616 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:27 #1617 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:27 #1618 [Verbose] > │ method4(v3, v4) │
00:00:27 #1619 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:27 #1620 [Verbose] > │ v1 │
00:00:27 #1621 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:27 #1622 [Verbose] > │ v0 │
00:00:27 #1623 [Verbose] > │ and method0 () : unit = │
00:00:27 #1624 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:27 #1625 [Verbose] > │ let v0 : (unit -> UH0) = closure0() │
00:00:27 #1626 [Verbose] > │ let v1 : US0 = US0_1(v0) │
00:00:27 #1627 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:27 #1628 [Verbose] > │ let v3 : US0 = v2.l0 │
00:00:27 #1629 [Verbose] > │ let v18 : UH0 = │
00:00:27 #1630 [Verbose] > │ match v3 with │
00:00:27 #1631 [Verbose] > │ | US0_0(v4) -> (* Computed *) │
00:00:27 #1632 [Verbose] > │ v4 │
00:00:27 #1633 [Verbose] > │ | US0_1(v5) -> (* NotComputed *) │
00:00:27 #1634 [Verbose] > │ let v6 : UH0 = v5 () │
00:00:27 #1635 [Verbose] > │ let v15 : UH0 = │
00:00:27 #1636 [Verbose] > │ match v6 with │
00:00:27 #1637 [Verbose] > │ | UH0_0(v8, v9) -> (* StreamCons *) │
00:00:27 #1638 [Verbose] > │ let v10 : US0 = US0_1(v9) │
00:00:27 #1639 [Verbose] > │ let v11 : Mut0 = {l0 = v10} : Mut0 │
00:00:27 #1640 [Verbose] > │ let v12 : (unit -> UH0) = closure11(v11) │
00:00:27 #1641 [Verbose] > │ UH0_0(v8, v12) │
00:00:27 #1642 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:27 #1643 [Verbose] > │ UH0_1 │
00:00:27 #1644 [Verbose] > │ let v16 : US0 = US0_0(v15) │
00:00:27 #1645 [Verbose] > │ v2.l0 <- v16 │
00:00:27 #1646 [Verbose] > │ v15 │
00:00:27 #1647 [Verbose] > │ let v19 : UH1 = UH1_1 │
00:00:27 #1648 [Verbose] > │ let v20 : int32 = 0 │
00:00:27 #1649 [Verbose] > │ let v21 : UH1 = method1(v18, v19, v20) │
00:00:27 #1650 [Verbose] > │ let v22 : int32 = 0 │
00:00:27 #1651 [Verbose] > │ let v23 : int32 = method4(v21, v22) │
00:00:27 #1652 [Verbose] > │ let v24 : string = $"%A{v23}" │
00:00:27 #1653 [Verbose] > │ System.Console.WriteLine v24 │
00:00:27 #1654 [Verbose] > │ let v25 : bool = v23 = 10 │
00:00:27 #1655 [Verbose] > │ let v27 : bool = │
00:00:27 #1656 [Verbose] > │ if v25 then │
00:00:27 #1657 [Verbose] > │ true │
00:00:27 #1658 [Verbose] > │ else │
00:00:27 #1659 [Verbose] > │ method5(v25) │
00:00:27 #1660 [Verbose] > │ let v28 : string = $"__expect / actual: %A{v23} / expected: %A{10}" │
00:00:27 #1661 [Verbose] > │ let v29 : bool = v27 = false │
00:00:27 #1662 [Verbose] > │ if v29 then │
00:00:27 #1663 [Verbose] > │ failwith<unit> v28 │
00:00:27 #1664 [Verbose] > │ method0() │
00:00:27 #1665 [Verbose] > │ │
00:00:27 #1666 [Verbose] > │ print_and_return / x: 0 │
00:00:27 #1667 [Verbose] > │ print_and_return / x: 1 │
00:00:27 #1668 [Verbose] > │ print_and_return / x: 2 │
00:00:27 #1669 [Verbose] > │ print_and_return / x: 3 │
00:00:27 #1670 [Verbose] > │ print_and_return / x: 4 │
00:00:27 #1671 [Verbose] > │ print_and_return / x: 5 │
00:00:27 #1672 [Verbose] > │ 10 │
00:00:27 #1673 [Verbose] > │ │
00:00:27 #1674 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1675 [Verbose] >
00:00:27 #1676 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 #1677 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 #1678 [Verbose] > │ ## memoize │
00:00:27 #1679 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #1680 [Verbose] >
00:00:27 #1681 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #1682 [Verbose] > inl memoize seq =
00:00:27 #1683 [Verbose] > inl state = mut [[]]
00:00:27 #1684 [Verbose] > fun n =>
00:00:27 #1685 [Verbose] > match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:00:27 #1686 [Verbose] > | Some (_, v) => v
00:00:27 #1687 [Verbose] > | None =>
00:00:27 #1688 [Verbose] > inl new_state = seq n
00:00:27 #1689 [Verbose] > state <- (n, new_state) :: *state
00:00:27 #1690 [Verbose] > new_state
00:00:27 #1691 [Verbose] >
00:00:27 #1692 [Verbose] > inl memoize_ seq =
00:00:27 #1693 [Verbose] > inl state = mut [[]]
00:00:27 #1694 [Verbose] > fun n =>
00:00:27 #1695 [Verbose] > match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:00:27 #1696 [Verbose] > | Some (_, v) => v
00:00:27 #1697 [Verbose] > | None =>
00:00:27 #1698 [Verbose] > inl new_state = seq n
00:00:27 #1699 [Verbose] > state <- (n, new_state) :: *state
00:00:27 #1700 [Verbose] > new_state
00:00:28 #1701 [Verbose] >
00:00:28 #1702 [Verbose] > ╭─[ 267.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #1703 [Verbose] > │ () │
00:00:28 #1704 [Verbose] > │ │
00:00:28 #1705 [Verbose] > │ │
00:00:28 #1706 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #1707 [Verbose] >
00:00:28 #1708 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #1709 [Verbose] > // // test
00:00:28 #1710 [Verbose] >
00:00:28 #1711 [Verbose] > inl seq =
00:00:28 #1712 [Verbose] > fun n =>
00:00:28 #1713 [Verbose] > n |> print_and_return |> Some
00:00:28 #1714 [Verbose] > |> memoize_
00:00:28 #1715 [Verbose] >
00:00:28 #1716 [Verbose] > seq
00:00:28 #1717 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)
00:00:28 #1718 [Verbose] > |> listm'.sum
00:00:28 #1719 [Verbose] > |> _assert_eq 10
00:00:28 #1720 [Verbose] >
00:00:28 #1721 [Verbose] > seq
00:00:28 #1722 [Verbose] > |> take_while_ (fun n _ => n < 5)
00:00:28 #1723 [Verbose] > |> listm'.sum
00:00:28 #1724 [Verbose] > |> _assert_eq 10
00:00:28 #1725 [Verbose] >
00:00:28 #1726 [Verbose] > ╭─[ 498.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #1727 [Verbose] > │ type [<Struct>] US0 = │
00:00:28 #1728 [Verbose] > │ | US0_0 │
00:00:28 #1729 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:28 #1730 [Verbose] > │ and UH0 = │
00:00:28 #1731 [Verbose] > │ | UH0_0 of int32 * US0 * UH0 │
00:00:28 #1732 [Verbose] > │ | UH0_1 │
00:00:28 #1733 [Verbose] > │ and Mut0 = {mutable l0 : UH0} │
00:00:28 #1734 [Verbose] > │ and UH1 = │
00:00:28 #1735 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:28 #1736 [Verbose] > │ | UH1_1 │
00:00:28 #1737 [Verbose] > │ and [<Struct>] US1 = │
00:00:28 #1738 [Verbose] > │ | US1_0 │
00:00:28 #1739 [Verbose] > │ | US1_1 of f1_0 : int32 * f1_1 : US0 │
00:00:28 #1740 [Verbose] > │ let rec method2 (v0 : int32, v1 : UH0) : US1 = │
00:00:28 #1741 [Verbose] > │ match v1 with │
00:00:28 #1742 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1743 [Verbose] > │ let v6 : bool = v3 = v0 │
00:00:28 #1744 [Verbose] > │ if v6 then │
00:00:28 #1745 [Verbose] > │ US1_1(v3, v4) │
00:00:28 #1746 [Verbose] > │ else │
00:00:28 #1747 [Verbose] > │ method2(v0, v5) │
00:00:28 #1748 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:28 #1749 [Verbose] > │ US1_0 │
00:00:28 #1750 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:28 #1751 [Verbose] > │ match v0 with │
00:00:28 #1752 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:28 #1753 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:28 #1754 [Verbose] > │ method3(v3, v4) │
00:00:28 #1755 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:28 #1756 [Verbose] > │ v1 │
00:00:28 #1757 [Verbose] > │ and method1 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 = │
00:00:28 #1758 [Verbose] > │ let v3 : UH0 = v0.l0 │
00:00:28 #1759 [Verbose] > │ let v4 : US1 = method2(v2, v3) │
00:00:28 #1760 [Verbose] > │ let v12 : US0 = │
00:00:28 #1761 [Verbose] > │ match v4 with │
00:00:28 #1762 [Verbose] > │ | US1_0 -> (* None *) │
00:00:28 #1763 [Verbose] > │ printfn $"print_and_return / x: {v2}" │
00:00:28 #1764 [Verbose] > │ let v7 : UH0 = v0.l0 │
00:00:28 #1765 [Verbose] > │ let v8 : US0 = US0_1(v2) │
00:00:28 #1766 [Verbose] > │ let v9 : UH0 = UH0_0(v2, v8, v7) │
00:00:28 #1767 [Verbose] > │ v0.l0 <- v9 │
00:00:28 #1768 [Verbose] > │ US0_1(v2) │
00:00:28 #1769 [Verbose] > │ | US1_1(v5, v6) -> (* Some *) │
00:00:28 #1770 [Verbose] > │ v6 │
00:00:28 #1771 [Verbose] > │ match v12 with │
00:00:28 #1772 [Verbose] > │ | US0_1(v13) -> (* Some *) │
00:00:28 #1773 [Verbose] > │ let v14 : bool = v13 < 5 │
00:00:28 #1774 [Verbose] > │ if v14 then │
00:00:28 #1775 [Verbose] > │ let v15 : UH1 = UH1_0(v13, v1) │
00:00:28 #1776 [Verbose] > │ let v16 : int32 = v2 + 1 │
00:00:28 #1777 [Verbose] > │ method1(v0, v15, v16) │
00:00:28 #1778 [Verbose] > │ else │
00:00:28 #1779 [Verbose] > │ let v18 : UH1 = UH1_1 │
00:00:28 #1780 [Verbose] > │ method3(v1, v18) │
00:00:28 #1781 [Verbose] > │ | _ -> │
00:00:28 #1782 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:28 #1783 [Verbose] > │ method3(v1, v21) │
00:00:28 #1784 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 = │
00:00:28 #1785 [Verbose] > │ match v0 with │
00:00:28 #1786 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:28 #1787 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:28 #1788 [Verbose] > │ method4(v3, v4) │
00:00:28 #1789 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:28 #1790 [Verbose] > │ v1 │
00:00:28 #1791 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:28 #1792 [Verbose] > │ v0 │
00:00:28 #1793 [Verbose] > │ and method6 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 = │
00:00:28 #1794 [Verbose] > │ let v3 : UH0 = v0.l0 │
00:00:28 #1795 [Verbose] > │ let v4 : US1 = method2(v2, v3) │
00:00:28 #1796 [Verbose] > │ let v12 : US0 = │
00:00:28 #1797 [Verbose] > │ match v4 with │
00:00:28 #1798 [Verbose] > │ | US1_0 -> (* None *) │
00:00:28 #1799 [Verbose] > │ printfn $"print_and_return / x: {v2}" │
00:00:28 #1800 [Verbose] > │ let v7 : UH0 = v0.l0 │
00:00:28 #1801 [Verbose] > │ let v8 : US0 = US0_1(v2) │
00:00:28 #1802 [Verbose] > │ let v9 : UH0 = UH0_0(v2, v8, v7) │
00:00:28 #1803 [Verbose] > │ v0.l0 <- v9 │
00:00:28 #1804 [Verbose] > │ US0_1(v2) │
00:00:28 #1805 [Verbose] > │ | US1_1(v5, v6) -> (* Some *) │
00:00:28 #1806 [Verbose] > │ v6 │
00:00:28 #1807 [Verbose] > │ match v12 with │
00:00:28 #1808 [Verbose] > │ | US0_1(v13) -> (* Some *) │
00:00:28 #1809 [Verbose] > │ let v14 : bool = v13 < 5 │
00:00:28 #1810 [Verbose] > │ if v14 then │
00:00:28 #1811 [Verbose] > │ let v15 : UH1 = UH1_0(v13, v1) │
00:00:28 #1812 [Verbose] > │ let v16 : int32 = v2 + 1 │
00:00:28 #1813 [Verbose] > │ method6(v0, v15, v16) │
00:00:28 #1814 [Verbose] > │ else │
00:00:28 #1815 [Verbose] > │ let v18 : UH1 = UH1_1 │
00:00:28 #1816 [Verbose] > │ method3(v1, v18) │
00:00:28 #1817 [Verbose] > │ | _ -> │
00:00:28 #1818 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:28 #1819 [Verbose] > │ method3(v1, v21) │
00:00:28 #1820 [Verbose] > │ and method0 () : unit = │
00:00:28 #1821 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:28 #1822 [Verbose] > │ let v1 : Mut0 = {l0 = v0} : Mut0 │
00:00:28 #1823 [Verbose] > │ let v2 : UH1 = UH1_1 │
00:00:28 #1824 [Verbose] > │ let v3 : int32 = 0 │
00:00:28 #1825 [Verbose] > │ let v4 : UH1 = method1(v1, v2, v3) │
00:00:28 #1826 [Verbose] > │ let v5 : int32 = 0 │
00:00:28 #1827 [Verbose] > │ let v6 : int32 = method4(v4, v5) │
00:00:28 #1828 [Verbose] > │ let v7 : string = $"%A{v6}" │
00:00:28 #1829 [Verbose] > │ System.Console.WriteLine v7 │
00:00:28 #1830 [Verbose] > │ let v8 : bool = v6 = 10 │
00:00:28 #1831 [Verbose] > │ let v10 : bool = │
00:00:28 #1832 [Verbose] > │ if v8 then │
00:00:28 #1833 [Verbose] > │ true │
00:00:28 #1834 [Verbose] > │ else │
00:00:28 #1835 [Verbose] > │ method5(v8) │
00:00:28 #1836 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v6} / expected: %A{10}" │
00:00:28 #1837 [Verbose] > │ let v12 : bool = v10 = false │
00:00:28 #1838 [Verbose] > │ if v12 then │
00:00:28 #1839 [Verbose] > │ failwith<unit> v11 │
00:00:28 #1840 [Verbose] > │ let v13 : UH1 = UH1_1 │
00:00:28 #1841 [Verbose] > │ let v14 : int32 = 0 │
00:00:28 #1842 [Verbose] > │ let v15 : UH1 = method6(v1, v13, v14) │
00:00:28 #1843 [Verbose] > │ let v16 : int32 = 0 │
00:00:28 #1844 [Verbose] > │ let v17 : int32 = method4(v15, v16) │
00:00:28 #1845 [Verbose] > │ let v18 : string = $"%A{v17}" │
00:00:28 #1846 [Verbose] > │ System.Console.WriteLine v18 │
00:00:28 #1847 [Verbose] > │ let v19 : bool = v17 = 10 │
00:00:28 #1848 [Verbose] > │ let v21 : bool = │
00:00:28 #1849 [Verbose] > │ if v19 then │
00:00:28 #1850 [Verbose] > │ true │
00:00:28 #1851 [Verbose] > │ else │
00:00:28 #1852 [Verbose] > │ method5(v19) │
00:00:28 #1853 [Verbose] > │ let v22 : string = $"__expect / actual: %A{v17} / expected: %A{10}" │
00:00:28 #1854 [Verbose] > │ let v23 : bool = v21 = false │
00:00:28 #1855 [Verbose] > │ if v23 then │
00:00:28 #1856 [Verbose] > │ failwith<unit> v22 │
00:00:28 #1857 [Verbose] > │ method0() │
00:00:28 #1858 [Verbose] > │ │
00:00:28 #1859 [Verbose] > │ print_and_return / x: 0 │
00:00:28 #1860 [Verbose] > │ print_and_return / x: 1 │
00:00:28 #1861 [Verbose] > │ print_and_return / x: 2 │
00:00:28 #1862 [Verbose] > │ print_and_return / x: 3 │
00:00:28 #1863 [Verbose] > │ print_and_return / x: 4 │
00:00:28 #1864 [Verbose] > │ print_and_return / x: 5 │
00:00:28 #1865 [Verbose] > │ 10 │
00:00:28 #1866 [Verbose] > │ 10 │
00:00:28 #1867 [Verbose] > │ │
00:00:28 #1868 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #1869 [Verbose] >
00:00:28 #1870 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #1871 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #1872 [Verbose] > │ ## iterate │
00:00:28 #1873 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #1874 [Verbose] >
00:00:28 #1875 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #1876 [Verbose] > inl iterate f x0 num_steps =
00:00:28 #1877 [Verbose] > inl rec loop x n =
00:00:28 #1878 [Verbose] > if n <= 0
00:00:28 #1879 [Verbose] > then x
00:00:28 #1880 [Verbose] > else loop (f x) (n - 1)
00:00:28 #1881 [Verbose] > loop x0 num_steps
00:00:29 #1882 [Verbose] >
00:00:29 #1883 [Verbose] > ╭─[ 329.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #1884 [Verbose] > │ () │
00:00:29 #1885 [Verbose] > │ │
00:00:29 #1886 [Verbose] > │ │
00:00:29 #1887 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #1888 [Verbose] >
00:00:29 #1889 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #1890 [Verbose] > // // test
00:00:29 #1891 [Verbose] >
00:00:29 #1892 [Verbose] > 10i32 |> iterate ((*) 2) 1i32
00:00:29 #1893 [Verbose] > |> _assert_eq 1024
00:00:29 #1894 [Verbose] >
00:00:29 #1895 [Verbose] > ╭─[ 285.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #1896 [Verbose] > │ let rec method0 () : unit = │
00:00:29 #1897 [Verbose] > │ let v0 : string = $"%A{1024}" │
00:00:29 #1898 [Verbose] > │ System.Console.WriteLine v0 │
00:00:29 #1899 [Verbose] > │ let v1 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:29 #1900 [Verbose] > │ () │
00:00:29 #1901 [Verbose] > │ method0() │
00:00:29 #1902 [Verbose] > │ │
00:00:29 #1903 [Verbose] > │ 1024 │
00:00:29 #1904 [Verbose] > │ │
00:00:29 #1905 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #1906 [Verbose] >
00:00:29 #1907 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #1908 [Verbose] > inl iterate_ f x0 num_steps =
00:00:29 #1909 [Verbose] > let rec loop x n =
00:00:29 #1910 [Verbose] > if n <= 0
00:00:29 #1911 [Verbose] > then x
00:00:29 #1912 [Verbose] > else loop (f x) (n - 1)
00:00:29 #1913 [Verbose] > loop x0 num_steps
00:00:29 #1914 [Verbose] >
00:00:29 #1915 [Verbose] > ╭─[ 244.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #1916 [Verbose] > │ () │
00:00:29 #1917 [Verbose] > │ │
00:00:29 #1918 [Verbose] > │ │
00:00:29 #1919 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #1920 [Verbose] >
00:00:29 #1921 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #1922 [Verbose] > // // test
00:00:29 #1923 [Verbose] >
00:00:29 #1924 [Verbose] > 10i32 |> iterate_ ((*) 2) 1i32
00:00:29 #1925 [Verbose] > |> _assert_eq 1024
00:00:29 #1926 [Verbose] >
00:00:29 #1927 [Verbose] > ╭─[ 325.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #1928 [Verbose] > │ let rec method1 (v0 : int32, v1 : int32) : int32 = │
00:00:29 #1929 [Verbose] > │ let v2 : bool = v1 <= 0 │
00:00:29 #1930 [Verbose] > │ if v2 then │
00:00:29 #1931 [Verbose] > │ v0 │
00:00:29 #1932 [Verbose] > │ else │
00:00:29 #1933 [Verbose] > │ let v3 : int32 = 2 * v0 │
00:00:29 #1934 [Verbose] > │ let v4 : int32 = v1 - 1 │
00:00:29 #1935 [Verbose] > │ method1(v3, v4) │
00:00:29 #1936 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:29 #1937 [Verbose] > │ v0 │
00:00:29 #1938 [Verbose] > │ and method0 () : unit = │
00:00:29 #1939 [Verbose] > │ let v0 : int32 = 1 │
00:00:29 #1940 [Verbose] > │ let v1 : int32 = 10 │
00:00:29 #1941 [Verbose] > │ let v2 : int32 = method1(v0, v1) │
00:00:29 #1942 [Verbose] > │ let v3 : string = $"%A{v2}" │
00:00:29 #1943 [Verbose] > │ System.Console.WriteLine v3 │
00:00:29 #1944 [Verbose] > │ let v4 : bool = v2 = 1024 │
00:00:29 #1945 [Verbose] > │ let v6 : bool = │
00:00:29 #1946 [Verbose] > │ if v4 then │
00:00:29 #1947 [Verbose] > │ true │
00:00:29 #1948 [Verbose] > │ else │
00:00:29 #1949 [Verbose] > │ method2(v4) │
00:00:29 #1950 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v2} / expected: %A{1024}" │
00:00:29 #1951 [Verbose] > │ let v8 : bool = v6 = false │
00:00:29 #1952 [Verbose] > │ if v8 then │
00:00:29 #1953 [Verbose] > │ failwith<unit> v7 │
00:00:29 #1954 [Verbose] > │ method0() │
00:00:29 #1955 [Verbose] > │ │
00:00:29 #1956 [Verbose] > │ 1024 │
00:00:29 #1957 [Verbose] > │ │
00:00:29 #1958 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #1959 [Verbose] >
00:00:29 #1960 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #1961 [Verbose] > inl iterate' f x0 num_steps =
00:00:29 #1962 [Verbose] > listm.init num_steps id
00:00:29 #1963 [Verbose] > |> listm.fold (fun x _ => f x) x0
00:00:30 #1964 [Verbose] >
00:00:30 #1965 [Verbose] > ╭─[ 272.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #1966 [Verbose] > │ () │
00:00:30 #1967 [Verbose] > │ │
00:00:30 #1968 [Verbose] > │ │
00:00:30 #1969 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1970 [Verbose] >
00:00:30 #1971 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #1972 [Verbose] > // // test
00:00:30 #1973 [Verbose] >
00:00:30 #1974 [Verbose] > 10i32 |> iterate' ((*) 2) 1i32
00:00:30 #1975 [Verbose] > |> _assert_eq 1024
00:00:30 #1976 [Verbose] >
00:00:30 #1977 [Verbose] > ╭─[ 364.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #1978 [Verbose] > │ let rec method0 () : unit = │
00:00:30 #1979 [Verbose] > │ let v0 : string = $"%A{1024}" │
00:00:30 #1980 [Verbose] > │ System.Console.WriteLine v0 │
00:00:30 #1981 [Verbose] > │ let v1 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:30 #1982 [Verbose] > │ () │
00:00:30 #1983 [Verbose] > │ method0() │
00:00:30 #1984 [Verbose] > │ │
00:00:30 #1985 [Verbose] > │ 1024 │
00:00:30 #1986 [Verbose] > │ │
00:00:30 #1987 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1988 [Verbose] >
00:00:30 #1989 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 #1990 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 #1991 [Verbose] > │ ## find_last │
00:00:30 #1992 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1993 [Verbose] >
00:00:30 #1994 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #1995 [Verbose] > inl find_last forall item result. fold_fn fn target : option result =
00:00:30 #1996 [Verbose] > fold_fn (fun (item : item) (result : option result) =>
00:00:30 #1997 [Verbose] > match result with
00:00:30 #1998 [Verbose] > | None => fn item
00:00:30 #1999 [Verbose] > | result => result
00:00:30 #2000 [Verbose] > ) target (None : option result)
00:00:30 #2001 [Verbose] >
00:00:30 #2002 [Verbose] > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:00:30 #2003 [Verbose] > i32 item) : option result =
00:00:30 #2004 [Verbose] > find_last am.foldBack fn target
00:00:30 #2005 [Verbose] >
00:00:30 #2006 [Verbose] > inl list_find_last forall item result. (fn : item -> option result) (target :
00:00:30 #2007 [Verbose] > list item) : option result =
00:00:30 #2008 [Verbose] > find_last listm.foldBack fn target
00:00:31 #2009 [Verbose] >
00:00:31 #2010 [Verbose] > ╭─[ 499.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #2011 [Verbose] > │ () │
00:00:31 #2012 [Verbose] > │ │
00:00:31 #2013 [Verbose] > │ │
00:00:31 #2014 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2015 [Verbose] > [NbConvertApp] Converting notebook seq.dib.ipynb to html
00:00:33 #2016 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:33 #2017 [Verbose] > validate(nb)
00:00:34 #2018 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:34 #2019 [Verbose] > return _pygments_highlight(
00:00:35 #2020 [Verbose] > [NbConvertApp] Writing 406667 bytes to seq.dib.html
00:00:36 #2021 [Debug] executeAsync / exitCode: 0 / output.Length: 136067
00:00:36 #2022 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 util.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # util │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:09 #13 [Verbose] >
00:00:09 #14 [Verbose] > ╭─[ 5.42s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #15 [Verbose] > │ () │
00:00:09 #16 [Verbose] > │ │
00:00:09 #17 [Verbose] > │ │
00:00:09 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #19 [Verbose] >
00:00:09 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #22 [Verbose] > │ ## ski │
00:00:09 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #24 [Verbose] >
00:00:09 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #26 [Verbose] > union rec ski =
00:00:09 #27 [Verbose] > | I
00:00:09 #28 [Verbose] > | K
00:00:09 #29 [Verbose] > | S
00:00:09 #30 [Verbose] > | App : ski * ski
00:00:09 #31 [Verbose] >
00:00:09 #32 [Verbose] > inl rec eval ski =
00:00:09 #33 [Verbose] > match ski with
00:00:09 #34 [Verbose] > | App (App (K, x), y) => eval x
00:00:09 #35 [Verbose] > | App (App (App (S, x), y), z) => eval (App (App (x, z), App (y, z)))
00:00:09 #36 [Verbose] > | App (I, x) => eval x
00:00:09 #37 [Verbose] > | App (K, x) => App (K, eval x)
00:00:09 #38 [Verbose] > | App (f, x) => eval (App (eval f, x))
00:00:09 #39 [Verbose] > | _ => ski
00:00:09 #40 [Verbose] >
00:00:09 #41 [Verbose] > ╭─[ 265.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #42 [Verbose] > │ () │
00:00:09 #43 [Verbose] > │ │
00:00:09 #44 [Verbose] > │ │
00:00:09 #45 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #46 [Verbose] >
00:00:09 #47 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #48 [Verbose] > // // test
00:00:09 #49 [Verbose] >
00:00:09 #50 [Verbose] > eval I
00:00:09 #51 [Verbose] > |> _assert_eq I
00:00:09 #52 [Verbose] >
00:00:09 #53 [Verbose] > eval (App (I, I))
00:00:09 #54 [Verbose] > |> _assert_eq I
00:00:09 #55 [Verbose] >
00:00:09 #56 [Verbose] > eval (App (I, App (I, I)))
00:00:09 #57 [Verbose] > |> _assert_eq I
00:00:09 #58 [Verbose] >
00:00:09 #59 [Verbose] > eval (App (App (I, I), I))
00:00:09 #60 [Verbose] > |> _assert_eq I
00:00:09 #61 [Verbose] >
00:00:09 #62 [Verbose] > eval (App (App (App (I, I), I), I))
00:00:09 #63 [Verbose] > |> _assert_eq I
00:00:09 #64 [Verbose] >
00:00:09 #65 [Verbose] > eval K
00:00:09 #66 [Verbose] > |> _assert_eq K
00:00:09 #67 [Verbose] >
00:00:09 #68 [Verbose] > eval (App (K, I))
00:00:09 #69 [Verbose] > |> _assert_eq (App (K, I))
00:00:09 #70 [Verbose] >
00:00:09 #71 [Verbose] > eval (App (K, K))
00:00:09 #72 [Verbose] > |> _assert_eq (App (K, K))
00:00:09 #73 [Verbose] >
00:00:09 #74 [Verbose] > eval (App (App (K, I), K))
00:00:09 #75 [Verbose] > |> _assert_eq I
00:00:09 #76 [Verbose] >
00:00:09 #77 [Verbose] > eval (App (App (K, K), I))
00:00:09 #78 [Verbose] > |> _assert_eq K
00:00:09 #79 [Verbose] >
00:00:09 #80 [Verbose] > eval (App (App (App (App (K, K), I), S), K))
00:00:09 #81 [Verbose] > |> _assert_eq S
00:00:09 #82 [Verbose] >
00:00:09 #83 [Verbose] > eval S
00:00:09 #84 [Verbose] > |> _assert_eq S
00:00:09 #85 [Verbose] >
00:00:09 #86 [Verbose] > eval (App (App (App (S, I), I), I))
00:00:09 #87 [Verbose] > |> _assert_eq I
00:00:09 #88 [Verbose] >
00:00:09 #89 [Verbose] > eval (App (App (App (S, K), K), I))
00:00:09 #90 [Verbose] > |> _assert_eq I
00:00:09 #91 [Verbose] >
00:00:09 #92 [Verbose] > eval (App (App (App (S, K), I), (App (App (K, I), S))))
00:00:09 #93 [Verbose] > |> _assert_eq I
00:00:09 #94 [Verbose] >
00:00:09 #95 [Verbose] > eval (App (App (K, S), App (I, App (App (App (S, K), S), I))))
00:00:09 #96 [Verbose] > |> _assert_eq S
00:00:09 #97 [Verbose] >
00:00:09 #98 [Verbose] > eval (App (App (App (S, K), I), K))
00:00:09 #99 [Verbose] > |> _assert_eq K
00:00:11 #100 [Verbose] >
00:00:11 #101 [Verbose] > ╭─[ 1.64s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #102 [Verbose] > │ type UH0 = │
00:00:11 #103 [Verbose] > │ | UH0_0 of UH0 * UH0 │
00:00:11 #104 [Verbose] > │ | UH0_1 │
00:00:11 #105 [Verbose] > │ | UH0_2 │
00:00:11 #106 [Verbose] > │ | UH0_3 │
00:00:11 #107 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #108 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:11 #109 [Verbose] > │ let v1 : string = $"%A{v0}" │
00:00:11 #110 [Verbose] > │ System.Console.WriteLine v1 │
00:00:11 #111 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:11 #112 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:11 #113 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v5} / expected: %A{v6}" │
00:00:11 #114 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:11 #115 [Verbose] > │ let v9 : string = $"%A{v8}" │
00:00:11 #116 [Verbose] > │ System.Console.WriteLine v9 │
00:00:11 #117 [Verbose] > │ let v13 : UH0 = UH0_1 │
00:00:11 #118 [Verbose] > │ let v14 : UH0 = UH0_1 │
00:00:11 #119 [Verbose] > │ let v15 : string = $"__expect / actual: %A{v13} / expected: %A{v14}" │
00:00:11 #120 [Verbose] > │ let v16 : UH0 = UH0_1 │
00:00:11 #121 [Verbose] > │ let v17 : string = $"%A{v16}" │
00:00:11 #122 [Verbose] > │ System.Console.WriteLine v17 │
00:00:11 #123 [Verbose] > │ let v21 : UH0 = UH0_1 │
00:00:11 #124 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:11 #125 [Verbose] > │ let v23 : string = $"__expect / actual: %A{v21} / expected: %A{v22}" │
00:00:11 #126 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:11 #127 [Verbose] > │ let v25 : string = $"%A{v24}" │
00:00:11 #128 [Verbose] > │ System.Console.WriteLine v25 │
00:00:11 #129 [Verbose] > │ let v29 : UH0 = UH0_1 │
00:00:11 #130 [Verbose] > │ let v30 : UH0 = UH0_1 │
00:00:11 #131 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v29} / expected: %A{v30}" │
00:00:11 #132 [Verbose] > │ let v32 : UH0 = UH0_1 │
00:00:11 #133 [Verbose] > │ let v33 : string = $"%A{v32}" │
00:00:11 #134 [Verbose] > │ System.Console.WriteLine v33 │
00:00:11 #135 [Verbose] > │ let v37 : UH0 = UH0_1 │
00:00:11 #136 [Verbose] > │ let v38 : UH0 = UH0_1 │
00:00:11 #137 [Verbose] > │ let v39 : string = $"__expect / actual: %A{v37} / expected: %A{v38}" │
00:00:11 #138 [Verbose] > │ let v40 : UH0 = UH0_2 │
00:00:11 #139 [Verbose] > │ let v41 : string = $"%A{v40}" │
00:00:11 #140 [Verbose] > │ System.Console.WriteLine v41 │
00:00:11 #141 [Verbose] > │ let v45 : UH0 = UH0_2 │
00:00:11 #142 [Verbose] > │ let v46 : UH0 = UH0_2 │
00:00:11 #143 [Verbose] > │ let v47 : string = $"__expect / actual: %A{v45} / expected: %A{v46}" │
00:00:11 #144 [Verbose] > │ let v48 : UH0 = UH0_2 │
00:00:11 #145 [Verbose] > │ let v49 : UH0 = UH0_1 │
00:00:11 #146 [Verbose] > │ let v50 : UH0 = UH0_0(v48, v49) │
00:00:11 #147 [Verbose] > │ let v51 : string = $"%A{v50}" │
00:00:11 #148 [Verbose] > │ System.Console.WriteLine v51 │
00:00:11 #149 [Verbose] > │ let v63 : UH0 = UH0_2 │
00:00:11 #150 [Verbose] > │ let v64 : UH0 = UH0_1 │
00:00:11 #151 [Verbose] > │ let v65 : UH0 = UH0_0(v63, v64) │
00:00:11 #152 [Verbose] > │ let v66 : UH0 = UH0_2 │
00:00:11 #153 [Verbose] > │ let v67 : UH0 = UH0_1 │
00:00:11 #154 [Verbose] > │ let v68 : UH0 = UH0_0(v66, v67) │
00:00:11 #155 [Verbose] > │ let v69 : string = $"__expect / actual: %A{v65} / expected: %A{v68}" │
00:00:11 #156 [Verbose] > │ let v70 : UH0 = UH0_2 │
00:00:11 #157 [Verbose] > │ let v71 : UH0 = UH0_2 │
00:00:11 #158 [Verbose] > │ let v72 : UH0 = UH0_0(v70, v71) │
00:00:11 #159 [Verbose] > │ let v73 : string = $"%A{v72}" │
00:00:11 #160 [Verbose] > │ System.Console.WriteLine v73 │
00:00:11 #161 [Verbose] > │ let v85 : UH0 = UH0_2 │
00:00:11 #162 [Verbose] > │ let v86 : UH0 = UH0_2 │
00:00:11 #163 [Verbose] > │ let v87 : UH0 = UH0_0(v85, v86) │
00:00:11 #164 [Verbose] > │ let v88 : UH0 = UH0_2 │
00:00:11 #165 [Verbose] > │ let v89 : UH0 = UH0_2 │
00:00:11 #166 [Verbose] > │ let v90 : UH0 = UH0_0(v88, v89) │
00:00:11 #167 [Verbose] > │ let v91 : string = $"__expect / actual: %A{v87} / expected: %A{v90}" │
00:00:11 #168 [Verbose] > │ let v92 : UH0 = UH0_1 │
00:00:11 #169 [Verbose] > │ let v93 : string = $"%A{v92}" │
00:00:11 #170 [Verbose] > │ System.Console.WriteLine v93 │
00:00:11 #171 [Verbose] > │ let v97 : UH0 = UH0_1 │
00:00:11 #172 [Verbose] > │ let v98 : UH0 = UH0_1 │
00:00:11 #173 [Verbose] > │ let v99 : string = $"__expect / actual: %A{v97} / expected: %A{v98}" │
00:00:11 #174 [Verbose] > │ let v100 : UH0 = UH0_2 │
00:00:11 #175 [Verbose] > │ let v101 : string = $"%A{v100}" │
00:00:11 #176 [Verbose] > │ System.Console.WriteLine v101 │
00:00:11 #177 [Verbose] > │ let v105 : UH0 = UH0_2 │
00:00:11 #178 [Verbose] > │ let v106 : UH0 = UH0_2 │
00:00:11 #179 [Verbose] > │ let v107 : string = $"__expect / actual: %A{v105} / expected: %A{v106}" │
00:00:11 #180 [Verbose] > │ let v108 : UH0 = UH0_3 │
00:00:11 #181 [Verbose] > │ let v109 : string = $"%A{v108}" │
00:00:11 #182 [Verbose] > │ System.Console.WriteLine v109 │
00:00:11 #183 [Verbose] > │ let v113 : UH0 = UH0_3 │
00:00:11 #184 [Verbose] > │ let v114 : UH0 = UH0_3 │
00:00:11 #185 [Verbose] > │ let v115 : string = $"__expect / actual: %A{v113} / expected: %A{v114}" │
00:00:11 #186 [Verbose] > │ let v116 : UH0 = UH0_3 │
00:00:11 #187 [Verbose] > │ let v117 : string = $"%A{v116}" │
00:00:11 #188 [Verbose] > │ System.Console.WriteLine v117 │
00:00:11 #189 [Verbose] > │ let v121 : UH0 = UH0_3 │
00:00:11 #190 [Verbose] > │ let v122 : UH0 = UH0_3 │
00:00:11 #191 [Verbose] > │ let v123 : string = $"__expect / actual: %A{v121} / expected: %A{v122}" │
00:00:11 #192 [Verbose] > │ let v124 : UH0 = UH0_1 │
00:00:11 #193 [Verbose] > │ let v125 : string = $"%A{v124}" │
00:00:11 #194 [Verbose] > │ System.Console.WriteLine v125 │
00:00:11 #195 [Verbose] > │ let v129 : UH0 = UH0_1 │
00:00:11 #196 [Verbose] > │ let v130 : UH0 = UH0_1 │
00:00:11 #197 [Verbose] > │ let v131 : string = $"__expect / actual: %A{v129} / expected: %A{v130}" │
00:00:11 #198 [Verbose] > │ let v132 : UH0 = UH0_1 │
00:00:11 #199 [Verbose] > │ let v133 : string = $"%A{v132}" │
00:00:11 #200 [Verbose] > │ System.Console.WriteLine v133 │
00:00:11 #201 [Verbose] > │ let v137 : UH0 = UH0_1 │
00:00:11 #202 [Verbose] > │ let v138 : UH0 = UH0_1 │
00:00:11 #203 [Verbose] > │ let v139 : string = $"__expect / actual: %A{v137} / expected: %A{v138}" │
00:00:11 #204 [Verbose] > │ let v140 : UH0 = UH0_1 │
00:00:11 #205 [Verbose] > │ let v141 : string = $"%A{v140}" │
00:00:11 #206 [Verbose] > │ System.Console.WriteLine v141 │
00:00:11 #207 [Verbose] > │ let v145 : UH0 = UH0_1 │
00:00:11 #208 [Verbose] > │ let v146 : UH0 = UH0_1 │
00:00:11 #209 [Verbose] > │ let v147 : string = $"__expect / actual: %A{v145} / expected: %A{v146}" │
00:00:11 #210 [Verbose] > │ let v148 : UH0 = UH0_3 │
00:00:11 #211 [Verbose] > │ let v149 : string = $"%A{v148}" │
00:00:11 #212 [Verbose] > │ System.Console.WriteLine v149 │
00:00:11 #213 [Verbose] > │ let v153 : UH0 = UH0_3 │
00:00:11 #214 [Verbose] > │ let v154 : UH0 = UH0_3 │
00:00:11 #215 [Verbose] > │ let v155 : string = $"__expect / actual: %A{v153} / expected: %A{v154}" │
00:00:11 #216 [Verbose] > │ let v156 : UH0 = UH0_2 │
00:00:11 #217 [Verbose] > │ let v157 : string = $"%A{v156}" │
00:00:11 #218 [Verbose] > │ System.Console.WriteLine v157 │
00:00:11 #219 [Verbose] > │ let v161 : UH0 = UH0_2 │
00:00:11 #220 [Verbose] > │ let v162 : UH0 = UH0_2 │
00:00:11 #221 [Verbose] > │ let v163 : string = $"__expect / actual: %A{v161} / expected: %A{v162}" │
00:00:11 #222 [Verbose] > │ () │
00:00:11 #223 [Verbose] > │ method0() │
00:00:11 #224 [Verbose] > │ │
00:00:11 #225 [Verbose] > │ UH0_1 │
00:00:11 #226 [Verbose] > │ UH0_1 │
00:00:11 #227 [Verbose] > │ UH0_1 │
00:00:11 #228 [Verbose] > │ UH0_1 │
00:00:11 #229 [Verbose] > │ UH0_1 │
00:00:11 #230 [Verbose] > │ UH0_2 │
00:00:11 #231 [Verbose] > │ UH0_0 (UH0_2, UH0_1) │
00:00:11 #232 [Verbose] > │ UH0_0 (UH0_2, UH0_2) │
00:00:11 #233 [Verbose] > │ UH0_1 │
00:00:11 #234 [Verbose] > │ UH0_2 │
00:00:11 #235 [Verbose] > │ UH0_3 │
00:00:11 #236 [Verbose] > │ UH0_3 │
00:00:11 #237 [Verbose] > │ UH0_1 │
00:00:11 #238 [Verbose] > │ UH0_1 │
00:00:11 #239 [Verbose] > │ UH0_1 │
00:00:11 #240 [Verbose] > │ UH0_3 │
00:00:11 #241 [Verbose] > │ UH0_2 │
00:00:11 #242 [Verbose] > │ │
00:00:11 #243 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #244 [Verbose] > [NbConvertApp] Converting notebook util.dib.ipynb to html
00:00:13 #245 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:13 #246 [Verbose] > validate(nb)
00:00:14 #247 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:14 #248 [Verbose] > return _pygments_highlight(
00:00:14 #249 [Verbose] > [NbConvertApp] Writing 288561 bytes to util.dib.html
00:00:15 #250 [Debug] executeAsync / exitCode: 0 / output.Length: 15199
00:00:15 #251 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 file_system.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # file_system │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > open rust_operators
00:00:02 #11 [Verbose] > open sm'_operators
00:00:07 #12 [Verbose] >
00:00:07 #13 [Verbose] > ╭─[ 4.30s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #14 [Verbose] > │ () │
00:00:07 #15 [Verbose] > │ │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #18 [Verbose] >
00:00:07 #19 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #20 [Verbose] > // // test
00:00:07 #21 [Verbose] >
00:00:07 #22 [Verbose] > open testing
00:00:07 #23 [Verbose] >
00:00:07 #24 [Verbose] > ╭─[ 273.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #25 [Verbose] > │ () │
00:00:07 #26 [Verbose] > │ │
00:00:07 #27 [Verbose] > │ │
00:00:07 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #29 [Verbose] >
00:00:07 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #32 [Verbose] > │ ## types │
00:00:07 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #34 [Verbose] >
00:00:07 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #36 [Verbose] > inl types () =
00:00:07 #37 [Verbose] > ()
00:00:07 #38 [Verbose] >
00:00:07 #39 [Verbose] > ╭─[ 325.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #40 [Verbose] > │ () │
00:00:07 #41 [Verbose] > │ │
00:00:07 #42 [Verbose] > │ │
00:00:07 #43 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #44 [Verbose] >
00:00:07 #45 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #46 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #47 [Verbose] > │ ## (</>) │
00:00:07 #48 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #49 [Verbose] >
00:00:07 #50 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #51 [Verbose] > inl (</>) (a : string) (b : string) : string =
00:00:07 #52 [Verbose] > $'System.IO.Path.Combine (!a, !b)'
00:00:08 #53 [Verbose] >
00:00:08 #54 [Verbose] > ╭─[ 220.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #55 [Verbose] > │ () │
00:00:08 #56 [Verbose] > │ │
00:00:08 #57 [Verbose] > │ │
00:00:08 #58 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #59 [Verbose] >
00:00:08 #60 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 #61 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 #62 [Verbose] > │ ## create_temp_directory_name │
00:00:08 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #64 [Verbose] >
00:00:08 #65 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #66 [Verbose] > inl create_temp_directory_name () =
00:00:08 #67 [Verbose] > inl root = $'System.Reflection.Assembly.GetEntryAssembly().GetName().Name' :
00:00:08 #68 [Verbose] > string
00:00:08 #69 [Verbose] >
00:00:08 #70 [Verbose] > ($'System.IO.Path.GetTempPath' () : string)
00:00:08 #71 [Verbose] > </> ($'$"{!root}"' : string)
00:00:08 #72 [Verbose] > </> (date_time.new_guid_from_date_time $'System.DateTime.Now' |>
00:00:08 #73 [Verbose] > sm'.obj_to_string)
00:00:08 #74 [Verbose] >
00:00:08 #75 [Verbose] > ╭─[ 248.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #76 [Verbose] > │ () │
00:00:08 #77 [Verbose] > │ │
00:00:08 #78 [Verbose] > │ │
00:00:08 #79 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #80 [Verbose] >
00:00:08 #81 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #82 [Verbose] > // // test
00:00:08 #83 [Verbose] >
00:00:08 #84 [Verbose] > create_temp_directory_name ()
00:00:08 #85 [Verbose] > |> _contains ($'System.IO.Path.DirectorySeparatorChar' : char)
00:00:09 #86 [Verbose] >
00:00:09 #87 [Verbose] > ╭─[ 1.69s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #88 [Verbose] > │ type [<Struct>] US0 = │
00:00:09 #89 [Verbose] > │ | US0_0 │
00:00:09 #90 [Verbose] > │ | US0_1 of f1_0 : char │
00:00:09 #91 [Verbose] > │ let rec closure0 (v0 : char) (v1 : char) : bool = │
00:00:09 #92 [Verbose] > │ let v2 : bool = v0 = v1 │
00:00:09 #93 [Verbose] > │ v2 │
00:00:09 #94 [Verbose] > │ and closure1 () (v0 : char) : US0 = │
00:00:09 #95 [Verbose] > │ US0_1(v0) │
00:00:09 #96 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:09 #97 [Verbose] > │ v0 │
00:00:09 #98 [Verbose] > │ and method0 () : unit = │
00:00:09 #99 [Verbose] > │ let v0 : string = │
00:00:09 #100 [Verbose] > │ System.Reflection.Assembly.GetEntryAssembly().GetName().Name │
00:00:09 #101 [Verbose] > │ let v1 : (unit -> string) = System.IO.Path.GetTempPath │
00:00:09 #102 [Verbose] > │ let v2 : string = v1 () │
00:00:09 #103 [Verbose] > │ let v3 : string = $"{v0}" │
00:00:09 #104 [Verbose] > │ let v4 : string = System.IO.Path.Combine (v2, v3) │
00:00:09 #105 [Verbose] > │ let v5 : System.DateTime = System.DateTime.Now │
00:00:09 #106 [Verbose] > │ let v6 : System.Guid = System.Guid.NewGuid () │
00:00:09 #107 [Verbose] > │ let v7 : string = v6.ToString () │
00:00:09 #108 [Verbose] > │ let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:09 #109 [Verbose] > │ let v9 : System.Guid = System.Guid $"{v8}{v7.[v8.Length..]}" │
00:00:09 #110 [Verbose] > │ let v10 : string = v9.ToString () │
00:00:09 #111 [Verbose] > │ let v11 : string = System.IO.Path.Combine (v4, v10) │
00:00:09 #112 [Verbose] > │ let v12 : char = System.IO.Path.DirectorySeparatorChar │
00:00:09 #113 [Verbose] > │ let v13 : string = $"%A{v11}" │
00:00:09 #114 [Verbose] > │ System.Console.WriteLine v13 │
00:00:09 #115 [Verbose] > │ let v14 : ((char -> bool) -> (string -> char option)) = Seq.tryFind │
00:00:09 #116 [Verbose] > │ let v15 : (char -> bool) = closure0(v12) │
00:00:09 #117 [Verbose] > │ let v16 : (string -> char option) = v14 v15 │
00:00:09 #118 [Verbose] > │ let v17 : char option = v16 v11 │
00:00:09 #119 [Verbose] > │ let v18 : (char -> US0) = closure1() │
00:00:09 #120 [Verbose] > │ let v19 : US0 = US0_0 │
00:00:09 #121 [Verbose] > │ let v20 : US0 = v17 |> Option.map v18 |> Option.defaultValue v19 │
00:00:09 #122 [Verbose] > │ let v22 : bool = │
00:00:09 #123 [Verbose] > │ match v20 with │
00:00:09 #124 [Verbose] > │ | US0_0 -> (* None *) │
00:00:09 #125 [Verbose] > │ true │
00:00:09 #126 [Verbose] > │ | _ -> │
00:00:09 #127 [Verbose] > │ false │
00:00:09 #128 [Verbose] > │ let v23 : bool = v22 <> true │
00:00:09 #129 [Verbose] > │ let v25 : bool = │
00:00:09 #130 [Verbose] > │ if v23 then │
00:00:09 #131 [Verbose] > │ true │
00:00:09 #132 [Verbose] > │ else │
00:00:09 #133 [Verbose] > │ method1(v23) │
00:00:09 #134 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v11} / expected: %A{v12}" │
00:00:09 #135 [Verbose] > │ let v27 : bool = v25 = false │
00:00:09 #136 [Verbose] > │ if v27 then │
00:00:09 #137 [Verbose] > │ failwith<unit> v26 │
00:00:09 #138 [Verbose] > │ method0() │
00:00:09 #139 [Verbose] > │ │
00:00:09 #140 [Verbose] > │ "C:\Users\i574n\AppData\Local\Temp\dotnet-repl\20240329-1010-4278-7895-711ef │
00:00:09 #141 [Verbose] > │ 426a6d6" │
00:00:09 #142 [Verbose] > │ │
00:00:09 #143 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #144 [Verbose] >
00:00:09 #145 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #146 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #147 [Verbose] > │ ## main │
00:00:09 #148 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #149 [Verbose] >
00:00:09 #150 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #151 [Verbose] > inl main () =
00:00:09 #152 [Verbose] > $"let create_temp_directory_name x = !create_temp_directory_name x" : ()
00:00:10 #153 [Verbose] >
00:00:10 #154 [Verbose] > ╭─[ 369.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #155 [Verbose] > │ let rec closure0 () () : string = │
00:00:10 #156 [Verbose] > │ let v0 : string = │
00:00:10 #157 [Verbose] > │ System.Reflection.Assembly.GetEntryAssembly().GetName().Name │
00:00:10 #158 [Verbose] > │ let v1 : (unit -> string) = System.IO.Path.GetTempPath │
00:00:10 #159 [Verbose] > │ let v2 : string = v1 () │
00:00:10 #160 [Verbose] > │ let v3 : string = $"{v0}" │
00:00:10 #161 [Verbose] > │ let v4 : string = System.IO.Path.Combine (v2, v3) │
00:00:10 #162 [Verbose] > │ let v5 : System.DateTime = System.DateTime.Now │
00:00:10 #163 [Verbose] > │ let v6 : System.Guid = System.Guid.NewGuid () │
00:00:10 #164 [Verbose] > │ let v7 : string = v6.ToString () │
00:00:10 #165 [Verbose] > │ let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f" │
00:00:10 #166 [Verbose] > │ let v9 : System.Guid = System.Guid $"{v8}{v7.[v8.Length..]}" │
00:00:10 #167 [Verbose] > │ let v10 : string = v9.ToString () │
00:00:10 #168 [Verbose] > │ let v11 : string = System.IO.Path.Combine (v4, v10) │
00:00:10 #169 [Verbose] > │ v11 │
00:00:10 #170 [Verbose] > │ let v0 : (unit -> string) = closure0() │
00:00:10 #171 [Verbose] > │ let create_temp_directory_name x = v0 x │
00:00:10 #172 [Verbose] > │ () │
00:00:10 #173 [Verbose] > │ │
00:00:10 #174 [Verbose] > │ │
00:00:10 #175 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #176 [Verbose] > [NbConvertApp] Converting notebook file_system.dib.ipynb to html
00:00:12 #177 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:12 #178 [Verbose] > validate(nb)
00:00:12 #179 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:12 #180 [Verbose] > return _pygments_highlight(
00:00:13 #181 [Verbose] > [NbConvertApp] Writing 284307 bytes to file_system.dib.html
00:00:13 #182 [Debug] executeAsync / exitCode: 0 / output.Length: 12044
00:00:13 #183 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 rust.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # rust │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > // // test
00:00:03 #11 [Verbose] >
00:00:03 #12 [Verbose] > open testing
00:00:07 #13 [Verbose] >
00:00:07 #14 [Verbose] > ╭─[ 4.35s - stdout ]───────────────────────────────────────────────────────────╮
00:00:07 #15 [Verbose] > │ () │
00:00:07 #16 [Verbose] > │ │
00:00:07 #17 [Verbose] > │ │
00:00:07 #18 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #19 [Verbose] >
00:00:07 #20 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 #21 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 #22 [Verbose] > │ ## emit_expr │
00:00:07 #23 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #24 [Verbose] >
00:00:07 #25 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #26 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =
00:00:07 #27 [Verbose] > real
00:00:07 #28 [Verbose] > $"Fable.Core.RustInterop.emitRustExpr !args !code" : t
00:00:07 #29 [Verbose] >
00:00:07 #30 [Verbose] > ╭─[ 272.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:07 #31 [Verbose] > │ () │
00:00:07 #32 [Verbose] > │ │
00:00:07 #33 [Verbose] > │ │
00:00:07 #34 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 #35 [Verbose] >
00:00:07 #36 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 #37 [Verbose] > inl types () =
00:00:07 #38 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func0<$0>\")>]] type
00:00:07 #39 [Verbose] > Func0<'T> = class end"
00:00:07 #40 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func1<$0, $1>\")>]] type
00:00:07 #41 [Verbose] > Func0<'T, 'U> = class end"
00:00:07 #42 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Box<$0>\")>]] type Box<'T> =
00:00:07 #43 [Verbose] > class end"
00:00:07 #44 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn $0\")>]] type Dyn<'T> =
00:00:07 #45 [Verbose] > class end"
00:00:07 #46 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn() -> $0\")>]] type Fn<'T>
00:00:07 #47 [Verbose] > = class end"
00:00:07 #48 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()\")>]] type FnUnit =
00:00:07 #49 [Verbose] > class end"
00:00:07 #50 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"FnOnce() -> $0\")>]] type
00:00:07 #51 [Verbose] > FnOnce<'T> = class end"
00:00:07 #52 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn($0, $1)\")>]] type
00:00:07 #53 [Verbose] > ActionFn2<'T, 'U> = class end"
00:00:07 #54 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"impl $0\")>]] type Impl<'T> =
00:00:07 #55 [Verbose] > class end"
00:00:07 #56 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"mut $0\")>]] type Mut<'T> =
00:00:07 #57 [Verbose] > class end"
00:00:07 #58 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =
00:00:07 #59 [Verbose] > class end"
00:00:07 #60 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&'static $0\")>]] type
00:00:07 #61 [Verbose] > StaticRef<'T> = class end"
00:00:07 #62 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"MutCell<$0>\")>]] type
00:00:07 #63 [Verbose] > MutCell<'T> = class end"
00:00:07 #64 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::any::Any\")>]] type
00:00:07 #65 [Verbose] > std_any_Any = class end"
00:00:07 #66 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]
00:00:07 #67 [Verbose] > type std_cell_RefCell<'T> = class end"
00:00:07 #68 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::pin::Pin<$0>\")>]] type
00:00:07 #69 [Verbose] > std_pin_Pin<'T> = class end"
00:00:07 #70 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Rc<$0>\")>]] type
00:00:07 #71 [Verbose] > std_rc_Rc<'T> = class end"
00:00:07 #72 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Weak<$0>\")>]] type
00:00:07 #73 [Verbose] > std_rc_Weak<'T> = class end"
00:00:07 #74 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::sync::Arc<$0>\")>]] type
00:00:07 #75 [Verbose] > std_sync_Arc<'T> = class end"
00:00:08 #76 [Verbose] >
00:00:08 #77 [Verbose] > ╭─[ 301.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #78 [Verbose] > │ () │
00:00:08 #79 [Verbose] > │ │
00:00:08 #80 [Verbose] > │ │
00:00:08 #81 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #82 [Verbose] >
00:00:08 #83 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #84 [Verbose] > nominal ref_cell t = $"std_cell_RefCell<`t>"
00:00:08 #85 [Verbose] > nominal rc t = $"std_rc_Rc<`t>"
00:00:08 #86 [Verbose] > nominal weak_rc t = $"std_rc_Weak<`t>"
00:00:08 #87 [Verbose] > nominal box t = $"Box<`t>"
00:00:08 #88 [Verbose] > nominal mut_cell t = $"MutCell<`t>"
00:00:08 #89 [Verbose] > nominal pin t = $"std_pin_Pin<`t>"
00:00:08 #90 [Verbose] > nominal arc t = $"std_sync_Arc<`t>"
00:00:08 #91 [Verbose] > nominal dyn' t = $"Dyn<`t>"
00:00:08 #92 [Verbose] > nominal fn' t = $"Fn<`t>"
00:00:08 #93 [Verbose] > nominal action_fn2 t u = $"ActionFn2<`t, `u>"
00:00:08 #94 [Verbose] > nominal fn_once t = $"FnOnce<`t>"
00:00:08 #95 [Verbose] > nominal fn_unit = $"FnUnit"
00:00:08 #96 [Verbose] > nominal func0 t = $"Func0<`t>"
00:00:08 #97 [Verbose] > nominal func1 t u = $"Func0<`t, `u>"
00:00:08 #98 [Verbose] > nominal impl t = $"Impl<`t>"
00:00:08 #99 [Verbose] > nominal mut' t = $"Mut<`t>"
00:00:08 #100 [Verbose] > nominal ref' t = $"Ref<`t>"
00:00:08 #101 [Verbose] > nominal static_ref' t = $"StaticRef<`t>"
00:00:08 #102 [Verbose] >
00:00:08 #103 [Verbose] > ╭─[ 319.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #104 [Verbose] > │ () │
00:00:08 #105 [Verbose] > │ │
00:00:08 #106 [Verbose] > │ │
00:00:08 #107 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #108 [Verbose] >
00:00:08 #109 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #110 [Verbose] > inl (~!\) forall t. (code : string) : t =
00:00:08 #111 [Verbose] > emit_expr () code
00:00:08 #112 [Verbose] >
00:00:08 #113 [Verbose] > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:00:08 #114 [Verbose] > emit_expr args code
00:00:08 #115 [Verbose] >
00:00:08 #116 [Verbose] > inl new_box forall t. (x : t) : box t =
00:00:08 #117 [Verbose] > inl x = join x
00:00:08 #118 [Verbose] > !\($'"Box::new(!x)"')
00:00:08 #119 [Verbose] >
00:00:08 #120 [Verbose] > inl new_rc forall t. (x : t) : rc t =
00:00:08 #121 [Verbose] > inl x = join x
00:00:08 #122 [Verbose] > !\($'"std::rc::Rc::new(!x)"')
00:00:08 #123 [Verbose] >
00:00:08 #124 [Verbose] > inl rc_clone forall t. (x : rc t) : rc t =
00:00:08 #125 [Verbose] > inl x = join x
00:00:08 #126 [Verbose] > !\($'"std::rc::Rc::clone(&!x)"')
00:00:08 #127 [Verbose] >
00:00:08 #128 [Verbose] > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:00:08 #129 [Verbose] > inl x = join x
00:00:08 #130 [Verbose] > !\($'"std::rc::Rc::downgrade(&!x)"')
00:00:08 #131 [Verbose] >
00:00:08 #132 [Verbose] > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:00:08 #133 [Verbose] > inl x = join x
00:00:08 #134 [Verbose] > !\($'"std::cell::RefCell::new(!x)"')
00:00:08 #135 [Verbose] >
00:00:08 #136 [Verbose] > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =
00:00:08 #137 [Verbose] > inl x = join x
00:00:08 #138 [Verbose] > !\($'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&!x))"')
00:00:08 #139 [Verbose] >
00:00:08 #140 [Verbose] > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:00:08 #141 [Verbose] > inl x = join x
00:00:08 #142 [Verbose] > !\($'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&!x))"')
00:00:08 #143 [Verbose] >
00:00:08 #144 [Verbose] > inl to_mut forall t. (x : t) : mut' t =
00:00:08 #145 [Verbose] > // !\($'"let mut !x = !x"')
00:00:08 #146 [Verbose] > // !\($'"!x"')
00:00:08 #147 [Verbose] > emit_expr () $"\"let mut !x = !x\""
00:00:08 #148 [Verbose] > emit_expr () $"\"!x\""
00:00:08 #149 [Verbose] >
00:00:08 #150 [Verbose] > inl ref_map forall t u. (fn : t -> u) (x : ref' t) : ref' u =
00:00:08 #151 [Verbose] > !\($'"!fn(!x)"')
00:00:08 #152 [Verbose] >
00:00:08 #153 [Verbose] > inl from_mut forall t. (x : mut' t) : t =
00:00:08 #154 [Verbose] > !\($'"!x"')
00:00:08 #155 [Verbose] >
00:00:08 #156 [Verbose] > inl new_arc forall t. (x : t) : arc t =
00:00:08 #157 [Verbose] > inl x = join x
00:00:08 #158 [Verbose] > !\($'"std::sync::Arc::new(!x)"')
00:00:08 #159 [Verbose] >
00:00:08 #160 [Verbose] > inl box_fn forall t. (x : () -> ()) : box t =
00:00:08 #161 [Verbose] > inl x = join x
00:00:08 #162 [Verbose] > !\($'"Box::new(move || !x())"')
00:00:08 #163 [Verbose] >
00:00:08 #164 [Verbose] > inl new_pin forall t. (x : t) : pin (box t) =
00:00:08 #165 [Verbose] > inl x = join x
00:00:08 #166 [Verbose] > !\($'"Box::pin(!x)"')
00:00:08 #167 [Verbose] >
00:00:08 #168 [Verbose] > inl deref forall t. (ref : ref' t) : t =
00:00:08 #169 [Verbose] > inl ref = join ref
00:00:08 #170 [Verbose] > !\($'"*!ref"')
00:00:08 #171 [Verbose] >
00:00:08 #172 [Verbose] > inl ops_deref forall t. (ref : t) : t =
00:00:08 #173 [Verbose] > inl ref = join ref
00:00:08 #174 [Verbose] > !\($'"core::ops::Deref::deref(&!ref)"')
00:00:08 #175 [Verbose] >
00:00:08 #176 [Verbose] > inl func0_get forall t. (x : func0 t) : t =
00:00:08 #177 [Verbose] > inl x = join x
00:00:08 #178 [Verbose] > !\($'"!x()"')
00:00:08 #179 [Verbose] >
00:00:08 #180 [Verbose] > inl func0_move forall t. (fn : func0 t) : t =
00:00:08 #181 [Verbose] > inl fn = join fn
00:00:08 #182 [Verbose] > !\($'"(move || !fn())()"')
00:00:08 #183 [Verbose] >
00:00:08 #184 [Verbose] > inl move forall t. (fn : () -> t) : func0 t =
00:00:08 #185 [Verbose] > inl fn = join fn
00:00:08 #186 [Verbose] > !\($'"Func0::new(move || !fn())"')
00:00:08 #187 [Verbose] >
00:00:08 #188 [Verbose] > inl to_static_ref_unbox forall t. (x : ref' t) : static_ref' t =
00:00:08 #189 [Verbose] > $"!x |> unbox"
00:00:08 #190 [Verbose] >
00:00:08 #191 [Verbose] > inl from_static_ref_unbox forall t. (x : static_ref' t) : ref' t =
00:00:08 #192 [Verbose] > $"!x |> unbox"
00:00:08 #193 [Verbose] >
00:00:08 #194 [Verbose] > inl box_leak forall t. (x : box t) : static_ref' (mut' t) =
00:00:08 #195 [Verbose] > emit_expr () $"\"Box::leak(!x)\""
00:00:08 #196 [Verbose] >
00:00:08 #197 [Verbose] >
00:00:08 #198 [Verbose] > inl fix_closure depth' x' =
00:00:08 #199 [Verbose] > inl depth = depth' |> fst
00:00:08 #200 [Verbose] > if depth = 1
00:00:08 #201 [Verbose] > then !\($'"!x' })"')
00:00:08 #202 [Verbose] > elif depth = 2
00:00:08 #203 [Verbose] > then !\($'"!x' }})"')
00:00:08 #204 [Verbose] > elif depth = 3
00:00:08 #205 [Verbose] > then !\($'"!x' }}})"')
00:00:08 #206 [Verbose] > elif depth = 4
00:00:08 #207 [Verbose] > then !\($'"!x' }}}})"')
00:00:08 #208 [Verbose] > elif depth = 5
00:00:08 #209 [Verbose] > then !\($'"!x' }}}}})"')
00:00:08 #210 [Verbose] > elif depth = 6 // , 4) // ?
00:00:08 #211 [Verbose] > then !\($'"!x' }}}}}})"')
00:00:08 #212 [Verbose] > elif depth = 7 // , 5) // 7
00:00:08 #213 [Verbose] > then !\($'"!x' }}}}}}})"')
00:00:08 #214 [Verbose] > elif depth = 8 // , 5) // 7
00:00:08 #215 [Verbose] > then !\($'"!x' }}}}}}}})"')
00:00:08 #216 [Verbose] >
00:00:08 #217 [Verbose] > inl depth = depth' |> snd
00:00:08 #218 [Verbose] > if depth = 1
00:00:08 #219 [Verbose] > then !\($'"{ //"')
00:00:08 #220 [Verbose] > elif depth = 2
00:00:08 #221 [Verbose] > then !\($'"{{ //"')
00:00:08 #222 [Verbose] > elif depth = 3
00:00:08 #223 [Verbose] > then !\($'"{{{ //"')
00:00:08 #224 [Verbose] > elif depth = 4
00:00:08 #225 [Verbose] > then !\($'"{{{{ //"')
00:00:08 #226 [Verbose] > elif depth = 5
00:00:08 #227 [Verbose] > then !\($'"{{{{{ //"')
00:00:08 #228 [Verbose] > elif depth = 6
00:00:08 #229 [Verbose] > then !\($'"{{{{{{ //"')
00:00:08 #230 [Verbose] > elif depth = 7
00:00:08 #231 [Verbose] > then !\($'"{{{{{{{ //"')
00:00:08 #232 [Verbose] > elif depth = 8
00:00:08 #233 [Verbose] > then !\($'"{{{{{{{{ //"')
00:00:08 #234 [Verbose] >
00:00:08 #235 [Verbose] > ╭─[ 220.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:08 #236 [Verbose] > │ () │
00:00:08 #237 [Verbose] > │ │
00:00:08 #238 [Verbose] > │ │
00:00:08 #239 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #240 [Verbose] > [NbConvertApp] Converting notebook rust.dib.ipynb to html
00:00:10 #241 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:10 #242 [Verbose] > validate(nb)
00:00:11 #243 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:11 #244 [Verbose] > return _pygments_highlight(
00:00:11 #245 [Verbose] > [NbConvertApp] Writing 304811 bytes to rust.dib.html
00:00:12 #246 [Debug] executeAsync / exitCode: 0 / output.Length: 9675
00:00:12 #247 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 physics.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:02 #3 [Verbose] >
00:00:02 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:02 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:02 #6 [Verbose] > │ # physics │
00:00:02 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:02 #8 [Verbose] >
00:00:02 #9 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:02 #10 [Verbose] > #!import ../../lib/fsharp/Plotting.dib
00:00:02 #11 [Verbose] >
00:00:02 #12 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:02 #13 [Verbose] > #r
00:00:02 #14 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
00:00:02 #15 [Verbose] > spNetCore.Html.Abstractions.dll"
00:00:02 #16 [Verbose] > #r
00:00:02 #17 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:02 #18 [Verbose] > otNet.Interactive.dll"
00:00:02 #19 [Verbose] > #r
00:00:02 #20 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:02 #21 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:02 #22 [Verbose] > #r
00:00:02 #23 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:02 #24 [Verbose] > otNet.Interactive.Formatting.dll"
00:00:02 #25 [Verbose] > open System
00:00:02 #26 [Verbose] > open System.IO
00:00:02 #27 [Verbose] > open System.Text
00:00:02 #28 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:06 #29 [Verbose] >
00:00:06 #30 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:06 #31 [Verbose] > #r
00:00:06 #32 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:06 #33 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:06 #34 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:06 #35 [Verbose] > #r
00:00:06 #36 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:06 #37 [Verbose] > otNet.Interactive.dll"
00:00:06 #38 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:07 #39 [Verbose] >
00:00:07 #40 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #41 [Verbose] > //// test
00:00:07 #42 [Verbose] >
00:00:07 #43 [Verbose] > Formatter.ListExpansionLimit <- 100
00:00:07 #44 [Verbose] >
00:00:07 #45 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #46 [Verbose] > #r
00:00:07 #47 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:07 #48 [Verbose] > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:07 #49 [Verbose] > #r
00:00:07 #50 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:07 #51 [Verbose] > 0/System.Reactive.dll"
00:00:07 #52 [Verbose] > #r
00:00:07 #53 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:07 #54 [Verbose] > netstandard2.0/System.Reactive.Linq.dll"
00:00:07 #55 [Verbose] > #r
00:00:07 #56 [Verbose] > @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
00:00:07 #57 [Verbose] > #r
00:00:07 #58 [Verbose] > @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
00:00:07 #59 [Verbose] > b/net6.0/System.CommandLine.dll"
00:00:07 #60 [Verbose] > #r
00:00:07 #61 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
00:00:07 #62 [Verbose] > rp.Json.dll"
00:00:07 #63 [Verbose] >
00:00:07 #64 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #65 [Verbose] > type [[<Struct>]] US0 =
00:00:07 #66 [Verbose] > | US0_0
00:00:07 #67 [Verbose] > | US0_1
00:00:07 #68 [Verbose] > and [[<Struct>]] US1 =
00:00:07 #69 [Verbose] > | US1_0
00:00:07 #70 [Verbose] > | US1_1 of f1_0 : US0
00:00:07 #71 [Verbose] > let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
00:00:07 #72 [Verbose] > v0
00:00:07 #73 [Verbose] > and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
00:00:07 #74 [Verbose] > let mutable result = None
00:00:07 #75 [Verbose] > #if FABLE_COMPILER_RUST && !WASM
00:00:07 #76 [Verbose] > let v1 : (unit -> unit) = method0(v0)
00:00:07 #77 [Verbose] > let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
00:00:07 #78 [Verbose] > () = Fable.Core.RustInterop.emitRustExpr () "v1()" }
00:00:07 #79 [Verbose] > v2
00:00:07 #80 [Verbose] > #endif
00:00:07 #81 [Verbose] > #if FABLE_COMPILER_RUST && WASM
00:00:07 #82 [Verbose] > let v3 : (unit -> unit) = method0(v0)
00:00:07 #83 [Verbose] > let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
00:00:07 #84 [Verbose] > () = Fable.Core.RustInterop.emitRustExpr () "v3()" }
00:00:07 #85 [Verbose] > v4
00:00:07 #86 [Verbose] > #endif
00:00:07 #87 [Verbose] > #if !FABLE_COMPILER && !F...
00:00:08 #88 [Verbose] >
00:00:08 #89 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:08 #90 [Verbose] > let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
00:00:08 #91 [Verbose] > let v2 : string = v0.ToString ()
00:00:08 #92 [Verbose] > let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
00:00:08 #93 [Verbose] > let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
00:00:08 #94 [Verbose] > v4
00:00:08 #95 [Verbose] > and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
00:00:08 #96 [Verbose] > closure1(v0)
00:00:08 #97 [Verbose] > and closure5 (v0 : string, v1 : string) (v2 : string) : string =
00:00:08 #98 [Verbose] > let v3 : string = v2.Replace (v0, v1)
00:00:08 #99 [Verbose] > v3
00:00:08 #100 [Verbose] > and closure4 (v0 : string) (v1 : string) : (string -> string) =
00:00:08 #101 [Verbose] > closure5(v0, v1)
00:00:08 #102 [Verbose] > and closure3 () (v0 : string) : (string -> (string -> string)) =
00:00:08 #103 [Verbose] > closure4(v0)
00:00:08 #104 [Verbose] > and method0 () : (string -> (string -> (string -> string))) =
00:00:08 #105 [Verbose] > closure3()
00:00:08 #106 [Verbose] > and closure2 () (v0 : System.Guid) : System.DateTime =
00:00:08 #107 [Verbose] > ...
00:00:09 #108 [Verbose] >
00:00:09 #109 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #110 [Verbose] > let rec closure0 () () : string =
00:00:09 #111 [Verbose] > let v0 : string =
00:00:09 #112 [Verbose] > System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:00:09 #113 [Verbose] > let v1 : (unit -> string) = System.IO.Path.GetTempPath
00:00:09 #114 [Verbose] > let v2 : string = v1 ()
00:00:09 #115 [Verbose] > let v3 : string = $"{v0}"
00:00:09 #116 [Verbose] > let v4 : string = System.IO.Path.Combine (v2, v3)
00:00:09 #117 [Verbose] > let v5 : System.DateTime = System.DateTime.Now
00:00:09 #118 [Verbose] > let v6 : System.Guid = System.Guid.NewGuid ()
00:00:09 #119 [Verbose] > let v7 : string = v6.ToString ()
00:00:09 #120 [Verbose] > let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
00:00:09 #121 [Verbose] > let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
00:00:09 #122 [Verbose] > let v10 : string = v9.ToString ()
00:00:09 #123 [Verbose] > let v11 : string = System.IO.Path.Combine (v4, v10)
00:00:09 #124 [Verbose] > v11
00:00:09 #125 [Verbose] > let v0 : (unit -> string) = closure0()
00:00:09 #126 [Verbose] > let create_temp_directory_name x = v0 x
00:00:09 #127 [Verbose] > ()
00:00:09 #128 [Verbose] >
00:00:09 #129 [Verbose] >
00:00:09 #130 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #131 [Verbose] > #if !INTERACTIVE
00:00:09 #132 [Verbose] > namespace Polyglot
00:00:09 #133 [Verbose] > #endif
00:00:09 #134 [Verbose] >
00:00:09 #135 [Verbose] > module Common =
00:00:09 #136 [Verbose] >
00:00:09 #137 [Verbose] > #if !WASM && !FABLE_COMPILER
00:00:09 #138 [Verbose] > let Date_time = {|
00:00:09 #139 [Verbose] > new_guid_from_date_time =
00:00:09 #140 [Verbose] > #if !INTERACTIVE
00:00:09 #141 [Verbose] > Date_time.new_guid_from_date_time
00:00:09 #142 [Verbose] > #else
00:00:09 #143 [Verbose] > new_guid_from_date_time
00:00:09 #144 [Verbose] > #endif
00:00:09 #145 [Verbose] > |}
00:00:09 #146 [Verbose] > #endif
00:00:09 #147 [Verbose] >
00:00:09 #148 [Verbose] > let nl = System.Environment.NewLine
00:00:09 #149 [Verbose] > let q = @""""
00:00:09 #150 [Verbose] >
00:00:09 #151 [Verbose] > let inline cons head tail = head :: tail
00:00:09 #152 [Verbose] >
00:00:09 #153 [Verbose] > module String =
00:00:09 #154 [Verbose] > let inline contains (value : string) (input : string) =
00:00:09 #155 [Verbose] > input.Contains value
00:00:09 #156 [Verbose] >
00:00:09 #157 [Verbose] > let inline endsWith (value : string) (input : string) =
00:00:09 #158 [Verbose] > input.EndsWith value
00:00:09 #159 [Verbose] >
00:00:09 #160 [Verbose] > let inline padLeft totalWidth paddingChar (input : string) =
00:00:09 #161 [Verbose] > input.PadLeft (totalWidth, paddingChar)
00:00:09 #162 [Verbose] >
00:00:09 #163 [Verbose] > let inline replace (oldVa...
00:00:09 #164 [Verbose] >
00:00:09 #165 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #166 [Verbose] > #if !INTERACTIVE
00:00:09 #167 [Verbose] > namespace Polyglot
00:00:09 #168 [Verbose] > #endif
00:00:09 #169 [Verbose] >
00:00:09 #170 [Verbose] > module CommonFSharp =
00:00:09 #171 [Verbose] >
00:00:09 #172 [Verbose] > open Common
00:00:09 #173 [Verbose] >
00:00:09 #174 [Verbose] > /// ## getUnionCaseName
00:00:09 #175 [Verbose] >
00:00:09 #176 [Verbose] > let inline getUnionCaseName<'T> (x: 'T) =
00:00:09 #177 [Verbose] > match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:00:09 #178 [Verbose] > | case, _ -> case.Name
00:00:09 #179 [Verbose] >
00:00:09 #180 [Verbose] >
00:00:09 #181 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #182 [Verbose] > #if !INTERACTIVE
00:00:09 #183 [Verbose] > namespace Polyglot
00:00:09 #184 [Verbose] > #endif
00:00:09 #185 [Verbose] >
00:00:09 #186 [Verbose] > module Crypto =
00:00:09 #187 [Verbose] >
00:00:09 #188 [Verbose] > open Common
00:00:09 #189 [Verbose] >
00:00:09 #190 [Verbose] > /// ## hashText
00:00:09 #191 [Verbose] >
00:00:09 #192 [Verbose] > let hashText (input : string) =
00:00:09 #193 [Verbose] > use sha256 = System.Security.Cryptography.SHA256.Create ()
00:00:09 #194 [Verbose] > input
00:00:09 #195 [Verbose] > |> System.Text.Encoding.UTF8.GetBytes
00:00:09 #196 [Verbose] > |> sha256.ComputeHash
00:00:09 #197 [Verbose] > |> Array.map (fun b -> b.ToString "x2")
00:00:09 #198 [Verbose] > |> String.concat ""
00:00:09 #199 [Verbose] >
00:00:09 #200 [Verbose] >
00:00:09 #201 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #202 [Verbose] > #if !INTERACTIVE
00:00:09 #203 [Verbose] > namespace Polyglot
00:00:09 #204 [Verbose] > #endif
00:00:09 #205 [Verbose] >
00:00:09 #206 [Verbose] > module Async =
00:00:09 #207 [Verbose] >
00:00:09 #208 [Verbose] > open Common
00:00:09 #209 [Verbose] >
00:00:09 #210 [Verbose] > /// ## choice
00:00:09 #211 [Verbose] >
00:00:09 #212 [Verbose] > let inline choice asyncs = async {
00:00:09 #213 [Verbose] > let e = Event<_> ()
00:00:09 #214 [Verbose] > use cts = new System.Threading.CancellationTokenSource ()
00:00:09 #215 [Verbose] > let fn =
00:00:09 #216 [Verbose] > asyncs
00:00:09 #217 [Verbose] > |> Seq.map (fun a -> async {
00:00:09 #218 [Verbose] > let! x = a
00:00:09 #219 [Verbose] > e.Trigger x
00:00:09 #220 [Verbose] > })
00:00:09 #221 [Verbose] > |> Async.Parallel
00:00:09 #222 [Verbose] > |> Async.Ignore
00:00:09 #223 [Verbose] > Async.Start (fn, cts.Token)
00:00:09 #224 [Verbose] > let! result = Async.AwaitEvent e.Publish
00:00:09 #225 [Verbose] > cts.Cancel ()
00:00:09 #226 [Verbose] > return result
00:00:09 #227 [Verbose] > }
00:00:09 #228 [Verbose] >
00:00:09 #229 [Verbose] > /// ## map
00:00:09 #230 [Verbose] >
00:00:09 #231 [Verbose] > let inline map fn a = async {
00:00:09 #232 [Verbose] > let! x = a
00:00:09 #233 [Verbose] > return fn x
00:00:09 #234 [Verbose] > }
00:00:09 #235 [Verbose] >
00:00:09 #236 [Verbose] > /// ## catch
00:00:09 #237 [Verbose] >
00:00:09 #238 [Verbose] > let inline catch a =
00:00:09 #239 [Verbose] > a
00:00:09 #240 [Verbose] > |> Async.Catch
00:00:09 #241 [Verbose] > ...
00:00:10 #242 [Verbose] >
00:00:10 #243 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:10 #244 [Verbose] > #if !INTERACTIVE
00:00:10 #245 [Verbose] > namespace Polyglot
00:00:10 #246 [Verbose] > #endif
00:00:10 #247 [Verbose] >
00:00:10 #248 [Verbose] > module AsyncSeq =
00:00:10 #249 [Verbose] >
00:00:10 #250 [Verbose] > open Common
00:00:10 #251 [Verbose] >
00:00:10 #252 [Verbose] > /// ## subscribeEvent
00:00:10 #253 [Verbose] >
00:00:10 #254 [Verbose] > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:00:10 #255 [Verbose] > let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:00:10 #256 [Verbose] > 'A>(event.AddHandler, event.RemoveHandler)
00:00:10 #257 [Verbose] > System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:00:10 #258 [Verbose] > event.EventArgs)
00:00:10 #259 [Verbose] > |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:00:10 #260 [Verbose] >
00:00:10 #261 [Verbose] > let subscribeToken (token : System.Threading.CancellationToken) =
00:00:10 #262 [Verbose] > let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:00:10 #263 [Verbose] > System.Action tcs.SetResult |> token.Register |> ignore
00:00:10 #264 [Verbose] > let start = System.DateTime.Now.Ticks
00:00:10 #265 [Verbose] > FSharp.Control.AsyncSeq.unfoldAsync
00:00:10 #266 [Verbose] > (fun (...
00:00:10 #267 [Verbose] >
00:00:10 #268 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:10 #269 [Verbose] > #if !INTERACTIVE
00:00:10 #270 [Verbose] > namespace Polyglot
00:00:10 #271 [Verbose] > #endif
00:00:10 #272 [Verbose] >
00:00:10 #273 [Verbose] > module Networking =
00:00:10 #274 [Verbose] >
00:00:10 #275 [Verbose] > open Common
00:00:10 #276 [Verbose] >
00:00:10 #277 [Verbose] > /// ## testPortOpen
00:00:10 #278 [Verbose] >
00:00:10 #279 [Verbose] > let inline testPortOpen port = async {
00:00:10 #280 [Verbose] > let! ct = Async.CancellationToken
00:00:10 #281 [Verbose] > use client = new System.Net.Sockets.TcpClient ()
00:00:10 #282 [Verbose] > try
00:00:10 #283 [Verbose] > do! client.ConnectAsync ("127.0.0.1", port, ct) |>
00:00:10 #284 [Verbose] > Async.awaitValueTaskUnit
00:00:10 #285 [Verbose] > return true
00:00:10 #286 [Verbose] > with ex ->
00:00:10 #287 [Verbose] > trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
00:00:10 #288 [Verbose] > formatException}") getLocals
00:00:10 #289 [Verbose] > return false
00:00:10 #290 [Verbose] > }
00:00:10 #291 [Verbose] >
00:00:10 #292 [Verbose] > let inline testPortOpenTimeout timeout port = async {
00:00:10 #293 [Verbose] > let! result =
00:00:10 #294 [Verbose] > testPortOpen port
00:00:10 #295 [Verbose] > |> Async.runWithTimeoutAsync timeout
00:00:10 #296 [Verbose] > return
00:00:10 #297 [Verbose] > match result with
00:00:10 #298 [Verbose] > | None -> false
00:00:10 #299 [Verbose] > ...
00:00:11 #300 [Verbose] >
00:00:11 #301 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:11 #302 [Verbose] > #if !INTERACTIVE
00:00:11 #303 [Verbose] > namespace Polyglot
00:00:11 #304 [Verbose] > #endif
00:00:11 #305 [Verbose] >
00:00:11 #306 [Verbose] > module Runtime =
00:00:11 #307 [Verbose] >
00:00:11 #308 [Verbose] > open Common
00:00:11 #309 [Verbose] >
00:00:11 #310 [Verbose] > /// ## isWindows
00:00:11 #311 [Verbose] >
00:00:11 #312 [Verbose] > let isWindows =
00:00:11 #313 [Verbose] > fun () ->
00:00:11 #314 [Verbose] > System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
00:00:11 #315 [Verbose] > System.Runtime.InteropServices.OSPlatform.Windows
00:00:11 #316 [Verbose] > |> memoize
00:00:11 #317 [Verbose] >
00:00:11 #318 [Verbose] > /// ## getExecutableSuffix
00:00:11 #319 [Verbose] >
00:00:11 #320 [Verbose] > let inline getExecutableSuffix () =
00:00:11 #321 [Verbose] > if isWindows ()
00:00:11 #322 [Verbose] > then ".exe"
00:00:11 #323 [Verbose] > else ""
00:00:11 #324 [Verbose] >
00:00:11 #325 [Verbose] > /// ## splitCommand
00:00:11 #326 [Verbose] >
00:00:11 #327 [Verbose] > type private CommandParseStep =
00:00:11 #328 [Verbose] > | Start
00:00:11 #329 [Verbose] > | Path of quoted: bool
00:00:11 #330 [Verbose] > | Arguments
00:00:11 #331 [Verbose] >
00:00:11 #332 [Verbose] > let splitCommand (command: string) =
00:00:11 #333 [Verbose] > let rec loop (path, args) chars step =
00:00:11 #334 [Verbose] > match chars, step with
00:00:11 #335 [Verbose] > | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
00:00:12 #336 [Verbose] >
00:00:12 #337 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:12 #338 [Verbose] > #if !INTERACTIVE
00:00:12 #339 [Verbose] > namespace Polyglot
00:00:12 #340 [Verbose] > #endif
00:00:12 #341 [Verbose] >
00:00:12 #342 [Verbose] > module FileSystem =
00:00:12 #343 [Verbose] >
00:00:12 #344 [Verbose] > let File_system = {|
00:00:12 #345 [Verbose] > create_temp_directory_name =
00:00:12 #346 [Verbose] > #if !INTERACTIVE
00:00:12 #347 [Verbose] > File_system.create_temp_directory_name
00:00:12 #348 [Verbose] > #else
00:00:12 #349 [Verbose] > create_temp_directory_name
00:00:12 #350 [Verbose] > #endif
00:00:12 #351 [Verbose] > |}
00:00:12 #352 [Verbose] >
00:00:12 #353 [Verbose] > open Common
00:00:12 #354 [Verbose] >
00:00:12 #355 [Verbose] > /// ## Operators
00:00:12 #356 [Verbose] >
00:00:12 #357 [Verbose] > module Operators =
00:00:12 #358 [Verbose] > let inline (</>) a b =
00:00:12 #359 [Verbose] > System.IO.Path.Combine (a, b)
00:00:12 #360 [Verbose] >
00:00:12 #361 [Verbose] > open Operators
00:00:12 #362 [Verbose] >
00:00:12 #363 [Verbose] > /// ## createTempDirectory
00:00:12 #364 [Verbose] >
00:00:12 #365 [Verbose] > let inline createTempDirectory () =
00:00:12 #366 [Verbose] > let tempFolder = File_system.create_temp_directory_name ()
00:00:12 #367 [Verbose] > let result = System.IO.Directory.CreateDirectory tempFolder
00:00:12 #368 [Verbose] >
00:00:12 #369 [Verbose] > if not result.Exists then
00:00:12 #370 [Verbose] > let getLocals () =
00:00:12 #371 [Verbose] > $"tempFolder: {tempFolder} / result: {({|
00:00:12 #372 [Verbose] > ...
00:00:18 #373 [Verbose] >
00:00:18 #374 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:18 #375 [Verbose] > open Common
00:00:18 #376 [Verbose] > open FileSystem.Operators
00:00:18 #377 [Verbose] >
00:00:18 #378 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:18 #379 [Verbose] > let tmpSpiralPath = Path.GetTempPath () </> "!dotnet-interactive-spiral"
00:00:18 #380 [Verbose] > let linePlotsDataPath = tmpSpiralPath </> "line-plots-data"
00:00:18 #381 [Verbose] > let linePlotsSvgPath = tmpSpiralPath </> "line-plots-svg"
00:00:18 #382 [Verbose] >
00:00:18 #383 [Verbose] > [[ tmpSpiralPath; linePlotsDataPath; linePlotsSvgPath ]]
00:00:18 #384 [Verbose] > |> List.iter (fun dir -> if Directory.Exists dir |> not then
00:00:18 #385 [Verbose] > Directory.CreateDirectory dir |> ignore)
00:00:18 #386 [Verbose] >
00:00:18 #387 [Verbose] > Formatter.Register<struct (string * string * string * struct (string * float
00:00:18 #388 [Verbose] > array * float array) array)> (
00:00:18 #389 [Verbose] > (fun struct (caption, x_desc, y_desc, ys) ->
00:00:18 #390 [Verbose] > let json = (caption, x_desc, y_desc, ys) |> FSharp.Json.Json.serialize
00:00:18 #391 [Verbose] > async {
00:00:18 #392 [Verbose] > let hashHex = json |> Crypto.hashText
00:00:18 #393 [Verbose] > let svgPath = linePlotsSvgPath </> $"{hashHex}.svg"
00:00:18 #394 [Verbose] >
00:00:18 #395 [Verbose] > if System.IO.File.Exi...
00:00:20 #396 [Verbose] >
00:00:20 #397 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #398 [Verbose] > // // test
00:00:20 #399 [Verbose] >
00:00:20 #400 [Verbose] > open testing
00:00:22 #401 [Verbose] >
00:00:22 #402 [Verbose] > ╭─[ 2.78s - stdout ]───────────────────────────────────────────────────────────╮
00:00:22 #403 [Verbose] > │ () │
00:00:22 #404 [Verbose] > │ │
00:00:22 #405 [Verbose] > │ │
00:00:22 #406 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #407 [Verbose] >
00:00:22 #408 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #409 [Verbose] > open listm'_operators
00:00:23 #410 [Verbose] >
00:00:23 #411 [Verbose] > ╭─[ 255.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #412 [Verbose] > │ () │
00:00:23 #413 [Verbose] > │ │
00:00:23 #414 [Verbose] > │ │
00:00:23 #415 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #416 [Verbose] >
00:00:23 #417 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #418 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #419 [Verbose] > │ ## init_series │
00:00:23 #420 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #421 [Verbose] >
00:00:23 #422 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #423 [Verbose] > // // test
00:00:23 #424 [Verbose] >
00:00:23 #425 [Verbose] > inl x : a _ f64 = am'.init_series -3 3 0.01
00:00:23 #426 [Verbose] > inl y = x |> am.map math.square
00:00:23 #427 [Verbose] > "square", "x", "y", ;[[ "square", x, y ]]
00:00:23 #428 [Verbose] >
00:00:23 #429 [Verbose] > ╭─[ 411.29ms - return value ]──────────────────────────────────────────────────╮
00:00:23 #430 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:23 #431 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:23 #432 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:23 #433 [Verbose] > │ stroke="none"/> │
00:00:23 #434 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:23 #435 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:23 #436 [Verbose] > │ fill="#FFFFFF"> │
00:00:23 #437 [Verbose] > │ square │
00:00:23 #438 [Verbose] > │ </text> │
00:00:23 #439 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:23 #440 [Verbose] > │ y2="75"/> │
00:00:23 #441 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:23 #442 [Verbose] > │ y2="75"/> │
00:00:23 #443 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:23 #444 [Verbose] > │ y2="75"/> │
00:00:23 #445 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:23 #446 [Verbose] > │ y2="75"/> │
00:00:23 #447 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:23 #448 [Verbose] > │ ... │
00:00:23 #449 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #450 [Verbose] >
00:00:23 #451 [Verbose] > ╭─[ 437.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #452 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:23 #453 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:23 #454 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:23 #455 [Verbose] > │ let v2 : bool = v1 < 601 │
00:00:23 #456 [Verbose] > │ v2 │
00:00:23 #457 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:23 #458 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:23 #459 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:23 #460 [Verbose] > │ v3 │
00:00:23 #461 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:23 #462 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:23 #463 [Verbose] > │ v0 │
00:00:23 #464 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:23 #465 [Verbose] > │ []) * (float [])) [])) = │
00:00:23 #466 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (601) │
00:00:23 #467 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #468 [Verbose] > │ while method1(v1) do │
00:00:23 #469 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:23 #470 [Verbose] > │ let v4 : float = float v3 │
00:00:23 #471 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:23 #472 [Verbose] > │ let v6 : float = -3.0 + v5 │
00:00:23 #473 [Verbose] > │ v0.[int v3] <- v6 │
00:00:23 #474 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:23 #475 [Verbose] > │ v1.l0 <- v7 │
00:00:23 #476 [Verbose] > │ () │
00:00:23 #477 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:23 #478 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:23 #479 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #480 [Verbose] > │ while method2(v8, v10) do │
00:00:23 #481 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:23 #482 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:23 #483 [Verbose] > │ let v14 : float = v13 ** 2.0 │
00:00:23 #484 [Verbose] > │ v9.[int v12] <- v14 │
00:00:23 #485 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:23 #486 [Verbose] > │ v10.l0 <- v15 │
00:00:23 #487 [Verbose] > │ () │
00:00:23 #488 [Verbose] > │ let v16 : string = "square" │
00:00:23 #489 [Verbose] > │ let v17 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:23 #490 [Verbose] > │ (v16, v0, v9)|] │
00:00:23 #491 [Verbose] > │ let v18 : (struct (string * (float []) * (float [])) []) = method3(v17) │
00:00:23 #492 [Verbose] > │ let v19 : string = "x" │
00:00:23 #493 [Verbose] > │ let v20 : string = "y" │
00:00:23 #494 [Verbose] > │ struct (v16, v19, v20, v18) │
00:00:23 #495 [Verbose] > │ method0() │
00:00:23 #496 [Verbose] > │ │
00:00:23 #497 [Verbose] > │ │
00:00:23 #498 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #499 [Verbose] >
00:00:23 #500 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #501 [Verbose] > // // test
00:00:23 #502 [Verbose] >
00:00:23 #503 [Verbose] > inl x : a _ f64 = am'.init_series -10 10 0.1
00:00:23 #504 [Verbose] > inl y_sin = x |> am.map sin
00:00:23 #505 [Verbose] > inl y_cos = x |> am.map cos
00:00:23 #506 [Verbose] > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:00:23 #507 [Verbose] >
00:00:23 #508 [Verbose] > ╭─[ 324.20ms - return value ]──────────────────────────────────────────────────╮
00:00:23 #509 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:23 #510 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:23 #511 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:23 #512 [Verbose] > │ stroke="none"/> │
00:00:23 #513 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:23 #514 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:23 #515 [Verbose] > │ fill="#FFFFFF"> │
00:00:23 #516 [Verbose] > │ sin cos │
00:00:23 #517 [Verbose] > │ </text> │
00:00:23 #518 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:00:23 #519 [Verbose] > │ y2="75"/> │
00:00:23 #520 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:23 #521 [Verbose] > │ y2="75"/> │
00:00:23 #522 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:00:23 #523 [Verbose] > │ y2="75"/> │
00:00:23 #524 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:23 #525 [Verbose] > │ y2="75"/> │
00:00:23 #526 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424" │
00:00:23 #527 [Verbose] > │ x2="10... │
00:00:23 #528 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #529 [Verbose] >
00:00:23 #530 [Verbose] > ╭─[ 336.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #531 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:23 #532 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:23 #533 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:23 #534 [Verbose] > │ let v2 : bool = v1 < 201 │
00:00:23 #535 [Verbose] > │ v2 │
00:00:23 #536 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:23 #537 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:23 #538 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:23 #539 [Verbose] > │ v3 │
00:00:23 #540 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:23 #541 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:23 #542 [Verbose] > │ v0 │
00:00:23 #543 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:23 #544 [Verbose] > │ []) * (float [])) [])) = │
00:00:23 #545 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (201) │
00:00:23 #546 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #547 [Verbose] > │ while method1(v1) do │
00:00:23 #548 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:23 #549 [Verbose] > │ let v4 : float = float v3 │
00:00:23 #550 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:23 #551 [Verbose] > │ let v6 : float = -10.0 + v5 │
00:00:23 #552 [Verbose] > │ v0.[int v3] <- v6 │
00:00:23 #553 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:23 #554 [Verbose] > │ v1.l0 <- v7 │
00:00:23 #555 [Verbose] > │ () │
00:00:23 #556 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:23 #557 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:23 #558 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #559 [Verbose] > │ while method2(v8, v10) do │
00:00:23 #560 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:23 #561 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:23 #562 [Verbose] > │ let v14 : float = sin v13 │
00:00:23 #563 [Verbose] > │ v9.[int v12] <- v14 │
00:00:23 #564 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:23 #565 [Verbose] > │ v10.l0 <- v15 │
00:00:23 #566 [Verbose] > │ () │
00:00:23 #567 [Verbose] > │ let v16 : (float []) = Array.zeroCreate<float> (v8) │
00:00:23 #568 [Verbose] > │ let v17 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #569 [Verbose] > │ while method2(v8, v17) do │
00:00:23 #570 [Verbose] > │ let v19 : int32 = v17.l0 │
00:00:23 #571 [Verbose] > │ let v20 : float = v0.[int v19] │
00:00:23 #572 [Verbose] > │ let v21 : float = cos v20 │
00:00:23 #573 [Verbose] > │ v16.[int v19] <- v21 │
00:00:23 #574 [Verbose] > │ let v22 : int32 = v19 + 1 │
00:00:23 #575 [Verbose] > │ v17.l0 <- v22 │
00:00:23 #576 [Verbose] > │ () │
00:00:23 #577 [Verbose] > │ let v23 : string = "sin" │
00:00:23 #578 [Verbose] > │ let v24 : string = "cos" │
00:00:23 #579 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:23 #580 [Verbose] > │ (v23, v0, v9); struct (v24, v0, v16)|] │
00:00:23 #581 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method3(v25) │
00:00:23 #582 [Verbose] > │ let v27 : string = "sin cos" │
00:00:23 #583 [Verbose] > │ let v28 : string = "x" │
00:00:23 #584 [Verbose] > │ let v29 : string = "y" │
00:00:23 #585 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:23 #586 [Verbose] > │ method0() │
00:00:23 #587 [Verbose] > │ │
00:00:23 #588 [Verbose] > │ │
00:00:23 #589 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #590 [Verbose] >
00:00:23 #591 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #592 [Verbose] > // // test
00:00:23 #593 [Verbose] >
00:00:23 #594 [Verbose] > inl y_pos y0 vy0 ay t =
00:00:23 #595 [Verbose] > y0 + vy0 * t + ay * (t |> math.square) / 2
00:00:23 #596 [Verbose] >
00:00:23 #597 [Verbose] > inl x : a _ f64 = am'.init_series 0 5 0.01
00:00:23 #598 [Verbose] > inl y = x |> am.map (y_pos 0 20 -9.8)
00:00:23 #599 [Verbose] > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:00:24 #600 [Verbose] >
00:00:24 #601 [Verbose] > ╭─[ 417.02ms - return value ]──────────────────────────────────────────────────╮
00:00:24 #602 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:24 #603 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:24 #604 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:24 #605 [Verbose] > │ stroke="none"/> │
00:00:24 #606 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:24 #607 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:24 #608 [Verbose] > │ fill="#FFFFFF"> │
00:00:24 #609 [Verbose] > │ projectile motion │
00:00:24 #610 [Verbose] > │ </text> │
00:00:24 #611 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:24 #612 [Verbose] > │ y2="75"/> │
00:00:24 #613 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:24 #614 [Verbose] > │ y2="75"/> │
00:00:24 #615 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:24 #616 [Verbose] > │ y2="75"/> │
00:00:24 #617 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:24 #618 [Verbose] > │ y2="75"/> │
00:00:24 #619 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="42... │
00:00:24 #620 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #621 [Verbose] >
00:00:24 #622 [Verbose] > ╭─[ 434.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #623 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:24 #624 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:24 #625 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:24 #626 [Verbose] > │ let v2 : bool = v1 < 501 │
00:00:24 #627 [Verbose] > │ v2 │
00:00:24 #628 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:24 #629 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:24 #630 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:24 #631 [Verbose] > │ v3 │
00:00:24 #632 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:24 #633 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:24 #634 [Verbose] > │ v0 │
00:00:24 #635 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:24 #636 [Verbose] > │ []) * (float [])) [])) = │
00:00:24 #637 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (501) │
00:00:24 #638 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:24 #639 [Verbose] > │ while method1(v1) do │
00:00:24 #640 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:24 #641 [Verbose] > │ let v4 : float = float v3 │
00:00:24 #642 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:24 #643 [Verbose] > │ v0.[int v3] <- v5 │
00:00:24 #644 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:24 #645 [Verbose] > │ v1.l0 <- v6 │
00:00:24 #646 [Verbose] > │ () │
00:00:24 #647 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:24 #648 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:24 #649 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:24 #650 [Verbose] > │ while method2(v7, v9) do │
00:00:24 #651 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:24 #652 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:24 #653 [Verbose] > │ let v13 : float = 20.0 * v12 │
00:00:24 #654 [Verbose] > │ let v14 : float = v12 ** 2.0 │
00:00:24 #655 [Verbose] > │ let v15 : float = -9.8 * v14 │
00:00:24 #656 [Verbose] > │ let v16 : float = v15 / 2.0 │
00:00:24 #657 [Verbose] > │ let v17 : float = v13 + v16 │
00:00:24 #658 [Verbose] > │ v8.[int v11] <- v17 │
00:00:24 #659 [Verbose] > │ let v18 : int32 = v11 + 1 │
00:00:24 #660 [Verbose] > │ v9.l0 <- v18 │
00:00:24 #661 [Verbose] > │ () │
00:00:24 #662 [Verbose] > │ let v19 : string = "height of projectile (m)" │
00:00:24 #663 [Verbose] > │ let v20 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:24 #664 [Verbose] > │ (v19, v0, v8)|] │
00:00:24 #665 [Verbose] > │ let v21 : (struct (string * (float []) * (float [])) []) = method3(v20) │
00:00:24 #666 [Verbose] > │ let v22 : string = "projectile motion" │
00:00:24 #667 [Verbose] > │ let v23 : string = "time (s)" │
00:00:24 #668 [Verbose] > │ let v24 : string = "" │
00:00:24 #669 [Verbose] > │ struct (v22, v23, v24, v21) │
00:00:24 #670 [Verbose] > │ method0() │
00:00:24 #671 [Verbose] > │ │
00:00:24 #672 [Verbose] > │ │
00:00:24 #673 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #674 [Verbose] >
00:00:24 #675 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #676 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #677 [Verbose] > │ ## velocity_cf │
00:00:24 #678 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #679 [Verbose] >
00:00:24 #680 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #681 [Verbose] > type mass = f64
00:00:24 #682 [Verbose] > type time = f64
00:00:24 #683 [Verbose] > type position = f64
00:00:24 #684 [Verbose] > type velocity = f64
00:00:24 #685 [Verbose] > type force = f64
00:00:24 #686 [Verbose] >
00:00:24 #687 [Verbose] > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:00:24 #688 [Verbose] >
00:00:24 #689 [Verbose] > inl velocity_cf m v0 fs =
00:00:24 #690 [Verbose] > inl f_net = fs |> listm'.sum
00:00:24 #691 [Verbose] > inl a0 = f_net / m
00:00:24 #692 [Verbose] > inl v t = v0 + a0 * t
00:00:24 #693 [Verbose] > v
00:00:24 #694 [Verbose] >
00:00:24 #695 [Verbose] > ╭─[ 290.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #696 [Verbose] > │ () │
00:00:24 #697 [Verbose] > │ │
00:00:24 #698 [Verbose] > │ │
00:00:24 #699 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #700 [Verbose] >
00:00:24 #701 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #702 [Verbose] > // // test
00:00:24 #703 [Verbose] >
00:00:24 #704 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:00:24 #705 [Verbose] > |> _assert_eq 0.6
00:00:24 #706 [Verbose] >
00:00:24 #707 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:00:24 #708 [Verbose] > |> _assert_eq 0.2
00:00:25 #709 [Verbose] >
00:00:25 #710 [Verbose] > ╭─[ 431.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #711 [Verbose] > │ let rec method0 () : unit = │
00:00:25 #712 [Verbose] > │ let v0 : string = $"%A{0.6}" │
00:00:25 #713 [Verbose] > │ System.Console.WriteLine v0 │
00:00:25 #714 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.6} / expected: %A{0.6}" │
00:00:25 #715 [Verbose] > │ let v2 : string = $"%A{0.2}" │
00:00:25 #716 [Verbose] > │ System.Console.WriteLine v2 │
00:00:25 #717 [Verbose] > │ let v3 : string = $"__expect / actual: %A{0.2} / expected: %A{0.2}" │
00:00:25 #718 [Verbose] > │ () │
00:00:25 #719 [Verbose] > │ method0() │
00:00:25 #720 [Verbose] > │ │
00:00:25 #721 [Verbose] > │ 0.6 │
00:00:25 #722 [Verbose] > │ 0.2 │
00:00:25 #723 [Verbose] > │ │
00:00:25 #724 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #725 [Verbose] >
00:00:25 #726 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #727 [Verbose] > // // test
00:00:25 #728 [Verbose] >
00:00:25 #729 [Verbose] > inl x = am'.init_series 0 4 0.1
00:00:25 #730 [Verbose] > inl y = x |> am.map (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:00:25 #731 [Verbose] > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:00:25 #732 [Verbose] >
00:00:25 #733 [Verbose] > ╭─[ 408.05ms - return value ]──────────────────────────────────────────────────╮
00:00:25 #734 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:25 #735 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:25 #736 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:25 #737 [Verbose] > │ stroke="none"/> │
00:00:25 #738 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:25 #739 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:25 #740 [Verbose] > │ fill="#FFFFFF"> │
00:00:25 #741 [Verbose] > │ car on an air track │
00:00:25 #742 [Verbose] > │ </text> │
00:00:25 #743 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:00:25 #744 [Verbose] > │ y2="75"/> │
00:00:25 #745 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:25 #746 [Verbose] > │ y2="75"/> │
00:00:25 #747 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:00:25 #748 [Verbose] > │ y2="75"/> │
00:00:25 #749 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:25 #750 [Verbose] > │ y2="75"/> │
00:00:25 #751 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1=... │
00:00:25 #752 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #753 [Verbose] >
00:00:25 #754 [Verbose] > ╭─[ 431.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #755 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:25 #756 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:25 #757 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:25 #758 [Verbose] > │ let v2 : bool = v1 < 41 │
00:00:25 #759 [Verbose] > │ v2 │
00:00:25 #760 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:25 #761 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:25 #762 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:25 #763 [Verbose] > │ v3 │
00:00:25 #764 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:25 #765 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:25 #766 [Verbose] > │ v0 │
00:00:25 #767 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:25 #768 [Verbose] > │ []) * (float [])) [])) = │
00:00:25 #769 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (41) │
00:00:25 #770 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:25 #771 [Verbose] > │ while method1(v1) do │
00:00:25 #772 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:25 #773 [Verbose] > │ let v4 : float = float v3 │
00:00:25 #774 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:25 #775 [Verbose] > │ v0.[int v3] <- v5 │
00:00:25 #776 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:25 #777 [Verbose] > │ v1.l0 <- v6 │
00:00:25 #778 [Verbose] > │ () │
00:00:25 #779 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:25 #780 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:25 #781 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:25 #782 [Verbose] > │ while method2(v7, v9) do │
00:00:25 #783 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:25 #784 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:25 #785 [Verbose] > │ let v13 : float = -0.39999999999999997 * v12 │
00:00:25 #786 [Verbose] > │ let v14 : float = 0.6 + v13 │
00:00:25 #787 [Verbose] > │ v8.[int v11] <- v14 │
00:00:25 #788 [Verbose] > │ let v15 : int32 = v11 + 1 │
00:00:25 #789 [Verbose] > │ v9.l0 <- v15 │
00:00:25 #790 [Verbose] > │ () │
00:00:25 #791 [Verbose] > │ let v16 : string = "velocity of car (m/s)" │
00:00:25 #792 [Verbose] > │ let v17 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:25 #793 [Verbose] > │ (v16, v0, v8)|] │
00:00:25 #794 [Verbose] > │ let v18 : (struct (string * (float []) * (float [])) []) = method3(v17) │
00:00:25 #795 [Verbose] > │ let v19 : string = "car on an air track" │
00:00:25 #796 [Verbose] > │ let v20 : string = "time (s)" │
00:00:25 #797 [Verbose] > │ let v21 : string = "" │
00:00:25 #798 [Verbose] > │ struct (v19, v20, v21, v18) │
00:00:25 #799 [Verbose] > │ method0() │
00:00:25 #800 [Verbose] > │ │
00:00:25 #801 [Verbose] > │ │
00:00:25 #802 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #803 [Verbose] >
00:00:25 #804 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 #805 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 #806 [Verbose] > │ ## derivative │
00:00:25 #807 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #808 [Verbose] >
00:00:25 #809 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #810 [Verbose] > type derivative = (f64 -> f64) -> f64 -> f64
00:00:25 #811 [Verbose] >
00:00:25 #812 [Verbose] > inl derivative dt : derivative =
00:00:25 #813 [Verbose] > fun x t =>
00:00:25 #814 [Verbose] > (x (t + dt / 2) - x (t - dt / 2)) / dt
00:00:25 #815 [Verbose] >
00:00:25 #816 [Verbose] > ╭─[ 320.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #817 [Verbose] > │ () │
00:00:25 #818 [Verbose] > │ │
00:00:25 #819 [Verbose] > │ │
00:00:25 #820 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #821 [Verbose] >
00:00:25 #822 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #823 [Verbose] > // // test
00:00:25 #824 [Verbose] >
00:00:25 #825 [Verbose] > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #826 [Verbose] > |> _assert_approx_eq None 0.25
00:00:25 #827 [Verbose] >
00:00:25 #828 [Verbose] > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #829 [Verbose] > |> _assert_approx_eq None 0.0000002499998827953931
00:00:25 #830 [Verbose] >
00:00:25 #831 [Verbose] > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #832 [Verbose] > |> _assert_approx_eq None 0.000000000001000088900582341
00:00:25 #833 [Verbose] >
00:00:25 #834 [Verbose] > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #835 [Verbose] > |> _assert_approx_eq None 0.00000008274037099909037
00:00:25 #836 [Verbose] >
00:00:25 #837 [Verbose] > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #838 [Verbose] > |> _assert_approx_eq None 0.00008890058234101161
00:00:25 #839 [Verbose] >
00:00:25 #840 [Verbose] > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #841 [Verbose] > |> _assert_approx_eq None -0.0007992778373592246
00:00:25 #842 [Verbose] >
00:00:25 #843 [Verbose] > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:25 #844 [Verbose] > |> _assert_approx_eq None -1
00:00:26 #845 [Verbose] >
00:00:26 #846 [Verbose] > ╭─[ 915.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #847 [Verbose] > │ let rec method0 () : unit = │
00:00:26 #848 [Verbose] > │ let v0 : string = $"%A{0.25}" │
00:00:26 #849 [Verbose] > │ System.Console.WriteLine v0 │
00:00:26 #850 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.25} / expected: %A{0.25}" │
00:00:26 #851 [Verbose] > │ let v2 : string = $"%A{2.499998827953931E-07}" │
00:00:26 #852 [Verbose] > │ System.Console.WriteLine v2 │
00:00:26 #853 [Verbose] > │ let v3 : string = $"__expect / actual: %A{2.499998827953931E-07} / │
00:00:26 #854 [Verbose] > │ expected: %A{2.499998827953931E-07}" │
00:00:26 #855 [Verbose] > │ let v4 : string = $"%A{1.000088900582341E-12}" │
00:00:26 #856 [Verbose] > │ System.Console.WriteLine v4 │
00:00:26 #857 [Verbose] > │ let v5 : string = $"__expect / actual: %A{1.000088900582341E-12} / │
00:00:26 #858 [Verbose] > │ expected: %A{1.000088900582341E-12}" │
00:00:26 #859 [Verbose] > │ let v6 : string = $"%A{8.274037099909037E-08}" │
00:00:26 #860 [Verbose] > │ System.Console.WriteLine v6 │
00:00:26 #861 [Verbose] > │ let v7 : string = $"__expect / actual: %A{8.274037099909037E-08} / │
00:00:26 #862 [Verbose] > │ expected: %A{8.274037099909037E-08}" │
00:00:26 #863 [Verbose] > │ let v8 : string = $"%A{8.890058234101161E-05}" │
00:00:26 #864 [Verbose] > │ System.Console.WriteLine v8 │
00:00:26 #865 [Verbose] > │ let v9 : string = $"__expect / actual: %A{8.890058234101161E-05} / │
00:00:26 #866 [Verbose] > │ expected: %A{8.890058234101161E-05}" │
00:00:26 #867 [Verbose] > │ let v10 : string = $"%A{-0.0007992778373592246}" │
00:00:26 #868 [Verbose] > │ System.Console.WriteLine v10 │
00:00:26 #869 [Verbose] > │ let v11 : string = $"__expect / actual: %A{-0.0007992778373592246} / │
00:00:26 #870 [Verbose] > │ expected: %A{-0.0007992778373592246}" │
00:00:26 #871 [Verbose] > │ let v12 : string = $"%A{-1.0}" │
00:00:26 #872 [Verbose] > │ System.Console.WriteLine v12 │
00:00:26 #873 [Verbose] > │ let v13 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}" │
00:00:26 #874 [Verbose] > │ () │
00:00:26 #875 [Verbose] > │ method0() │
00:00:26 #876 [Verbose] > │ │
00:00:26 #877 [Verbose] > │ 0.25 │
00:00:26 #878 [Verbose] > │ 2.499998828e-07 │
00:00:26 #879 [Verbose] > │ 1.000088901e-12 │
00:00:26 #880 [Verbose] > │ 8.2740371e-08 │
00:00:26 #881 [Verbose] > │ 8.890058234e-05 │
00:00:26 #882 [Verbose] > │ -0.0007992778374 │
00:00:26 #883 [Verbose] > │ -1.0 │
00:00:26 #884 [Verbose] > │ │
00:00:26 #885 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #886 [Verbose] >
00:00:26 #887 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 #888 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 #889 [Verbose] > │ ## integration │
00:00:26 #890 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #891 [Verbose] >
00:00:26 #892 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #893 [Verbose] > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:00:26 #894 [Verbose] >
00:00:26 #895 [Verbose] > inl integral dt : integration =
00:00:26 #896 [Verbose] > fun f a b =>
00:00:26 #897 [Verbose] > inl rec loop t y =
00:00:26 #898 [Verbose] > if t < b
00:00:26 #899 [Verbose] > then loop (t + dt) (y + f t * dt)
00:00:26 #900 [Verbose] > else t, y
00:00:26 #901 [Verbose] > loop (a + dt / 2) 0
00:00:26 #902 [Verbose] > |> snd
00:00:27 #903 [Verbose] >
00:00:27 #904 [Verbose] > ╭─[ 329.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #905 [Verbose] > │ () │
00:00:27 #906 [Verbose] > │ │
00:00:27 #907 [Verbose] > │ │
00:00:27 #908 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #909 [Verbose] >
00:00:27 #910 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #911 [Verbose] > // // test
00:00:27 #912 [Verbose] >
00:00:27 #913 [Verbose] > integral 0.01 math.square 0 1
00:00:27 #914 [Verbose] > |> _assert_approx_eq None 0.33332500000000004
00:00:27 #915 [Verbose] >
00:00:27 #916 [Verbose] > ╭─[ 306.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #917 [Verbose] > │ let rec method0 () : unit = │
00:00:27 #918 [Verbose] > │ let v0 : string = $"%A{0.3333250000000004}" │
00:00:27 #919 [Verbose] > │ System.Console.WriteLine v0 │
00:00:27 #920 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.3333250000000004} / │
00:00:27 #921 [Verbose] > │ expected: %A{0.33332500000000004}" │
00:00:27 #922 [Verbose] > │ () │
00:00:27 #923 [Verbose] > │ method0() │
00:00:27 #924 [Verbose] > │ │
00:00:27 #925 [Verbose] > │ 0.333325 │
00:00:27 #926 [Verbose] > │ │
00:00:27 #927 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #928 [Verbose] >
00:00:27 #929 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #930 [Verbose] > inl integral' dt : integration =
00:00:27 #931 [Verbose] > fun f a b =>
00:00:27 #932 [Verbose] > listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:00:27 #933 [Verbose] > |> listm.map (f >> (*) dt)
00:00:27 #934 [Verbose] > |> listm'.sum
00:00:27 #935 [Verbose] >
00:00:27 #936 [Verbose] > ╭─[ 374.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #937 [Verbose] > │ () │
00:00:27 #938 [Verbose] > │ │
00:00:27 #939 [Verbose] > │ │
00:00:27 #940 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #941 [Verbose] >
00:00:27 #942 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #943 [Verbose] > // // test
00:00:27 #944 [Verbose] >
00:00:27 #945 [Verbose] > integral' 0.1 math.square 0 1
00:00:27 #946 [Verbose] > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:00:28 #947 [Verbose] >
00:00:28 #948 [Verbose] > ╭─[ 685.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #949 [Verbose] > │ let rec method0 () : unit = │
00:00:28 #950 [Verbose] > │ let v0 : string = $"%A{0.3325000000000001}" │
00:00:28 #951 [Verbose] > │ System.Console.WriteLine v0 │
00:00:28 #952 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.3325000000000001} / │
00:00:28 #953 [Verbose] > │ expected: %A{0.33249999999999996}" │
00:00:28 #954 [Verbose] > │ () │
00:00:28 #955 [Verbose] > │ method0() │
00:00:28 #956 [Verbose] > │ │
00:00:28 #957 [Verbose] > │ 0.3325 │
00:00:28 #958 [Verbose] > │ │
00:00:28 #959 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #960 [Verbose] >
00:00:28 #961 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #962 [Verbose] > inl integral'' dt : integration =
00:00:28 #963 [Verbose] > fun f a b =>
00:00:28 #964 [Verbose] > am'.init_series (a + dt / 2) (b - dt / 2) dt
00:00:28 #965 [Verbose] > |> am.map (f >> (*) dt)
00:00:28 #966 [Verbose] > |> am'.sum
00:00:28 #967 [Verbose] >
00:00:28 #968 [Verbose] > ╭─[ 336.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #969 [Verbose] > │ () │
00:00:28 #970 [Verbose] > │ │
00:00:28 #971 [Verbose] > │ │
00:00:28 #972 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #973 [Verbose] >
00:00:28 #974 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #975 [Verbose] > // // test
00:00:28 #976 [Verbose] >
00:00:28 #977 [Verbose] > integral'' 0.01 math.square 0 1
00:00:28 #978 [Verbose] > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:00:29 #979 [Verbose] >
00:00:29 #980 [Verbose] > ╭─[ 498.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #981 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:29 #982 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : float} │
00:00:29 #983 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:29 #984 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:29 #985 [Verbose] > │ let v2 : bool = v1 < 100 │
00:00:29 #986 [Verbose] > │ v2 │
00:00:29 #987 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:29 #988 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:29 #989 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:29 #990 [Verbose] > │ v3 │
00:00:29 #991 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool = │
00:00:29 #992 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:29 #993 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:29 #994 [Verbose] > │ v3 │
00:00:29 #995 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:29 #996 [Verbose] > │ v0 │
00:00:29 #997 [Verbose] > │ and method0 () : unit = │
00:00:29 #998 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (100) │
00:00:29 #999 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:29 #1000 [Verbose] > │ while method1(v1) do │
00:00:29 #1001 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:29 #1002 [Verbose] > │ let v4 : float = float v3 │
00:00:29 #1003 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:29 #1004 [Verbose] > │ let v6 : float = 0.005 + v5 │
00:00:29 #1005 [Verbose] > │ v0.[int v3] <- v6 │
00:00:29 #1006 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:29 #1007 [Verbose] > │ v1.l0 <- v7 │
00:00:29 #1008 [Verbose] > │ () │
00:00:29 #1009 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:29 #1010 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:29 #1011 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:29 #1012 [Verbose] > │ while method2(v8, v10) do │
00:00:29 #1013 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:29 #1014 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:29 #1015 [Verbose] > │ let v14 : float = v13 ** 2.0 │
00:00:29 #1016 [Verbose] > │ let v15 : float = 0.01 * v14 │
00:00:29 #1017 [Verbose] > │ v9.[int v12] <- v15 │
00:00:29 #1018 [Verbose] > │ let v16 : int32 = v12 + 1 │
00:00:29 #1019 [Verbose] > │ v10.l0 <- v16 │
00:00:29 #1020 [Verbose] > │ () │
00:00:29 #1021 [Verbose] > │ let v17 : int32 = v9.Length │
00:00:29 #1022 [Verbose] > │ let v18 : Mut1 = {l0 = 0; l1 = 0.0} : Mut1 │
00:00:29 #1023 [Verbose] > │ while method3(v17, v18) do │
00:00:29 #1024 [Verbose] > │ let v20 : int32 = v18.l0 │
00:00:29 #1025 [Verbose] > │ let v21 : float = v18.l1 │
00:00:29 #1026 [Verbose] > │ let v22 : float = v9.[int v20] │
00:00:29 #1027 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:29 #1028 [Verbose] > │ let v24 : int32 = v20 + 1 │
00:00:29 #1029 [Verbose] > │ v18.l0 <- v24 │
00:00:29 #1030 [Verbose] > │ v18.l1 <- v23 │
00:00:29 #1031 [Verbose] > │ () │
00:00:29 #1032 [Verbose] > │ let v25 : float = v18.l1 │
00:00:29 #1033 [Verbose] > │ let v26 : string = $"%A{v25}" │
00:00:29 #1034 [Verbose] > │ System.Console.WriteLine v26 │
00:00:29 #1035 [Verbose] > │ let v27 : float = 0.3333250000000004 - v25 │
00:00:29 #1036 [Verbose] > │ let v28 : float = -v27 │
00:00:29 #1037 [Verbose] > │ let v29 : bool = v27 >= v28 │
00:00:29 #1038 [Verbose] > │ let v30 : float = │
00:00:29 #1039 [Verbose] > │ if v29 then │
00:00:29 #1040 [Verbose] > │ v27 │
00:00:29 #1041 [Verbose] > │ else │
00:00:29 #1042 [Verbose] > │ v28 │
00:00:29 #1043 [Verbose] > │ let v31 : bool = v30 < 1E-08 │
00:00:29 #1044 [Verbose] > │ let v33 : bool = │
00:00:29 #1045 [Verbose] > │ if v31 then │
00:00:29 #1046 [Verbose] > │ true │
00:00:29 #1047 [Verbose] > │ else │
00:00:29 #1048 [Verbose] > │ method4(v31) │
00:00:29 #1049 [Verbose] > │ let v34 : string = $"__expect / actual: %A{v25} / expected: │
00:00:29 #1050 [Verbose] > │ %A{0.3333250000000004}" │
00:00:29 #1051 [Verbose] > │ let v35 : bool = v33 = false │
00:00:29 #1052 [Verbose] > │ if v35 then │
00:00:29 #1053 [Verbose] > │ failwith<unit> v34 │
00:00:29 #1054 [Verbose] > │ method0() │
00:00:29 #1055 [Verbose] > │ │
00:00:29 #1056 [Verbose] > │ 0.333325 │
00:00:29 #1057 [Verbose] > │ │
00:00:29 #1058 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #1059 [Verbose] >
00:00:29 #1060 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 #1061 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 #1062 [Verbose] > │ ## anti_derivative │
00:00:29 #1063 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #1064 [Verbose] >
00:00:29 #1065 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #1066 [Verbose] > inl anti_derivative dt v0 a t =
00:00:29 #1067 [Verbose] > v0 + integral' dt a 0 t
00:00:30 #1068 [Verbose] >
00:00:30 #1069 [Verbose] > ╭─[ 570.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #1070 [Verbose] > │ () │
00:00:30 #1071 [Verbose] > │ │
00:00:30 #1072 [Verbose] > │ │
00:00:30 #1073 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1074 [Verbose] >
00:00:30 #1075 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 #1076 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 #1077 [Verbose] > │ ## velocity_ft │
00:00:30 #1078 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1079 [Verbose] >
00:00:30 #1080 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #1081 [Verbose] > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:00:30 #1082 [Verbose] > velocity)
00:00:30 #1083 [Verbose] >
00:00:30 #1084 [Verbose] > inl velocity_ft dt : velocity_ft =
00:00:30 #1085 [Verbose] > fun m v0 fs =>
00:00:30 #1086 [Verbose] > inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:00:30 #1087 [Verbose] > inl a t = f_net t / m
00:00:30 #1088 [Verbose] > anti_derivative dt v0 a
00:00:30 #1089 [Verbose] >
00:00:30 #1090 [Verbose] > ╭─[ 334.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #1091 [Verbose] > │ () │
00:00:30 #1092 [Verbose] > │ │
00:00:30 #1093 [Verbose] > │ │
00:00:30 #1094 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1095 [Verbose] >
00:00:30 #1096 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 #1097 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 #1098 [Verbose] > │ ## position_ft │
00:00:30 #1099 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1100 [Verbose] >
00:00:30 #1101 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #1102 [Verbose] > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:00:30 #1103 [Verbose] > -> position)
00:00:30 #1104 [Verbose] >
00:00:30 #1105 [Verbose] > inl position_ft dt : position_ft =
00:00:30 #1106 [Verbose] > fun m x0 v0 fs =>
00:00:30 #1107 [Verbose] > velocity_ft dt m v0 fs
00:00:30 #1108 [Verbose] > |> anti_derivative dt x0
00:00:30 #1109 [Verbose] >
00:00:30 #1110 [Verbose] > ╭─[ 325.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #1111 [Verbose] > │ () │
00:00:30 #1112 [Verbose] > │ │
00:00:30 #1113 [Verbose] > │ │
00:00:30 #1114 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #1115 [Verbose] >
00:00:30 #1116 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #1117 [Verbose] > // // test
00:00:30 #1118 [Verbose] >
00:00:30 #1119 [Verbose] > inl pedal_coast (t : time) : force =
00:00:30 #1120 [Verbose] > inl t_cycle = 20
00:00:30 #1121 [Verbose] > inl n_complete : i32 = t / t_cycle |> conv
00:00:30 #1122 [Verbose] > inl remainder = t - conv n_complete * t_cycle
00:00:30 #1123 [Verbose] > if remainder > 0 && remainder < 10
00:00:30 #1124 [Verbose] > then 10
00:00:30 #1125 [Verbose] > else 0
00:00:30 #1126 [Verbose] >
00:00:30 #1127 [Verbose] > inl x = am'.init_series -5 45 0.1
00:00:30 #1128 [Verbose] > inl y = x |> am.map pedal_coast
00:00:30 #1129 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:00:31 #1130 [Verbose] >
00:00:31 #1131 [Verbose] > ╭─[ 540.34ms - return value ]──────────────────────────────────────────────────╮
00:00:31 #1132 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:31 #1133 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:31 #1134 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:31 #1135 [Verbose] > │ stroke="none"/> │
00:00:31 #1136 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:31 #1137 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:31 #1138 [Verbose] > │ fill="#FFFFFF"> │
00:00:31 #1139 [Verbose] > │ child pedaling then coasting │
00:00:31 #1140 [Verbose] > │ </text> │
00:00:31 #1141 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:31 #1142 [Verbose] > │ y2="75"/> │
00:00:31 #1143 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:31 #1144 [Verbose] > │ y2="75"/> │
00:00:31 #1145 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:31 #1146 [Verbose] > │ y2="75"/> │
00:00:31 #1147 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:31 #1148 [Verbose] > │ y2="75"/> │
00:00:31 #1149 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:31 #1150 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #1151 [Verbose] >
00:00:31 #1152 [Verbose] > ╭─[ 560.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #1153 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:31 #1154 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:31 #1155 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:31 #1156 [Verbose] > │ let v2 : bool = v1 < 501 │
00:00:31 #1157 [Verbose] > │ v2 │
00:00:31 #1158 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:31 #1159 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:31 #1160 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:31 #1161 [Verbose] > │ v3 │
00:00:31 #1162 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:31 #1163 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:31 #1164 [Verbose] > │ v0 │
00:00:31 #1165 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:31 #1166 [Verbose] > │ []) * (float [])) [])) = │
00:00:31 #1167 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (501) │
00:00:31 #1168 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:31 #1169 [Verbose] > │ while method1(v1) do │
00:00:31 #1170 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:31 #1171 [Verbose] > │ let v4 : float = float v3 │
00:00:31 #1172 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:31 #1173 [Verbose] > │ let v6 : float = -5.0 + v5 │
00:00:31 #1174 [Verbose] > │ v0.[int v3] <- v6 │
00:00:31 #1175 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:31 #1176 [Verbose] > │ v1.l0 <- v7 │
00:00:31 #1177 [Verbose] > │ () │
00:00:31 #1178 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:31 #1179 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:31 #1180 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:31 #1181 [Verbose] > │ while method2(v8, v10) do │
00:00:31 #1182 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:31 #1183 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:31 #1184 [Verbose] > │ let v14 : float = v13 / 20.0 │
00:00:31 #1185 [Verbose] > │ let v15 : int32 = int32 v14 │
00:00:31 #1186 [Verbose] > │ let v16 : float = float v15 │
00:00:31 #1187 [Verbose] > │ let v17 : float = v16 * 20.0 │
00:00:31 #1188 [Verbose] > │ let v18 : float = v13 - v17 │
00:00:31 #1189 [Verbose] > │ let v19 : bool = v18 > 0.0 │
00:00:31 #1190 [Verbose] > │ let v21 : bool = │
00:00:31 #1191 [Verbose] > │ if v19 then │
00:00:31 #1192 [Verbose] > │ let v20 : bool = v18 < 10.0 │
00:00:31 #1193 [Verbose] > │ v20 │
00:00:31 #1194 [Verbose] > │ else │
00:00:31 #1195 [Verbose] > │ false │
00:00:31 #1196 [Verbose] > │ let v22 : float = │
00:00:31 #1197 [Verbose] > │ if v21 then │
00:00:31 #1198 [Verbose] > │ 10.0 │
00:00:31 #1199 [Verbose] > │ else │
00:00:31 #1200 [Verbose] > │ 0.0 │
00:00:31 #1201 [Verbose] > │ v9.[int v12] <- v22 │
00:00:31 #1202 [Verbose] > │ let v23 : int32 = v12 + 1 │
00:00:31 #1203 [Verbose] > │ v10.l0 <- v23 │
00:00:31 #1204 [Verbose] > │ () │
00:00:31 #1205 [Verbose] > │ let v24 : string = "force on bike (N)" │
00:00:31 #1206 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:31 #1207 [Verbose] > │ (v24, v0, v9)|] │
00:00:31 #1208 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method3(v25) │
00:00:31 #1209 [Verbose] > │ let v27 : string = "child pedaling then coasting" │
00:00:31 #1210 [Verbose] > │ let v28 : string = "time (s)" │
00:00:31 #1211 [Verbose] > │ let v29 : string = "" │
00:00:31 #1212 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:31 #1213 [Verbose] > │ method0() │
00:00:31 #1214 [Verbose] > │ │
00:00:31 #1215 [Verbose] > │ │
00:00:31 #1216 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #1217 [Verbose] >
00:00:31 #1218 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #1219 [Verbose] > // // test
00:00:31 #1220 [Verbose] >
00:00:31 #1221 [Verbose] > inl x = am'.init_series -5 45 1
00:00:31 #1222 [Verbose] > inl y = x |> am.map (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:00:31 #1223 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:00:31 #1224 [Verbose] > ]]
00:00:32 #1225 [Verbose] >
00:00:32 #1226 [Verbose] > ╭─[ 649.86ms - return value ]──────────────────────────────────────────────────╮
00:00:32 #1227 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:32 #1228 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:32 #1229 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:32 #1230 [Verbose] > │ stroke="none"/> │
00:00:32 #1231 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:32 #1232 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:32 #1233 [Verbose] > │ fill="#FFFFFF"> │
00:00:32 #1234 [Verbose] > │ child pedaling then coasting │
00:00:32 #1235 [Verbose] > │ </text> │
00:00:32 #1236 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:32 #1237 [Verbose] > │ y2="75"/> │
00:00:32 #1238 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:32 #1239 [Verbose] > │ y2="75"/> │
00:00:32 #1240 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:32 #1241 [Verbose] > │ y2="75"/> │
00:00:32 #1242 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:32 #1243 [Verbose] > │ y2="75"/> │
00:00:32 #1244 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:32 #1245 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #1246 [Verbose] >
00:00:32 #1247 [Verbose] > ╭─[ 660.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #1248 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:32 #1249 [Verbose] > │ and UH0 = │
00:00:32 #1250 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:32 #1251 [Verbose] > │ | UH0_1 │
00:00:32 #1252 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:32 #1253 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:32 #1254 [Verbose] > │ let v2 : bool = v1 < 51 │
00:00:32 #1255 [Verbose] > │ v2 │
00:00:32 #1256 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:32 #1257 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:32 #1258 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:32 #1259 [Verbose] > │ v3 │
00:00:32 #1260 [Verbose] > │ and method3 (v0 : float, v1 : float) : UH0 = │
00:00:32 #1261 [Verbose] > │ let v2 : bool = v1 < v0 │
00:00:32 #1262 [Verbose] > │ if v2 then │
00:00:32 #1263 [Verbose] > │ let v3 : float = 0.1 * v1 │
00:00:32 #1264 [Verbose] > │ let v4 : float = 0.05 + v3 │
00:00:32 #1265 [Verbose] > │ let v5 : float = v1 + 1.0 │
00:00:32 #1266 [Verbose] > │ let v6 : UH0 = method3(v0, v5) │
00:00:32 #1267 [Verbose] > │ UH0_0(v4, v6) │
00:00:32 #1268 [Verbose] > │ else │
00:00:32 #1269 [Verbose] > │ UH0_1 │
00:00:32 #1270 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:32 #1271 [Verbose] > │ match v0 with │
00:00:32 #1272 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:32 #1273 [Verbose] > │ let v4 : UH0 = method5(v3, v1) │
00:00:32 #1274 [Verbose] > │ let v5 : float = v2 / 20.0 │
00:00:32 #1275 [Verbose] > │ let v6 : int32 = int32 v5 │
00:00:32 #1276 [Verbose] > │ let v7 : float = float v6 │
00:00:32 #1277 [Verbose] > │ let v8 : float = v7 * 20.0 │
00:00:32 #1278 [Verbose] > │ let v9 : float = v2 - v8 │
00:00:32 #1279 [Verbose] > │ let v10 : bool = v9 > 0.0 │
00:00:32 #1280 [Verbose] > │ let v12 : bool = │
00:00:32 #1281 [Verbose] > │ if v10 then │
00:00:32 #1282 [Verbose] > │ let v11 : bool = v9 < 10.0 │
00:00:32 #1283 [Verbose] > │ v11 │
00:00:32 #1284 [Verbose] > │ else │
00:00:32 #1285 [Verbose] > │ false │
00:00:32 #1286 [Verbose] > │ let v13 : float = │
00:00:32 #1287 [Verbose] > │ if v12 then │
00:00:32 #1288 [Verbose] > │ 10.0 │
00:00:32 #1289 [Verbose] > │ else │
00:00:32 #1290 [Verbose] > │ 0.0 │
00:00:32 #1291 [Verbose] > │ let v14 : float = v13 / 20.0 │
00:00:32 #1292 [Verbose] > │ let v15 : float = 0.1 * v14 │
00:00:32 #1293 [Verbose] > │ UH0_0(v15, v4) │
00:00:32 #1294 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:32 #1295 [Verbose] > │ v1 │
00:00:32 #1296 [Verbose] > │ and method6 (v0 : UH0, v1 : float) : float = │
00:00:32 #1297 [Verbose] > │ match v0 with │
00:00:32 #1298 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:32 #1299 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:32 #1300 [Verbose] > │ method6(v3, v4) │
00:00:32 #1301 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:32 #1302 [Verbose] > │ v1 │
00:00:32 #1303 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:32 #1304 [Verbose] > │ match v0 with │
00:00:32 #1305 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:32 #1306 [Verbose] > │ let v4 : UH0 = method4(v3, v1) │
00:00:32 #1307 [Verbose] > │ let v5 : float = v2 - 0.05 │
00:00:32 #1308 [Verbose] > │ let v6 : float = v5 - 0.05 │
00:00:32 #1309 [Verbose] > │ let v7 : float = v6 / 0.1 │
00:00:32 #1310 [Verbose] > │ let v8 : float = v7 + 1.0 │
00:00:32 #1311 [Verbose] > │ let v9 : float = 0.0 │
00:00:32 #1312 [Verbose] > │ let v10 : UH0 = method3(v8, v9) │
00:00:32 #1313 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:32 #1314 [Verbose] > │ let v12 : UH0 = method5(v10, v11) │
00:00:32 #1315 [Verbose] > │ let v13 : float = 0.0 │
00:00:32 #1316 [Verbose] > │ let v14 : float = method6(v12, v13) │
00:00:32 #1317 [Verbose] > │ let v15 : float = 0.1 * v14 │
00:00:32 #1318 [Verbose] > │ UH0_0(v15, v4) │
00:00:32 #1319 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:32 #1320 [Verbose] > │ v1 │
00:00:32 #1321 [Verbose] > │ and method7 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:32 #1322 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:32 #1323 [Verbose] > │ v0 │
00:00:32 #1324 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:32 #1325 [Verbose] > │ []) * (float [])) [])) = │
00:00:32 #1326 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (51) │
00:00:32 #1327 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:32 #1328 [Verbose] > │ while method1(v1) do │
00:00:32 #1329 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:32 #1330 [Verbose] > │ let v4 : float = float v3 │
00:00:32 #1331 [Verbose] > │ let v5 : float = -5.0 + v4 │
00:00:32 #1332 [Verbose] > │ v0.[int v3] <- v5 │
00:00:32 #1333 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:32 #1334 [Verbose] > │ v1.l0 <- v6 │
00:00:32 #1335 [Verbose] > │ () │
00:00:32 #1336 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:32 #1337 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:32 #1338 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:32 #1339 [Verbose] > │ while method2(v7, v9) do │
00:00:32 #1340 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:32 #1341 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:32 #1342 [Verbose] > │ let v13 : float = v12 - 0.05 │
00:00:32 #1343 [Verbose] > │ let v14 : float = v13 - 0.05 │
00:00:32 #1344 [Verbose] > │ let v15 : float = v14 / 0.1 │
00:00:32 #1345 [Verbose] > │ let v16 : float = v15 + 1.0 │
00:00:32 #1346 [Verbose] > │ let v17 : float = 0.0 │
00:00:32 #1347 [Verbose] > │ let v18 : UH0 = method3(v16, v17) │
00:00:32 #1348 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:32 #1349 [Verbose] > │ let v20 : UH0 = method4(v18, v19) │
00:00:32 #1350 [Verbose] > │ let v21 : float = 0.0 │
00:00:32 #1351 [Verbose] > │ let v22 : float = method6(v20, v21) │
00:00:32 #1352 [Verbose] > │ v8.[int v11] <- v22 │
00:00:32 #1353 [Verbose] > │ let v23 : int32 = v11 + 1 │
00:00:32 #1354 [Verbose] > │ v9.l0 <- v23 │
00:00:32 #1355 [Verbose] > │ () │
00:00:32 #1356 [Verbose] > │ let v24 : string = "position of bike (m)" │
00:00:32 #1357 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:32 #1358 [Verbose] > │ (v24, v0, v8)|] │
00:00:32 #1359 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method7(v25) │
00:00:32 #1360 [Verbose] > │ let v27 : string = "child pedaling then coasting" │
00:00:32 #1361 [Verbose] > │ let v28 : string = "time (s)" │
00:00:32 #1362 [Verbose] > │ let v29 : string = "" │
00:00:32 #1363 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:32 #1364 [Verbose] > │ method0() │
00:00:32 #1365 [Verbose] > │ │
00:00:32 #1366 [Verbose] > │ │
00:00:32 #1367 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #1368 [Verbose] >
00:00:32 #1369 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 #1370 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 #1371 [Verbose] > │ ## velocity_fv │
00:00:32 #1372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #1373 [Verbose] >
00:00:32 #1374 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #1375 [Verbose] > inl newton_second_v m fs v0 =
00:00:32 #1376 [Verbose] > fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:00:32 #1377 [Verbose] >
00:00:32 #1378 [Verbose] > inl update_velocity dt m fs v0 =
00:00:32 #1379 [Verbose] > v0 + newton_second_v m fs v0 * dt
00:00:32 #1380 [Verbose] >
00:00:32 #1381 [Verbose] > inl velocity_fv dt m v0 fs t =
00:00:32 #1382 [Verbose] > stream.iterate (update_velocity dt m fs) v0
00:00:32 #1383 [Verbose] > |> stream.try_item (t / dt |> math.round |> abs)
00:00:32 #1384 [Verbose] > |> optionm'.default_value 0
00:00:32 #1385 [Verbose] >
00:00:32 #1386 [Verbose] > ╭─[ 247.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #1387 [Verbose] > │ () │
00:00:32 #1388 [Verbose] > │ │
00:00:32 #1389 [Verbose] > │ │
00:00:32 #1390 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #1391 [Verbose] >
00:00:32 #1392 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #1393 [Verbose] > inl f_air drag rho area v =
00:00:32 #1394 [Verbose] > -drag * rho * area * abs v * v / 2
00:00:32 #1395 [Verbose] >
00:00:32 #1396 [Verbose] > ╭─[ 248.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #1397 [Verbose] > │ () │
00:00:32 #1398 [Verbose] > │ │
00:00:32 #1399 [Verbose] > │ │
00:00:32 #1400 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #1401 [Verbose] >
00:00:32 #1402 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #1403 [Verbose] > // // test
00:00:32 #1404 [Verbose] >
00:00:32 #1405 [Verbose] > inl x = am'.init_series 0 60 0.5
00:00:32 #1406 [Verbose] > inl y = x |> am.map (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225 0.6
00:00:32 #1407 [Verbose] > ]])
00:00:32 #1408 [Verbose] > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:00:33 #1409 [Verbose] >
00:00:33 #1410 [Verbose] > ╭─[ 551.89ms - return value ]──────────────────────────────────────────────────╮
00:00:33 #1411 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:33 #1412 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:33 #1413 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:33 #1414 [Verbose] > │ stroke="none"/> │
00:00:33 #1415 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:33 #1416 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:33 #1417 [Verbose] > │ fill="#FFFFFF"> │
00:00:33 #1418 [Verbose] > │ bike velocity │
00:00:33 #1419 [Verbose] > │ </text> │
00:00:33 #1420 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:33 #1421 [Verbose] > │ y2="75"/> │
00:00:33 #1422 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:33 #1423 [Verbose] > │ y2="75"/> │
00:00:33 #1424 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:33 #1425 [Verbose] > │ y2="75"/> │
00:00:33 #1426 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:33 #1427 [Verbose] > │ y2="75"/> │
00:00:33 #1428 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x... │
00:00:33 #1429 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1430 [Verbose] >
00:00:33 #1431 [Verbose] > ╭─[ 566.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 #1432 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:33 #1433 [Verbose] > │ and UH0 = │
00:00:33 #1434 [Verbose] > │ | UH0_0 of float * (unit -> UH0) │
00:00:33 #1435 [Verbose] > │ | UH0_1 │
00:00:33 #1436 [Verbose] > │ and [<Struct>] US0 = │
00:00:33 #1437 [Verbose] > │ | US0_0 │
00:00:33 #1438 [Verbose] > │ | US0_1 of f1_0 : float │
00:00:33 #1439 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:33 #1440 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:33 #1441 [Verbose] > │ let v2 : bool = v1 < 121 │
00:00:33 #1442 [Verbose] > │ v2 │
00:00:33 #1443 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:33 #1444 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:33 #1445 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:33 #1446 [Verbose] > │ v3 │
00:00:33 #1447 [Verbose] > │ and closure129 () () : UH0 = │
00:00:33 #1448 [Verbose] > │ let v0 : (unit -> UH0) = closure129() │
00:00:33 #1449 [Verbose] > │ UH0_0(11.664236870396083, v0) │
00:00:33 #1450 [Verbose] > │ and closure128 () () : UH0 = │
00:00:33 #1451 [Verbose] > │ let v0 : (unit -> UH0) = closure129() │
00:00:33 #1452 [Verbose] > │ UH0_0(11.664236870396081, v0) │
00:00:33 #1453 [Verbose] > │ and closure127 () () : UH0 = │
00:00:33 #1454 [Verbose] > │ let v0 : (unit -> UH0) = closure128() │
00:00:33 #1455 [Verbose] > │ UH0_0(11.66423687039608, v0) │
00:00:33 #1456 [Verbose] > │ and closure126 () () : UH0 = │
00:00:33 #1457 [Verbose] > │ let v0 : (unit -> UH0) = closure127() │
00:00:33 #1458 [Verbose] > │ UH0_0(11.664236870396078, v0) │
00:00:33 #1459 [Verbose] > │ and closure125 () () : UH0 = │
00:00:33 #1460 [Verbose] > │ let v0 : (unit -> UH0) = closure126() │
00:00:33 #1461 [Verbose] > │ UH0_0(11.664236870396074, v0) │
00:00:33 #1462 [Verbose] > │ and closure124 () () : UH0 = │
00:00:33 #1463 [Verbose] > │ let v0 : (unit -> UH0) = closure125() │
00:00:33 #1464 [Verbose] > │ UH0_0(11.66423687039607, v0) │
00:00:33 #1465 [Verbose] > │ and closure123 () () : UH0 = │
00:00:33 #1466 [Verbose] > │ let v0 : (unit -> UH0) = closure124() │
00:00:33 #1467 [Verbose] > │ UH0_0(11.664236870396065, v0) │
00:00:33 #1468 [Verbose] > │ and closure122 () () : UH0 = │
00:00:33 #1469 [Verbose] > │ let v0 : (unit -> UH0) = closure123() │
00:00:33 #1470 [Verbose] > │ UH0_0(11.664236870396058, v0) │
00:00:33 #1471 [Verbose] > │ and closure121 () () : UH0 = │
00:00:33 #1472 [Verbose] > │ let v0 : (unit -> UH0) = closure122() │
00:00:33 #1473 [Verbose] > │ UH0_0(11.66423687039605, v0) │
00:00:33 #1474 [Verbose] > │ and closure120 () () : UH0 = │
00:00:33 #1475 [Verbose] > │ let v0 : (unit -> UH0) = closure121() │
00:00:33 #1476 [Verbose] > │ UH0_0(11.664236870396037, v0) │
00:00:33 #1477 [Verbose] > │ and closure119 () () : UH0 = │
00:00:33 #1478 [Verbose] > │ let v0 : (unit -> UH0) = closure120() │
00:00:33 #1479 [Verbose] > │ UH0_0(11.66423687039602, v0) │
00:00:33 #1480 [Verbose] > │ and closure118 () () : UH0 = │
00:00:33 #1481 [Verbose] > │ let v0 : (unit -> UH0) = closure119() │
00:00:33 #1482 [Verbose] > │ UH0_0(11.664236870396, v0) │
00:00:33 #1483 [Verbose] > │ and closure117 () () : UH0 = │
00:00:33 #1484 [Verbose] > │ let v0 : (unit -> UH0) = closure118() │
00:00:33 #1485 [Verbose] > │ UH0_0(11.664236870395971, v0) │
00:00:33 #1486 [Verbose] > │ and closure116 () () : UH0 = │
00:00:33 #1487 [Verbose] > │ let v0 : (unit -> UH0) = closure117() │
00:00:33 #1488 [Verbose] > │ UH0_0(11.664236870395934, v0) │
00:00:33 #1489 [Verbose] > │ and closure115 () () : UH0 = │
00:00:33 #1490 [Verbose] > │ let v0 : (unit -> UH0) = closure116() │
00:00:33 #1491 [Verbose] > │ UH0_0(11.664236870395884, v0) │
00:00:33 #1492 [Verbose] > │ and closure114 () () : UH0 = │
00:00:33 #1493 [Verbose] > │ let v0 : (unit -> UH0) = closure115() │
00:00:33 #1494 [Verbose] > │ UH0_0(11.664236870395818, v0) │
00:00:33 #1495 [Verbose] > │ and closure113 () () : UH0 = │
00:00:33 #1496 [Verbose] > │ let v0 : (unit -> UH0) = closure114() │
00:00:33 #1497 [Verbose] > │ UH0_0(11.664236870395731, v0) │
00:00:33 #1498 [Verbose] > │ and closure112 () () : UH0 = │
00:00:33 #1499 [Verbose] > │ let v0 : (unit -> UH0) = closure113() │
00:00:33 #1500 [Verbose] > │ UH0_0(11.664236870395616, v0) │
00:00:33 #1501 [Verbose] > │ and closure111 () () : UH0 = │
00:00:33 #1502 [Verbose] > │ let v0 : (unit -> UH0) = closure112() │
00:00:33 #1503 [Verbose] > │ UH0_0(11.664236870395463, v0) │
00:00:33 #1504 [Verbose] > │ and closure110 () () : UH0 = │
00:00:33 #1505 [Verbose] > │ let v0 : (unit -> UH0) = closure111() │
00:00:33 #1506 [Verbose] > │ UH0_0(11.66423687039526, v0) │
00:00:33 #1507 [Verbose] > │ and closure109 () () : UH0 = │
00:00:33 #1508 [Verbose] > │ let v0 : (unit -> UH0) = closure110() │
00:00:33 #1509 [Verbose] > │ UH0_0(11.664236870394992, v0) │
00:00:33 #1510 [Verbose] > │ and closure108 () () : UH0 = │
00:00:33 #1511 [Verbose] > │ let v0 : (unit -> UH0) = closure109() │
00:00:33 #1512 [Verbose] > │ UH0_0(11.664236870394637, v0) │
00:00:33 #1513 [Verbose] > │ and closure107 () () : UH0 = │
00:00:33 #1514 [Verbose] > │ let v0 : (unit -> UH0) = closure108() │
00:00:33 #1515 [Verbose] > │ UH0_0(11.664236870394168, v0) │
00:00:33 #1516 [Verbose] > │ and closure106 () () : UH0 = │
00:00:33 #1517 [Verbose] > │ let v0 : (unit -> UH0) = closure107() │
00:00:33 #1518 [Verbose] > │ UH0_0(11.664236870393546, v0) │
00:00:33 #1519 [Verbose] > │ and closure105 () () : UH0 = │
00:00:33 #1520 [Verbose] > │ let v0 : (unit -> UH0) = closure106() │
00:00:33 #1521 [Verbose] > │ UH0_0(11.664236870392722, v0) │
00:00:33 #1522 [Verbose] > │ and closure104 () () : UH0 = │
00:00:33 #1523 [Verbose] > │ let v0 : (unit -> UH0) = closure105() │
00:00:33 #1524 [Verbose] > │ UH0_0(11.664236870391631, v0) │
00:00:33 #1525 [Verbose] > │ and closure103 () () : UH0 = │
00:00:33 #1526 [Verbose] > │ let v0 : (unit -> UH0) = closure104() │
00:00:33 #1527 [Verbose] > │ UH0_0(11.664236870390187, v0) │
00:00:33 #1528 [Verbose] > │ and closure102 () () : UH0 = │
00:00:33 #1529 [Verbose] > │ let v0 : (unit -> UH0) = closure103() │
00:00:33 #1530 [Verbose] > │ UH0_0(11.664236870388274, v0) │
00:00:33 #1531 [Verbose] > │ and closure101 () () : UH0 = │
00:00:33 #1532 [Verbose] > │ let v0 : (unit -> UH0) = closure102() │
00:00:33 #1533 [Verbose] > │ UH0_0(11.66423687038574, v0) │
00:00:33 #1534 [Verbose] > │ and closure100 () () : UH0 = │
00:00:33 #1535 [Verbose] > │ let v0 : (unit -> UH0) = closure101() │
00:00:33 #1536 [Verbose] > │ UH0_0(11.664236870382384, v0) │
00:00:33 #1537 [Verbose] > │ and closure99 () () : UH0 = │
00:00:33 #1538 [Verbose] > │ let v0 : (unit -> UH0) = closure100() │
00:00:33 #1539 [Verbose] > │ UH0_0(11.664236870377938, v0) │
00:00:33 #1540 [Verbose] > │ and closure98 () () : UH0 = │
00:00:33 #1541 [Verbose] > │ let v0 : (unit -> UH0) = closure99() │
00:00:33 #1542 [Verbose] > │ UH0_0(11.66423687037205, v0) │
00:00:33 #1543 [Verbose] > │ and closure97 () () : UH0 = │
00:00:33 #1544 [Verbose] > │ let v0 : (unit -> UH0) = closure98() │
00:00:33 #1545 [Verbose] > │ UH0_0(11.664236870364254, v0) │
00:00:33 #1546 [Verbose] > │ and closure96 () () : UH0 = │
00:00:33 #1547 [Verbose] > │ let v0 : (unit -> UH0) = closure97() │
00:00:33 #1548 [Verbose] > │ UH0_0(11.664236870353927, v0) │
00:00:33 #1549 [Verbose] > │ and closure95 () () : UH0 = │
00:00:33 #1550 [Verbose] > │ let v0 : (unit -> UH0) = closure96() │
00:00:33 #1551 [Verbose] > │ UH0_0(11.664236870340249, v0) │
00:00:33 #1552 [Verbose] > │ and closure94 () () : UH0 = │
00:00:33 #1553 [Verbose] > │ let v0 : (unit -> UH0) = closure95() │
00:00:33 #1554 [Verbose] > │ UH0_0(11.664236870322135, v0) │
00:00:33 #1555 [Verbose] > │ and closure93 () () : UH0 = │
00:00:33 #1556 [Verbose] > │ let v0 : (unit -> UH0) = closure94() │
00:00:33 #1557 [Verbose] > │ UH0_0(11.664236870298145, v0) │
00:00:33 #1558 [Verbose] > │ and closure92 () () : UH0 = │
00:00:33 #1559 [Verbose] > │ let v0 : (unit -> UH0) = closure93() │
00:00:33 #1560 [Verbose] > │ UH0_0(11.664236870266372, v0) │
00:00:33 #1561 [Verbose] > │ and closure91 () () : UH0 = │
00:00:33 #1562 [Verbose] > │ let v0 : (unit -> UH0) = closure92() │
00:00:33 #1563 [Verbose] > │ UH0_0(11.664236870224292, v0) │
00:00:33 #1564 [Verbose] > │ and closure90 () () : UH0 = │
00:00:33 #1565 [Verbose] > │ let v0 : (unit -> UH0) = closure91() │
00:00:33 #1566 [Verbose] > │ UH0_0(11.66423687016856, v0) │
00:00:33 #1567 [Verbose] > │ and closure89 () () : UH0 = │
00:00:33 #1568 [Verbose] > │ let v0 : (unit -> UH0) = closure90() │
00:00:33 #1569 [Verbose] > │ UH0_0(11.664236870094747, v0) │
00:00:33 #1570 [Verbose] > │ and closure88 () () : UH0 = │
00:00:33 #1571 [Verbose] > │ let v0 : (unit -> UH0) = closure89() │
00:00:33 #1572 [Verbose] > │ UH0_0(11.664236869996989, v0) │
00:00:33 #1573 [Verbose] > │ and closure87 () () : UH0 = │
00:00:33 #1574 [Verbose] > │ let v0 : (unit -> UH0) = closure88() │
00:00:33 #1575 [Verbose] > │ UH0_0(11.664236869867516, v0) │
00:00:33 #1576 [Verbose] > │ and closure86 () () : UH0 = │
00:00:33 #1577 [Verbose] > │ let v0 : (unit -> UH0) = closure87() │
00:00:33 #1578 [Verbose] > │ UH0_0(11.66423686969604, v0) │
00:00:33 #1579 [Verbose] > │ and closure85 () () : UH0 = │
00:00:33 #1580 [Verbose] > │ let v0 : (unit -> UH0) = closure86() │
00:00:33 #1581 [Verbose] > │ UH0_0(11.664236869468937, v0) │
00:00:33 #1582 [Verbose] > │ and closure84 () () : UH0 = │
00:00:33 #1583 [Verbose] > │ let v0 : (unit -> UH0) = closure85() │
00:00:33 #1584 [Verbose] > │ UH0_0(11.664236869168157, v0) │
00:00:33 #1585 [Verbose] > │ and closure83 () () : UH0 = │
00:00:33 #1586 [Verbose] > │ let v0 : (unit -> UH0) = closure84() │
00:00:33 #1587 [Verbose] > │ UH0_0(11.6642368687698, v0) │
00:00:33 #1588 [Verbose] > │ and closure82 () () : UH0 = │
00:00:33 #1589 [Verbose] > │ let v0 : (unit -> UH0) = closure83() │
00:00:33 #1590 [Verbose] > │ UH0_0(11.664236868242211, v0) │
00:00:33 #1591 [Verbose] > │ and closure81 () () : UH0 = │
00:00:33 #1592 [Verbose] > │ let v0 : (unit -> UH0) = closure82() │
00:00:33 #1593 [Verbose] > │ UH0_0(11.664236867543465, v0) │
00:00:33 #1594 [Verbose] > │ and closure80 () () : UH0 = │
00:00:33 #1595 [Verbose] > │ let v0 : (unit -> UH0) = closure81() │
00:00:33 #1596 [Verbose] > │ UH0_0(11.664236866618037, v0) │
00:00:33 #1597 [Verbose] > │ and closure79 () () : UH0 = │
00:00:33 #1598 [Verbose] > │ let v0 : (unit -> UH0) = closure80() │
00:00:33 #1599 [Verbose] > │ UH0_0(11.664236865392386, v0) │
00:00:33 #1600 [Verbose] > │ and closure78 () () : UH0 = │
00:00:33 #1601 [Verbose] > │ let v0 : (unit -> UH0) = closure79() │
00:00:33 #1602 [Verbose] > │ UH0_0(11.664236863769117, v0) │
00:00:33 #1603 [Verbose] > │ and closure77 () () : UH0 = │
00:00:33 #1604 [Verbose] > │ let v0 : (unit -> UH0) = closure78() │
00:00:33 #1605 [Verbose] > │ UH0_0(11.664236861619237, v0) │
00:00:33 #1606 [Verbose] > │ and closure76 () () : UH0 = │
00:00:33 #1607 [Verbose] > │ let v0 : (unit -> UH0) = closure77() │
00:00:33 #1608 [Verbose] > │ UH0_0(11.664236858771906, v0) │
00:00:33 #1609 [Verbose] > │ and closure75 () () : UH0 = │
00:00:33 #1610 [Verbose] > │ let v0 : (unit -> UH0) = closure76() │
00:00:33 #1611 [Verbose] > │ UH0_0(11.66423685500086, v0) │
00:00:33 #1612 [Verbose] > │ and closure74 () () : UH0 = │
00:00:33 #1613 [Verbose] > │ let v0 : (unit -> UH0) = closure75() │
00:00:33 #1614 [Verbose] > │ UH0_0(11.664236850006436, v0) │
00:00:33 #1615 [Verbose] > │ and closure73 () () : UH0 = │
00:00:33 #1616 [Verbose] > │ let v0 : (unit -> UH0) = closure74() │
00:00:33 #1617 [Verbose] > │ UH0_0(11.664236843391752, v0) │
00:00:33 #1618 [Verbose] > │ and closure72 () () : UH0 = │
00:00:33 #1619 [Verbose] > │ let v0 : (unit -> UH0) = closure73() │
00:00:33 #1620 [Verbose] > │ UH0_0(11.664236834631172, v0) │
00:00:33 #1621 [Verbose] > │ and closure71 () () : UH0 = │
00:00:33 #1622 [Verbose] > │ let v0 : (unit -> UH0) = closure72() │
00:00:33 #1623 [Verbose] > │ UH0_0(11.66423682302854, v0) │
00:00:33 #1624 [Verbose] > │ and closure70 () () : UH0 = │
00:00:33 #1625 [Verbose] > │ let v0 : (unit -> UH0) = closure71() │
00:00:33 #1626 [Verbose] > │ UH0_0(11.664236807661855, v0) │
00:00:33 #1627 [Verbose] > │ and closure69 () () : UH0 = │
00:00:33 #1628 [Verbose] > │ let v0 : (unit -> UH0) = closure70() │
00:00:33 #1629 [Verbose] > │ UH0_0(11.664236787310005, v0) │
00:00:33 #1630 [Verbose] > │ and closure68 () () : UH0 = │
00:00:33 #1631 [Verbose] > │ let v0 : (unit -> UH0) = closure69() │
00:00:33 #1632 [Verbose] > │ UH0_0(11.664236760355733, v0) │
00:00:33 #1633 [Verbose] > │ and closure67 () () : UH0 = │
00:00:33 #1634 [Verbose] > │ let v0 : (unit -> UH0) = closure68() │
00:00:33 #1635 [Verbose] > │ UH0_0(11.664236724657123, v0) │
00:00:33 #1636 [Verbose] > │ and closure66 () () : UH0 = │
00:00:33 #1637 [Verbose] > │ let v0 : (unit -> UH0) = closure67() │
00:00:33 #1638 [Verbose] > │ UH0_0(11.66423667737739, v0) │
00:00:33 #1639 [Verbose] > │ and closure65 () () : UH0 = │
00:00:33 #1640 [Verbose] > │ let v0 : (unit -> UH0) = closure66() │
00:00:33 #1641 [Verbose] > │ UH0_0(11.664236614759462, v0) │
00:00:33 #1642 [Verbose] > │ and closure64 () () : UH0 = │
00:00:33 #1643 [Verbose] > │ let v0 : (unit -> UH0) = closure65() │
00:00:33 #1644 [Verbose] > │ UH0_0(11.664236531827415, v0) │
00:00:33 #1645 [Verbose] > │ and closure63 () () : UH0 = │
00:00:33 #1646 [Verbose] > │ let v0 : (unit -> UH0) = closure64() │
00:00:33 #1647 [Verbose] > │ UH0_0(11.664236421991067, v0) │
00:00:33 #1648 [Verbose] > │ and closure62 () () : UH0 = │
00:00:33 #1649 [Verbose] > │ let v0 : (unit -> UH0) = closure63() │
00:00:33 #1650 [Verbose] > │ UH0_0(11.664236276522294, v0) │
00:00:33 #1651 [Verbose] > │ and closure61 () () : UH0 = │
00:00:33 #1652 [Verbose] > │ let v0 : (unit -> UH0) = closure62() │
00:00:33 #1653 [Verbose] > │ UH0_0(11.664236083861448, v0) │
00:00:33 #1654 [Verbose] > │ and closure60 () () : UH0 = │
00:00:33 #1655 [Verbose] > │ let v0 : (unit -> UH0) = closure61() │
00:00:33 #1656 [Verbose] > │ UH0_0(11.664235828698772, v0) │
00:00:33 #1657 [Verbose] > │ and closure59 () () : UH0 = │
00:00:33 #1658 [Verbose] > │ let v0 : (unit -> UH0) = closure60() │
00:00:33 #1659 [Verbose] > │ UH0_0(11.664235490757811, v0) │
00:00:33 #1660 [Verbose] > │ and closure58 () () : UH0 = │
00:00:33 #1661 [Verbose] > │ let v0 : (unit -> UH0) = closure59() │
00:00:33 #1662 [Verbose] > │ UH0_0(11.664235043184158, v0) │
00:00:33 #1663 [Verbose] > │ and closure57 () () : UH0 = │
00:00:33 #1664 [Verbose] > │ let v0 : (unit -> UH0) = closure58() │
00:00:33 #1665 [Verbose] > │ UH0_0(11.66423445041147, v0) │
00:00:33 #1666 [Verbose] > │ and closure56 () () : UH0 = │
00:00:33 #1667 [Verbose] > │ let v0 : (unit -> UH0) = closure57() │
00:00:33 #1668 [Verbose] > │ UH0_0(11.664233665335203, v0) │
00:00:33 #1669 [Verbose] > │ and closure55 () () : UH0 = │
00:00:33 #1670 [Verbose] > │ let v0 : (unit -> UH0) = closure56() │
00:00:33 #1671 [Verbose] > │ UH0_0(11.664232625569467, v0) │
00:00:33 #1672 [Verbose] > │ and closure54 () () : UH0 = │
00:00:33 #1673 [Verbose] > │ let v0 : (unit -> UH0) = closure55() │
00:00:33 #1674 [Verbose] > │ UH0_0(11.664231248489562, v0) │
00:00:33 #1675 [Verbose] > │ and closure53 () () : UH0 = │
00:00:33 #1676 [Verbose] > │ let v0 : (unit -> UH0) = closure54() │
00:00:33 #1677 [Verbose] > │ UH0_0(11.664229424666262, v0) │
00:00:33 #1678 [Verbose] > │ and closure52 () () : UH0 = │
00:00:33 #1679 [Verbose] > │ let v0 : (unit -> UH0) = closure53() │
00:00:33 #1680 [Verbose] > │ UH0_0(11.66422700917009, v0) │
00:00:33 #1681 [Verbose] > │ and closure51 () () : UH0 = │
00:00:33 #1682 [Verbose] > │ let v0 : (unit -> UH0) = closure52() │
00:00:33 #1683 [Verbose] > │ UH0_0(11.664223810054642, v0) │
00:00:33 #1684 [Verbose] > │ and closure50 () () : UH0 = │
00:00:33 #1685 [Verbose] > │ let v0 : (unit -> UH0) = closure51() │
00:00:33 #1686 [Verbose] > │ UH0_0(11.664219573103773, v0) │
00:00:33 #1687 [Verbose] > │ and closure49 () () : UH0 = │
00:00:33 #1688 [Verbose] > │ let v0 : (unit -> UH0) = closure50() │
00:00:33 #1689 [Verbose] > │ UH0_0(11.6642139616307, v0) │
00:00:33 #1690 [Verbose] > │ and closure48 () () : UH0 = │
00:00:33 #1691 [Verbose] > │ let v0 : (unit -> UH0) = closure49() │
00:00:33 #1692 [Verbose] > │ UH0_0(11.664206529723813, v0) │
00:00:33 #1693 [Verbose] > │ and closure47 () () : UH0 = │
00:00:33 #1694 [Verbose] > │ let v0 : (unit -> UH0) = closure48() │
00:00:33 #1695 [Verbose] > │ UH0_0(11.664196686813408, v0) │
00:00:33 #1696 [Verbose] > │ and closure46 () () : UH0 = │
00:00:33 #1697 [Verbose] > │ let v0 : (unit -> UH0) = closure47() │
00:00:33 #1698 [Verbose] > │ UH0_0(11.664183650743945, v0) │
00:00:33 #1699 [Verbose] > │ and closure45 () () : UH0 = │
00:00:33 #1700 [Verbose] > │ let v0 : (unit -> UH0) = closure46() │
00:00:33 #1701 [Verbose] > │ UH0_0(11.664166385623318, v0) │
00:00:33 #1702 [Verbose] > │ and closure44 () () : UH0 = │
00:00:33 #1703 [Verbose] > │ let v0 : (unit -> UH0) = closure45() │
00:00:33 #1704 [Verbose] > │ UH0_0(11.664143519511356, v0) │
00:00:33 #1705 [Verbose] > │ and closure43 () () : UH0 = │
00:00:33 #1706 [Verbose] > │ let v0 : (unit -> UH0) = closure44() │
00:00:33 #1707 [Verbose] > │ UH0_0(11.664113235408447, v0) │
00:00:33 #1708 [Verbose] > │ and closure42 () () : UH0 = │
00:00:33 #1709 [Verbose] > │ let v0 : (unit -> UH0) = closure43() │
00:00:33 #1710 [Verbose] > │ UH0_0(11.66407312688485, v0) │
00:00:33 #1711 [Verbose] > │ and closure41 () () : UH0 = │
00:00:33 #1712 [Verbose] > │ let v0 : (unit -> UH0) = closure42() │
00:00:33 #1713 [Verbose] > │ UH0_0(11.664020006883758, v0) │
00:00:33 #1714 [Verbose] > │ and closure40 () () : UH0 = │
00:00:33 #1715 [Verbose] > │ let v0 : (unit -> UH0) = closure41() │
00:00:33 #1716 [Verbose] > │ UH0_0(11.663949654514292, v0) │
00:00:33 #1717 [Verbose] > │ and closure39 () () : UH0 = │
00:00:33 #1718 [Verbose] > │ let v0 : (unit -> UH0) = closure40() │
00:00:33 #1719 [Verbose] > │ UH0_0(11.663856479730171, v0) │
00:00:33 #1720 [Verbose] > │ and closure38 () () : UH0 = │
00:00:33 #1721 [Verbose] > │ let v0 : (unit -> UH0) = closure39() │
00:00:33 #1722 [Verbose] > │ UH0_0(11.663733079277343, v0) │
00:00:33 #1723 [Verbose] > │ and closure37 () () : UH0 = │
00:00:33 #1724 [Verbose] > │ let v0 : (unit -> UH0) = closure38() │
00:00:33 #1725 [Verbose] > │ UH0_0(11.663569648675777, v0) │
00:00:33 #1726 [Verbose] > │ and closure36 () () : UH0 = │
00:00:33 #1727 [Verbose] > │ let v0 : (unit -> UH0) = closure37() │
00:00:33 #1728 [Verbose] > │ UH0_0(11.663353203599439, v0) │
00:00:33 #1729 [Verbose] > │ and closure35 () () : UH0 = │
00:00:33 #1730 [Verbose] > │ let v0 : (unit -> UH0) = closure36() │
00:00:33 #1731 [Verbose] > │ UH0_0(11.663066548940721, v0) │
00:00:33 #1732 [Verbose] > │ and closure34 () () : UH0 = │
00:00:33 #1733 [Verbose] > │ let v0 : (unit -> UH0) = closure35() │
00:00:33 #1734 [Verbose] > │ UH0_0(11.662686913915445, v0) │
00:00:33 #1735 [Verbose] > │ and closure33 () () : UH0 = │
00:00:33 #1736 [Verbose] > │ let v0 : (unit -> UH0) = closure34() │
00:00:33 #1737 [Verbose] > │ UH0_0(11.662184145236864, v0) │
00:00:33 #1738 [Verbose] > │ and closure32 () () : UH0 = │
00:00:33 #1739 [Verbose] > │ let v0 : (unit -> UH0) = closure33() │
00:00:33 #1740 [Verbose] > │ UH0_0(11.661518315638029, v0) │
00:00:33 #1741 [Verbose] > │ and closure31 () () : UH0 = │
00:00:33 #1742 [Verbose] > │ let v0 : (unit -> UH0) = closure32() │
00:00:33 #1743 [Verbose] > │ UH0_0(11.66063655920926, v0) │
00:00:33 #1744 [Verbose] > │ and closure30 () () : UH0 = │
00:00:33 #1745 [Verbose] > │ let v0 : (unit -> UH0) = closure31() │
00:00:33 #1746 [Verbose] > │ UH0_0(11.659468884709733, v0) │
00:00:33 #1747 [Verbose] > │ and closure29 () () : UH0 = │
00:00:33 #1748 [Verbose] > │ let v0 : (unit -> UH0) = closure30() │
00:00:33 #1749 [Verbose] > │ UH0_0(11.657922638782631, v0) │
00:00:33 #1750 [Verbose] > │ and closure28 () () : UH0 = │
00:00:33 #1751 [Verbose] > │ let v0 : (unit -> UH0) = closure29() │
00:00:33 #1752 [Verbose] > │ UH0_0(11.655875187195818, v0) │
00:00:33 #1753 [Verbose] > │ and closure27 () () : UH0 = │
00:00:33 #1754 [Verbose] > │ let v0 : (unit -> UH0) = closure28() │
00:00:33 #1755 [Verbose] > │ UH0_0(11.653164246713697, v0) │
00:00:33 #1756 [Verbose] > │ and closure26 () () : UH0 = │
00:00:33 #1757 [Verbose] > │ let v0 : (unit -> UH0) = closure27() │
00:00:33 #1758 [Verbose] > │ UH0_0(11.64957512416459, v0) │
00:00:33 #1759 [Verbose] > │ and closure25 () () : UH0 = │
00:00:33 #1760 [Verbose] > │ let v0 : (unit -> UH0) = closure26() │
00:00:33 #1761 [Verbose] > │ UH0_0(11.644823892116417, v0) │
00:00:33 #1762 [Verbose] > │ and closure24 () () : UH0 = │
00:00:33 #1763 [Verbose] > │ let v0 : (unit -> UH0) = closure25() │
00:00:33 #1764 [Verbose] > │ UH0_0(11.63853524018339, v0) │
00:00:33 #1765 [Verbose] > │ and closure23 () () : UH0 = │
00:00:33 #1766 [Verbose] > │ let v0 : (unit -> UH0) = closure24() │
00:00:33 #1767 [Verbose] > │ UH0_0(11.630213374558416, v0) │
00:00:33 #1768 [Verbose] > │ and closure22 () () : UH0 = │
00:00:33 #1769 [Verbose] > │ let v0 : (unit -> UH0) = closure23() │
00:00:33 #1770 [Verbose] > │ UH0_0(11.619203884549703, v0) │
00:00:33 #1771 [Verbose] > │ and closure21 () () : UH0 = │
00:00:33 #1772 [Verbose] > │ let v0 : (unit -> UH0) = closure22() │
00:00:33 #1773 [Verbose] > │ UH0_0(11.604643948207235, v0) │
00:00:33 #1774 [Verbose] > │ and closure20 () () : UH0 = │
00:00:33 #1775 [Verbose] > │ let v0 : (unit -> UH0) = closure21() │
00:00:33 #1776 [Verbose] > │ UH0_0(11.585397618384544, v0) │
00:00:33 #1777 [Verbose] > │ and closure19 () () : UH0 = │
00:00:33 #1778 [Verbose] > │ let v0 : (unit -> UH0) = closure20() │
00:00:33 #1779 [Verbose] > │ UH0_0(11.559972254267073, v0) │
00:00:33 #1780 [Verbose] > │ and closure18 () () : UH0 = │
00:00:33 #1781 [Verbose] > │ let v0 : (unit -> UH0) = closure19() │
00:00:33 #1782 [Verbose] > │ UH0_0(11.526411536153837, v0) │
00:00:33 #1783 [Verbose] > │ and closure17 () () : UH0 = │
00:00:33 #1784 [Verbose] > │ let v0 : (unit -> UH0) = closure18() │
00:00:33 #1785 [Verbose] > │ UH0_0(11.48216011776808, v0) │
00:00:33 #1786 [Verbose] > │ and closure16 () () : UH0 = │
00:00:33 #1787 [Verbose] > │ let v0 : (unit -> UH0) = closure17() │
00:00:33 #1788 [Verbose] > │ UH0_0(11.42389519391233, v0) │
00:00:33 #1789 [Verbose] > │ and closure15 () () : UH0 = │
00:00:33 #1790 [Verbose] > │ let v0 : (unit -> UH0) = closure16() │
00:00:33 #1791 [Verbose] > │ UH0_0(11.347321723441393, v0) │
00:00:33 #1792 [Verbose] > │ and closure14 () () : UH0 = │
00:00:33 #1793 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:33 #1794 [Verbose] > │ UH0_0(11.246931775734161, v0) │
00:00:33 #1795 [Verbose] > │ and closure13 () () : UH0 = │
00:00:33 #1796 [Verbose] > │ let v0 : (unit -> UH0) = closure14() │
00:00:33 #1797 [Verbose] > │ UH0_0(11.115736011467376, v0) │
00:00:33 #1798 [Verbose] > │ and closure12 () () : UH0 = │
00:00:33 #1799 [Verbose] > │ let v0 : (unit -> UH0) = closure13() │
00:00:33 #1800 [Verbose] > │ UH0_0(10.94498876251829, v0) │
00:00:33 #1801 [Verbose] > │ and closure11 () () : UH0 = │
00:00:33 #1802 [Verbose] > │ let v0 : (unit -> UH0) = closure12() │
00:00:33 #1803 [Verbose] > │ UH0_0(10.72394989903564, v0) │
00:00:33 #1804 [Verbose] > │ and closure10 () () : UH0 = │
00:00:33 #1805 [Verbose] > │ let v0 : (unit -> UH0) = closure11() │
00:00:33 #1806 [Verbose] > │ UH0_0(10.439758275369812, v0) │
00:00:33 #1807 [Verbose] > │ and closure9 () () : UH0 = │
00:00:33 #1808 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:33 #1809 [Verbose] > │ UH0_0(10.077531599826058, v0) │
00:00:33 #1810 [Verbose] > │ and closure8 () () : UH0 = │
00:00:33 #1811 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:33 #1812 [Verbose] > │ UH0_0(9.62084761372258, v0) │
00:00:33 #1813 [Verbose] > │ and closure7 () () : UH0 = │
00:00:33 #1814 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:33 #1815 [Verbose] > │ UH0_0(9.052781056066443, v0) │
00:00:33 #1816 [Verbose] > │ and closure6 () () : UH0 = │
00:00:33 #1817 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:33 #1818 [Verbose] > │ UH0_0(8.357635347880503, v0) │
00:00:33 #1819 [Verbose] > │ and closure5 () () : UH0 = │
00:00:33 #1820 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:33 #1821 [Verbose] > │ UH0_0(7.523376447621674, v0) │
00:00:33 #1822 [Verbose] > │ and closure4 () () : UH0 = │
00:00:33 #1823 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:33 #1824 [Verbose] > │ UH0_0(6.544529054818572, v0) │
00:00:33 #1825 [Verbose] > │ and closure3 () () : UH0 = │
00:00:33 #1826 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:33 #1827 [Verbose] > │ UH0_0(5.424976512996006, v0) │
00:00:33 #1828 [Verbose] > │ and closure2 () () : UH0 = │
00:00:33 #1829 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:33 #1830 [Verbose] > │ UH0_0(4.179852321428571, v0) │
00:00:33 #1831 [Verbose] > │ and closure1 () () : UH0 = │
00:00:33 #1832 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:33 #1833 [Verbose] > │ UH0_0(2.835714285714286, v0) │
00:00:33 #1834 [Verbose] > │ and closure0 () () : UH0 = │
00:00:33 #1835 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:33 #1836 [Verbose] > │ UH0_0(1.4285714285714286, v0) │
00:00:33 #1837 [Verbose] > │ and method3 (v0 : float, v1 : UH0) : US0 = │
00:00:33 #1838 [Verbose] > │ match v1 with │
00:00:33 #1839 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:33 #1840 [Verbose] > │ let v4 : bool = v0 <= 0.0 │
00:00:33 #1841 [Verbose] > │ if v4 then │
00:00:33 #1842 [Verbose] > │ US0_1(v2) │
00:00:33 #1843 [Verbose] > │ else │
00:00:33 #1844 [Verbose] > │ let v6 : float = v0 - 1.0 │
00:00:33 #1845 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:33 #1846 [Verbose] > │ method3(v6, v7) │
00:00:33 #1847 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:33 #1848 [Verbose] > │ US0_0 │
00:00:33 #1849 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:33 #1850 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:33 #1851 [Verbose] > │ v0 │
00:00:33 #1852 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:33 #1853 [Verbose] > │ []) * (float [])) [])) = │
00:00:33 #1854 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (121) │
00:00:33 #1855 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:33 #1856 [Verbose] > │ while method1(v1) do │
00:00:33 #1857 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:33 #1858 [Verbose] > │ let v4 : float = float v3 │
00:00:33 #1859 [Verbose] > │ let v5 : float = 0.5 * v4 │
00:00:33 #1860 [Verbose] > │ v0.[int v3] <- v5 │
00:00:33 #1861 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:33 #1862 [Verbose] > │ v1.l0 <- v6 │
00:00:33 #1863 [Verbose] > │ () │
00:00:33 #1864 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:33 #1865 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:33 #1866 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:33 #1867 [Verbose] > │ while method2(v7, v9) do │
00:00:33 #1868 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:33 #1869 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:33 #1870 [Verbose] > │ let v13 : float = round v12 │
00:00:33 #1871 [Verbose] > │ let v14 : float = -v13 │
00:00:33 #1872 [Verbose] > │ let v15 : bool = v13 >= v14 │
00:00:33 #1873 [Verbose] > │ let v16 : float = │
00:00:33 #1874 [Verbose] > │ if v15 then │
00:00:33 #1875 [Verbose] > │ v13 │
00:00:33 #1876 [Verbose] > │ else │
00:00:33 #1877 [Verbose] > │ v14 │
00:00:33 #1878 [Verbose] > │ let v17 : float = 0.0 │
00:00:33 #1879 [Verbose] > │ let v18 : (unit -> UH0) = closure0() │
00:00:33 #1880 [Verbose] > │ let v19 : UH0 = UH0_0(v17, v18) │
00:00:33 #1881 [Verbose] > │ let v20 : US0 = method3(v16, v19) │
00:00:33 #1882 [Verbose] > │ let v23 : float = │
00:00:33 #1883 [Verbose] > │ match v20 with │
00:00:33 #1884 [Verbose] > │ | US0_0 -> (* None *) │
00:00:33 #1885 [Verbose] > │ 0.0 │
00:00:33 #1886 [Verbose] > │ | US0_1(v21) -> (* Some *) │
00:00:33 #1887 [Verbose] > │ v21 │
00:00:33 #1888 [Verbose] > │ v8.[int v11] <- v23 │
00:00:33 #1889 [Verbose] > │ let v24 : int32 = v11 + 1 │
00:00:33 #1890 [Verbose] > │ v9.l0 <- v24 │
00:00:33 #1891 [Verbose] > │ () │
00:00:33 #1892 [Verbose] > │ let v25 : string = "velocity of bike (m/s)" │
00:00:33 #1893 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:33 #1894 [Verbose] > │ (v25, v0, v8)|] │
00:00:33 #1895 [Verbose] > │ let v27 : (struct (string * (float []) * (float [])) []) = method4(v26) │
00:00:33 #1896 [Verbose] > │ let v28 : string = "bike velocity" │
00:00:33 #1897 [Verbose] > │ let v29 : string = "time (s)" │
00:00:33 #1898 [Verbose] > │ let v30 : string = "" │
00:00:33 #1899 [Verbose] > │ struct (v28, v29, v30, v27) │
00:00:33 #1900 [Verbose] > │ method0() │
00:00:33 #1901 [Verbose] > │ │
00:00:33 #1902 [Verbose] > │ │
00:00:33 #1903 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1904 [Verbose] >
00:00:33 #1905 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 #1906 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 #1907 [Verbose] > │ ## velocity_ftv │
00:00:33 #1908 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1909 [Verbose] >
00:00:33 #1910 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #1911 [Verbose] > inl newton_second_tv m fs (t, v0) =
00:00:33 #1912 [Verbose] > inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:00:33 #1913 [Verbose] > inl acc = f_net / m
00:00:33 #1914 [Verbose] > 1, acc
00:00:33 #1915 [Verbose] >
00:00:33 #1916 [Verbose] > inl update_tv dt m fs (t, v0) =
00:00:33 #1917 [Verbose] > inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:00:33 #1918 [Verbose] > t + dtdt * dt, v0 + dvdt * dt
00:00:33 #1919 [Verbose] >
00:00:33 #1920 [Verbose] > inl velocity_ftv dt m tv0 fs t =
00:00:33 #1921 [Verbose] > stream.iterate (join update_tv dt m fs) tv0
00:00:33 #1922 [Verbose] > |> stream.try_item (t / dt |> math.round |> abs)
00:00:33 #1923 [Verbose] > |> optionm.map snd
00:00:33 #1924 [Verbose] > |> optionm'.default_value 0
00:00:33 #1925 [Verbose] >
00:00:33 #1926 [Verbose] > ╭─[ 281.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 #1927 [Verbose] > │ () │
00:00:33 #1928 [Verbose] > │ │
00:00:33 #1929 [Verbose] > │ │
00:00:33 #1930 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1931 [Verbose] >
00:00:33 #1932 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #1933 [Verbose] > // // test
00:00:33 #1934 [Verbose] >
00:00:33 #1935 [Verbose] > inl x = am'.init_series 0 100 0.1
00:00:33 #1936 [Verbose] > inl y =
00:00:33 #1937 [Verbose] > x
00:00:33 #1938 [Verbose] > |> am.map (
00:00:33 #1939 [Verbose] > velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:00:33 #1940 [Verbose] > v) => f_air 2 1.225 0.5 v ]]
00:00:33 #1941 [Verbose] > )
00:00:33 #1942 [Verbose] > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:00:33 #1943 [Verbose] > x, y ]]
00:00:34 #1944 [Verbose] >
00:00:34 #1945 [Verbose] > ╭─[ 498.68ms - return value ]──────────────────────────────────────────────────╮
00:00:34 #1946 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:34 #1947 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:34 #1948 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:34 #1949 [Verbose] > │ stroke="none"/> │
00:00:34 #1950 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:34 #1951 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:34 #1952 [Verbose] > │ fill="#FFFFFF"> │
00:00:34 #1953 [Verbose] > │ pedaling and coasting with air │
00:00:34 #1954 [Verbose] > │ </text> │
00:00:34 #1955 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:34 #1956 [Verbose] > │ y2="75"/> │
00:00:34 #1957 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:34 #1958 [Verbose] > │ y2="75"/> │
00:00:34 #1959 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:34 #1960 [Verbose] > │ y2="75"/> │
00:00:34 #1961 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:34 #1962 [Verbose] > │ y2="75"/> │
00:00:34 #1963 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x... │
00:00:34 #1964 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1965 [Verbose] >
00:00:34 #1966 [Verbose] > ╭─[ 509.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #1967 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:34 #1968 [Verbose] > │ and UH0 = │
00:00:34 #1969 [Verbose] > │ | UH0_0 of float * float * (unit -> UH0) │
00:00:34 #1970 [Verbose] > │ | UH0_1 │
00:00:34 #1971 [Verbose] > │ and [<Struct>] US0 = │
00:00:34 #1972 [Verbose] > │ | US0_0 │
00:00:34 #1973 [Verbose] > │ | US0_1 of f1_0 : float * f1_1 : float │
00:00:34 #1974 [Verbose] > │ and [<Struct>] US1 = │
00:00:34 #1975 [Verbose] > │ | US1_0 │
00:00:34 #1976 [Verbose] > │ | US1_1 of f1_0 : float │
00:00:34 #1977 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:34 #1978 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:34 #1979 [Verbose] > │ let v2 : bool = v1 < 1001 │
00:00:34 #1980 [Verbose] > │ v2 │
00:00:34 #1981 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:34 #1982 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:34 #1983 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:34 #1984 [Verbose] > │ v3 │
00:00:34 #1985 [Verbose] > │ and closure0 () struct (v0 : float, v1 : float) : struct (float * float) = │
00:00:34 #1986 [Verbose] > │ let v2 : float = -v1 │
00:00:34 #1987 [Verbose] > │ let v3 : bool = v1 >= v2 │
00:00:34 #1988 [Verbose] > │ let v4 : float = │
00:00:34 #1989 [Verbose] > │ if v3 then │
00:00:34 #1990 [Verbose] > │ v1 │
00:00:34 #1991 [Verbose] > │ else │
00:00:34 #1992 [Verbose] > │ v2 │
00:00:34 #1993 [Verbose] > │ let v5 : float = -1.225 * v4 │
00:00:34 #1994 [Verbose] > │ let v6 : float = v5 * v1 │
00:00:34 #1995 [Verbose] > │ let v7 : float = v6 / 2.0 │
00:00:34 #1996 [Verbose] > │ let v8 : float = v0 / 20.0 │
00:00:34 #1997 [Verbose] > │ let v9 : int32 = int32 v8 │
00:00:34 #1998 [Verbose] > │ let v10 : float = float v9 │
00:00:34 #1999 [Verbose] > │ let v11 : float = v10 * 20.0 │
00:00:34 #2000 [Verbose] > │ let v12 : float = v0 - v11 │
00:00:34 #2001 [Verbose] > │ let v13 : bool = v12 > 0.0 │
00:00:34 #2002 [Verbose] > │ let v15 : bool = │
00:00:34 #2003 [Verbose] > │ if v13 then │
00:00:34 #2004 [Verbose] > │ let v14 : bool = v12 < 10.0 │
00:00:34 #2005 [Verbose] > │ v14 │
00:00:34 #2006 [Verbose] > │ else │
00:00:34 #2007 [Verbose] > │ false │
00:00:34 #2008 [Verbose] > │ let v16 : float = │
00:00:34 #2009 [Verbose] > │ if v15 then │
00:00:34 #2010 [Verbose] > │ 10.0 │
00:00:34 #2011 [Verbose] > │ else │
00:00:34 #2012 [Verbose] > │ 0.0 │
00:00:34 #2013 [Verbose] > │ let v17 : float = v16 + v7 │
00:00:34 #2014 [Verbose] > │ let v18 : float = v17 / 20.0 │
00:00:34 #2015 [Verbose] > │ let v19 : float = v0 + 0.1 │
00:00:34 #2016 [Verbose] > │ let v20 : float = v18 * 0.1 │
00:00:34 #2017 [Verbose] > │ let v21 : float = v1 + v20 │
00:00:34 #2018 [Verbose] > │ struct (v19, v21) │
00:00:34 #2019 [Verbose] > │ and method3 () : (struct (float * float) -> struct (float * float)) = │
00:00:34 #2020 [Verbose] > │ closure0() │
00:00:34 #2021 [Verbose] > │ and closure1 (v0 : (struct (float * float) -> struct (float * float)), v1 : │
00:00:34 #2022 [Verbose] > │ float, v2 : float, v3 : float, v4 : float) () : UH0 = │
00:00:34 #2023 [Verbose] > │ let struct (v5 : float, v6 : float) = v0 struct (v3, v4) │
00:00:34 #2024 [Verbose] > │ let v7 : (unit -> UH0) = closure1(v0, v1, v2, v5, v6) │
00:00:34 #2025 [Verbose] > │ UH0_0(v3, v4, v7) │
00:00:34 #2026 [Verbose] > │ and method4 (v0 : float, v1 : UH0) : US0 = │
00:00:34 #2027 [Verbose] > │ match v1 with │
00:00:34 #2028 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* StreamCons *) │
00:00:34 #2029 [Verbose] > │ let v5 : bool = v0 <= 0.0 │
00:00:34 #2030 [Verbose] > │ if v5 then │
00:00:34 #2031 [Verbose] > │ US0_1(v2, v3) │
00:00:34 #2032 [Verbose] > │ else │
00:00:34 #2033 [Verbose] > │ let v7 : float = v0 - 1.0 │
00:00:34 #2034 [Verbose] > │ let v8 : UH0 = v4 () │
00:00:34 #2035 [Verbose] > │ method4(v7, v8) │
00:00:34 #2036 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:34 #2037 [Verbose] > │ US0_0 │
00:00:34 #2038 [Verbose] > │ and method5 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:34 #2039 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:34 #2040 [Verbose] > │ v0 │
00:00:34 #2041 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:34 #2042 [Verbose] > │ []) * (float [])) [])) = │
00:00:34 #2043 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (1001) │
00:00:34 #2044 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:34 #2045 [Verbose] > │ while method1(v1) do │
00:00:34 #2046 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:34 #2047 [Verbose] > │ let v4 : float = float v3 │
00:00:34 #2048 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:34 #2049 [Verbose] > │ v0.[int v3] <- v5 │
00:00:34 #2050 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:34 #2051 [Verbose] > │ v1.l0 <- v6 │
00:00:34 #2052 [Verbose] > │ () │
00:00:34 #2053 [Verbose] > │ let v7 : float = 0.0 │
00:00:34 #2054 [Verbose] > │ let v8 : float = 0.0 │
00:00:34 #2055 [Verbose] > │ let v9 : int32 = v0.Length │
00:00:34 #2056 [Verbose] > │ let v10 : (float []) = Array.zeroCreate<float> (v9) │
00:00:34 #2057 [Verbose] > │ let v11 : Mut0 = {l0 = 0} : Mut0 │
00:00:34 #2058 [Verbose] > │ while method2(v9, v11) do │
00:00:34 #2059 [Verbose] > │ let v13 : int32 = v11.l0 │
00:00:34 #2060 [Verbose] > │ let v14 : float = v0.[int v13] │
00:00:34 #2061 [Verbose] > │ let v15 : (struct (float * float) -> struct (float * float)) = │
00:00:34 #2062 [Verbose] > │ method3() │
00:00:34 #2063 [Verbose] > │ let struct (v16 : float, v17 : float) = v15 struct (v7, v8) │
00:00:34 #2064 [Verbose] > │ let v18 : float = v14 / 0.1 │
00:00:34 #2065 [Verbose] > │ let v19 : float = round v18 │
00:00:34 #2066 [Verbose] > │ let v20 : float = -v19 │
00:00:34 #2067 [Verbose] > │ let v21 : bool = v19 >= v20 │
00:00:34 #2068 [Verbose] > │ let v22 : float = │
00:00:34 #2069 [Verbose] > │ if v21 then │
00:00:34 #2070 [Verbose] > │ v19 │
00:00:34 #2071 [Verbose] > │ else │
00:00:34 #2072 [Verbose] > │ v20 │
00:00:34 #2073 [Verbose] > │ let v23 : (unit -> UH0) = closure1(v15, v7, v8, v16, v17) │
00:00:34 #2074 [Verbose] > │ let v24 : UH0 = UH0_0(v7, v8, v23) │
00:00:34 #2075 [Verbose] > │ let v25 : US0 = method4(v22, v24) │
00:00:34 #2076 [Verbose] > │ let v31 : US1 = │
00:00:34 #2077 [Verbose] > │ match v25 with │
00:00:34 #2078 [Verbose] > │ | US0_0 -> (* None *) │
00:00:34 #2079 [Verbose] > │ US1_0 │
00:00:34 #2080 [Verbose] > │ | US0_1(v26, v27) -> (* Some *) │
00:00:34 #2081 [Verbose] > │ US1_1(v27) │
00:00:34 #2082 [Verbose] > │ let v34 : float = │
00:00:34 #2083 [Verbose] > │ match v31 with │
00:00:34 #2084 [Verbose] > │ | US1_0 -> (* None *) │
00:00:34 #2085 [Verbose] > │ 0.0 │
00:00:34 #2086 [Verbose] > │ | US1_1(v32) -> (* Some *) │
00:00:34 #2087 [Verbose] > │ v32 │
00:00:34 #2088 [Verbose] > │ v10.[int v13] <- v34 │
00:00:34 #2089 [Verbose] > │ let v35 : int32 = v13 + 1 │
00:00:34 #2090 [Verbose] > │ v11.l0 <- v35 │
00:00:34 #2091 [Verbose] > │ () │
00:00:34 #2092 [Verbose] > │ let v36 : string = "velocity of bike (m/s)" │
00:00:34 #2093 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:34 #2094 [Verbose] > │ (v36, v0, v10)|] │
00:00:34 #2095 [Verbose] > │ let v38 : (struct (string * (float []) * (float [])) []) = method5(v37) │
00:00:34 #2096 [Verbose] > │ let v39 : string = "pedaling and coasting with air" │
00:00:34 #2097 [Verbose] > │ let v40 : string = "time (s)" │
00:00:34 #2098 [Verbose] > │ let v41 : string = "" │
00:00:34 #2099 [Verbose] > │ struct (v39, v40, v41, v38) │
00:00:34 #2100 [Verbose] > │ method0() │
00:00:34 #2101 [Verbose] > │ │
00:00:34 #2102 [Verbose] > │ │
00:00:34 #2103 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2104 [Verbose] >
00:00:34 #2105 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #2106 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #2107 [Verbose] > │ ## velocity_ftxv │
00:00:34 #2108 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2109 [Verbose] >
00:00:34 #2110 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #2111 [Verbose] > nominal state_1d = time * position * velocity
00:00:34 #2112 [Verbose] > nominal rrr = f64 * f64 * f64
00:00:34 #2113 [Verbose] >
00:00:34 #2114 [Verbose] > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:00:34 #2115 [Verbose] > inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:00:34 #2116 [Verbose] > listm'.sum
00:00:34 #2117 [Verbose] > inl acc = f_net / m
00:00:34 #2118 [Verbose] > rrr (1f64, v0, acc)
00:00:34 #2119 [Verbose] >
00:00:34 #2120 [Verbose] > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:00:34 #2121 [Verbose] > inl (rrr (_, _, dvdt)) = deriv t
00:00:34 #2122 [Verbose] > inl t1 = t0 + dt
00:00:34 #2123 [Verbose] > inl x1 = x0 + v0 * dt
00:00:34 #2124 [Verbose] > inl v1 = v0 + dvdt * dt
00:00:34 #2125 [Verbose] > state_1d (t1, x1, v1)
00:00:34 #2126 [Verbose] >
00:00:34 #2127 [Verbose] > inl update_txv dt m fs =
00:00:34 #2128 [Verbose] > newton_second_1d m fs |> euler_1d dt
00:00:34 #2129 [Verbose] >
00:00:34 #2130 [Verbose] > inl states_txv dt m txv0 fs =
00:00:34 #2131 [Verbose] > seq.iterate_ (update_txv dt m fs) txv0
00:00:34 #2132 [Verbose] >
00:00:34 #2133 [Verbose] > inl velocity_1d sts t =
00:00:34 #2134 [Verbose] > inl (state_1d (t0, _, _)) = sts 0
00:00:34 #2135 [Verbose] > inl (state_1d (t1, _, _)) = sts 1
00:00:34 #2136 [Verbose] > inl dt = t1 - t0
00:00:34 #2137 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:34 #2138 [Verbose] > inl (state_1d (_, _, v0)) = sts num_steps
00:00:34 #2139 [Verbose] > v0
00:00:34 #2140 [Verbose] >
00:00:34 #2141 [Verbose] > inl velocity_ftxv dt m txv0 fs =
00:00:34 #2142 [Verbose] > states_txv dt m txv0 fs |> velocity_1d
00:00:34 #2143 [Verbose] >
00:00:34 #2144 [Verbose] > inl position_1d sts t =
00:00:34 #2145 [Verbose] > inl (state_1d (t0, _, _)) = sts 0
00:00:34 #2146 [Verbose] > inl (state_1d (t1, _, _)) = sts 1
00:00:34 #2147 [Verbose] > inl dt = t1 - t0
00:00:34 #2148 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:34 #2149 [Verbose] > inl (state_1d (_, x0, _)) = sts num_steps
00:00:34 #2150 [Verbose] > x0
00:00:34 #2151 [Verbose] >
00:00:34 #2152 [Verbose] > inl position_ftxv dt m txv0 fs =
00:00:34 #2153 [Verbose] > states_txv dt m txv0 fs |> position_1d
00:00:34 #2154 [Verbose] >
00:00:34 #2155 [Verbose] > inl spring_force k (state_1d (_, x0, _)) =
00:00:34 #2156 [Verbose] > -k * x0
00:00:34 #2157 [Verbose] >
00:00:34 #2158 [Verbose] > ╭─[ 270.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #2159 [Verbose] > │ () │
00:00:34 #2160 [Verbose] > │ │
00:00:34 #2161 [Verbose] > │ │
00:00:34 #2162 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2163 [Verbose] >
00:00:34 #2164 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #2165 [Verbose] > // // test
00:00:34 #2166 [Verbose] >
00:00:34 #2167 [Verbose] > inl damped_ho_forces () =
00:00:34 #2168 [Verbose] > [[
00:00:34 #2169 [Verbose] > spring_force 0.8
00:00:34 #2170 [Verbose] > fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:00:34 #2171 [Verbose] > fun _ => -0.0027 * 9.80665
00:00:34 #2172 [Verbose] > ]]
00:00:34 #2173 [Verbose] >
00:00:34 #2174 [Verbose] > inl damped_ho_states () =
00:00:34 #2175 [Verbose] > states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:00:34 #2176 [Verbose] >
00:00:34 #2177 [Verbose] > inl pingpong_position t =
00:00:34 #2178 [Verbose] > position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:00:34 #2179 [Verbose] >
00:00:34 #2180 [Verbose] > inl x : a _ f64 = am'.init_series 0 3 0.01
00:00:34 #2181 [Verbose] > inl y = x |> am.map pingpong_position
00:00:34 #2182 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:00:34 #2183 [Verbose] >
00:00:34 #2184 [Verbose] > ╭─[ 291.49ms - return value ]──────────────────────────────────────────────────╮
00:00:34 #2185 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:34 #2186 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:34 #2187 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:34 #2188 [Verbose] > │ stroke="none"/> │
00:00:34 #2189 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:34 #2190 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:34 #2191 [Verbose] > │ fill="#FFFFFF"> │
00:00:34 #2192 [Verbose] > │ ping pong ball on a slinky │
00:00:34 #2193 [Verbose] > │ </text> │
00:00:34 #2194 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:34 #2195 [Verbose] > │ y2="75"/> │
00:00:34 #2196 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:34 #2197 [Verbose] > │ y2="75"/> │
00:00:34 #2198 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:34 #2199 [Verbose] > │ y2="75"/> │
00:00:34 #2200 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:34 #2201 [Verbose] > │ y2="75"/> │
00:00:34 #2202 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9... │
00:00:34 #2203 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2204 [Verbose] >
00:00:34 #2205 [Verbose] > ╭─[ 301.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #2206 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:34 #2207 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:34 #2208 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:34 #2209 [Verbose] > │ let v2 : bool = v1 < 301 │
00:00:34 #2210 [Verbose] > │ v2 │
00:00:34 #2211 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:34 #2212 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:34 #2213 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:34 #2214 [Verbose] > │ v3 │
00:00:34 #2215 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:34 #2216 [Verbose] > │ * float * float) = │
00:00:34 #2217 [Verbose] > │ let v4 : bool = v3 <= 0.0 │
00:00:34 #2218 [Verbose] > │ if v4 then │
00:00:34 #2219 [Verbose] > │ struct (v0, v1, v2) │
00:00:34 #2220 [Verbose] > │ else │
00:00:34 #2221 [Verbose] > │ let v5 : float = -v2 │
00:00:34 #2222 [Verbose] > │ let v6 : bool = v2 >= v5 │
00:00:34 #2223 [Verbose] > │ let v7 : float = │
00:00:34 #2224 [Verbose] > │ if v6 then │
00:00:34 #2225 [Verbose] > │ v2 │
00:00:34 #2226 [Verbose] > │ else │
00:00:34 #2227 [Verbose] > │ v5 │
00:00:34 #2228 [Verbose] > │ let v8 : float = -0.0030787608005179976 * v7 │
00:00:34 #2229 [Verbose] > │ let v9 : float = v8 * v2 │
00:00:34 #2230 [Verbose] > │ let v10 : float = v9 / 2.0 │
00:00:34 #2231 [Verbose] > │ let v11 : float = -0.8 * v1 │
00:00:34 #2232 [Verbose] > │ let v12 : float = v11 + v10 │
00:00:34 #2233 [Verbose] > │ let v13 : float = v12 + -0.026477955 │
00:00:34 #2234 [Verbose] > │ let v14 : float = v13 / 0.0027 │
00:00:34 #2235 [Verbose] > │ let v15 : float = v0 + 0.001 │
00:00:34 #2236 [Verbose] > │ let v16 : float = v2 * 0.001 │
00:00:34 #2237 [Verbose] > │ let v17 : float = v1 + v16 │
00:00:34 #2238 [Verbose] > │ let v18 : float = v14 * 0.001 │
00:00:34 #2239 [Verbose] > │ let v19 : float = v2 + v18 │
00:00:34 #2240 [Verbose] > │ let v20 : float = v3 - 1.0 │
00:00:34 #2241 [Verbose] > │ method3(v15, v17, v19, v20) │
00:00:34 #2242 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:34 #2243 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:34 #2244 [Verbose] > │ v0 │
00:00:34 #2245 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:34 #2246 [Verbose] > │ []) * (float [])) [])) = │
00:00:34 #2247 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (301) │
00:00:34 #2248 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:34 #2249 [Verbose] > │ while method1(v1) do │
00:00:34 #2250 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:34 #2251 [Verbose] > │ let v4 : float = float v3 │
00:00:34 #2252 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:34 #2253 [Verbose] > │ v0.[int v3] <- v5 │
00:00:34 #2254 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:34 #2255 [Verbose] > │ v1.l0 <- v6 │
00:00:34 #2256 [Verbose] > │ () │
00:00:34 #2257 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:34 #2258 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:34 #2259 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:34 #2260 [Verbose] > │ while method2(v7, v9) do │
00:00:34 #2261 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:34 #2262 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:34 #2263 [Verbose] > │ let v13 : float = 0.0 │
00:00:34 #2264 [Verbose] > │ let v14 : float = 0.1 │
00:00:34 #2265 [Verbose] > │ let v15 : float = 0.0 │
00:00:34 #2266 [Verbose] > │ let v16 : float = 0.0 │
00:00:34 #2267 [Verbose] > │ let struct (v17 : float, v18 : float, v19 : float) = method3(v13, │
00:00:34 #2268 [Verbose] > │ v14, v15, v16) │
00:00:34 #2269 [Verbose] > │ let v20 : float = 0.0 │
00:00:34 #2270 [Verbose] > │ let v21 : float = 0.1 │
00:00:34 #2271 [Verbose] > │ let v22 : float = 0.0 │
00:00:34 #2272 [Verbose] > │ let v23 : float = 1.0 │
00:00:34 #2273 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method3(v20, │
00:00:34 #2274 [Verbose] > │ v21, v22, v23) │
00:00:34 #2275 [Verbose] > │ let v27 : float = v24 - v17 │
00:00:34 #2276 [Verbose] > │ let v28 : float = v12 / v27 │
00:00:34 #2277 [Verbose] > │ let v29 : float = round v28 │
00:00:34 #2278 [Verbose] > │ let v30 : float = -v29 │
00:00:34 #2279 [Verbose] > │ let v31 : bool = v29 >= v30 │
00:00:34 #2280 [Verbose] > │ let v32 : float = │
00:00:34 #2281 [Verbose] > │ if v31 then │
00:00:34 #2282 [Verbose] > │ v29 │
00:00:34 #2283 [Verbose] > │ else │
00:00:34 #2284 [Verbose] > │ v30 │
00:00:34 #2285 [Verbose] > │ let v33 : float = 0.0 │
00:00:34 #2286 [Verbose] > │ let v34 : float = 0.1 │
00:00:34 #2287 [Verbose] > │ let v35 : float = 0.0 │
00:00:34 #2288 [Verbose] > │ let struct (v36 : float, v37 : float, v38 : float) = method3(v33, │
00:00:34 #2289 [Verbose] > │ v34, v35, v32) │
00:00:34 #2290 [Verbose] > │ v8.[int v11] <- v37 │
00:00:34 #2291 [Verbose] > │ let v39 : int32 = v11 + 1 │
00:00:34 #2292 [Verbose] > │ v9.l0 <- v39 │
00:00:34 #2293 [Verbose] > │ () │
00:00:34 #2294 [Verbose] > │ let v40 : string = "position (m)" │
00:00:34 #2295 [Verbose] > │ let v41 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:34 #2296 [Verbose] > │ (v40, v0, v8)|] │
00:00:34 #2297 [Verbose] > │ let v42 : (struct (string * (float []) * (float [])) []) = method4(v41) │
00:00:34 #2298 [Verbose] > │ let v43 : string = "ping pong ball on a slinky" │
00:00:34 #2299 [Verbose] > │ let v44 : string = "time (s)" │
00:00:34 #2300 [Verbose] > │ let v45 : string = "" │
00:00:34 #2301 [Verbose] > │ struct (v43, v44, v45, v42) │
00:00:34 #2302 [Verbose] > │ method0() │
00:00:34 #2303 [Verbose] > │ │
00:00:34 #2304 [Verbose] > │ │
00:00:34 #2305 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2306 [Verbose] >
00:00:34 #2307 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #2308 [Verbose] > // // test
00:00:34 #2309 [Verbose] >
00:00:34 #2310 [Verbose] > inl pingpong_velocity t =
00:00:34 #2311 [Verbose] > velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:00:34 #2312 [Verbose] >
00:00:34 #2313 [Verbose] > inl x = am'.init_series 0 3 0.01
00:00:34 #2314 [Verbose] > inl y = x |> am.map pingpong_velocity
00:00:34 #2315 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:00:35 #2316 [Verbose] >
00:00:35 #2317 [Verbose] > ╭─[ 320.98ms - return value ]──────────────────────────────────────────────────╮
00:00:35 #2318 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:35 #2319 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:35 #2320 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:35 #2321 [Verbose] > │ stroke="none"/> │
00:00:35 #2322 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:35 #2323 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:35 #2324 [Verbose] > │ fill="#FFFFFF"> │
00:00:35 #2325 [Verbose] > │ ping pong ball on a slinky │
00:00:35 #2326 [Verbose] > │ </text> │
00:00:35 #2327 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:35 #2328 [Verbose] > │ y2="75"/> │
00:00:35 #2329 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:35 #2330 [Verbose] > │ y2="75"/> │
00:00:35 #2331 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:35 #2332 [Verbose] > │ y2="75"/> │
00:00:35 #2333 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:35 #2334 [Verbose] > │ y2="75"/> │
00:00:35 #2335 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9... │
00:00:35 #2336 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #2337 [Verbose] >
00:00:35 #2338 [Verbose] > ╭─[ 333.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #2339 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:35 #2340 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:35 #2341 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:35 #2342 [Verbose] > │ let v2 : bool = v1 < 301 │
00:00:35 #2343 [Verbose] > │ v2 │
00:00:35 #2344 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:35 #2345 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:35 #2346 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:35 #2347 [Verbose] > │ v3 │
00:00:35 #2348 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:35 #2349 [Verbose] > │ * float * float) = │
00:00:35 #2350 [Verbose] > │ let v4 : bool = v3 <= 0.0 │
00:00:35 #2351 [Verbose] > │ if v4 then │
00:00:35 #2352 [Verbose] > │ struct (v0, v1, v2) │
00:00:35 #2353 [Verbose] > │ else │
00:00:35 #2354 [Verbose] > │ let v5 : float = -v2 │
00:00:35 #2355 [Verbose] > │ let v6 : bool = v2 >= v5 │
00:00:35 #2356 [Verbose] > │ let v7 : float = │
00:00:35 #2357 [Verbose] > │ if v6 then │
00:00:35 #2358 [Verbose] > │ v2 │
00:00:35 #2359 [Verbose] > │ else │
00:00:35 #2360 [Verbose] > │ v5 │
00:00:35 #2361 [Verbose] > │ let v8 : float = -0.0030787608005179976 * v7 │
00:00:35 #2362 [Verbose] > │ let v9 : float = v8 * v2 │
00:00:35 #2363 [Verbose] > │ let v10 : float = v9 / 2.0 │
00:00:35 #2364 [Verbose] > │ let v11 : float = -0.8 * v1 │
00:00:35 #2365 [Verbose] > │ let v12 : float = v11 + v10 │
00:00:35 #2366 [Verbose] > │ let v13 : float = v12 + -0.026477955 │
00:00:35 #2367 [Verbose] > │ let v14 : float = v13 / 0.0027 │
00:00:35 #2368 [Verbose] > │ let v15 : float = v0 + 0.001 │
00:00:35 #2369 [Verbose] > │ let v16 : float = v2 * 0.001 │
00:00:35 #2370 [Verbose] > │ let v17 : float = v1 + v16 │
00:00:35 #2371 [Verbose] > │ let v18 : float = v14 * 0.001 │
00:00:35 #2372 [Verbose] > │ let v19 : float = v2 + v18 │
00:00:35 #2373 [Verbose] > │ let v20 : float = v3 - 1.0 │
00:00:35 #2374 [Verbose] > │ method3(v15, v17, v19, v20) │
00:00:35 #2375 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:35 #2376 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:35 #2377 [Verbose] > │ v0 │
00:00:35 #2378 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:35 #2379 [Verbose] > │ []) * (float [])) [])) = │
00:00:35 #2380 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (301) │
00:00:35 #2381 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:35 #2382 [Verbose] > │ while method1(v1) do │
00:00:35 #2383 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:35 #2384 [Verbose] > │ let v4 : float = float v3 │
00:00:35 #2385 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:35 #2386 [Verbose] > │ v0.[int v3] <- v5 │
00:00:35 #2387 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:35 #2388 [Verbose] > │ v1.l0 <- v6 │
00:00:35 #2389 [Verbose] > │ () │
00:00:35 #2390 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:35 #2391 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:35 #2392 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:35 #2393 [Verbose] > │ while method2(v7, v9) do │
00:00:35 #2394 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:35 #2395 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:35 #2396 [Verbose] > │ let v13 : float = 0.0 │
00:00:35 #2397 [Verbose] > │ let v14 : float = 0.1 │
00:00:35 #2398 [Verbose] > │ let v15 : float = 0.0 │
00:00:35 #2399 [Verbose] > │ let v16 : float = 0.0 │
00:00:35 #2400 [Verbose] > │ let struct (v17 : float, v18 : float, v19 : float) = method3(v13, │
00:00:35 #2401 [Verbose] > │ v14, v15, v16) │
00:00:35 #2402 [Verbose] > │ let v20 : float = 0.0 │
00:00:35 #2403 [Verbose] > │ let v21 : float = 0.1 │
00:00:35 #2404 [Verbose] > │ let v22 : float = 0.0 │
00:00:35 #2405 [Verbose] > │ let v23 : float = 1.0 │
00:00:35 #2406 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method3(v20, │
00:00:35 #2407 [Verbose] > │ v21, v22, v23) │
00:00:35 #2408 [Verbose] > │ let v27 : float = v24 - v17 │
00:00:35 #2409 [Verbose] > │ let v28 : float = v12 / v27 │
00:00:35 #2410 [Verbose] > │ let v29 : float = round v28 │
00:00:35 #2411 [Verbose] > │ let v30 : float = -v29 │
00:00:35 #2412 [Verbose] > │ let v31 : bool = v29 >= v30 │
00:00:35 #2413 [Verbose] > │ let v32 : float = │
00:00:35 #2414 [Verbose] > │ if v31 then │
00:00:35 #2415 [Verbose] > │ v29 │
00:00:35 #2416 [Verbose] > │ else │
00:00:35 #2417 [Verbose] > │ v30 │
00:00:35 #2418 [Verbose] > │ let v33 : float = 0.0 │
00:00:35 #2419 [Verbose] > │ let v34 : float = 0.1 │
00:00:35 #2420 [Verbose] > │ let v35 : float = 0.0 │
00:00:35 #2421 [Verbose] > │ let struct (v36 : float, v37 : float, v38 : float) = method3(v33, │
00:00:35 #2422 [Verbose] > │ v34, v35, v32) │
00:00:35 #2423 [Verbose] > │ v8.[int v11] <- v38 │
00:00:35 #2424 [Verbose] > │ let v39 : int32 = v11 + 1 │
00:00:35 #2425 [Verbose] > │ v9.l0 <- v39 │
00:00:35 #2426 [Verbose] > │ () │
00:00:35 #2427 [Verbose] > │ let v40 : string = "velocity (m/s)" │
00:00:35 #2428 [Verbose] > │ let v41 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:35 #2429 [Verbose] > │ (v40, v0, v8)|] │
00:00:35 #2430 [Verbose] > │ let v42 : (struct (string * (float []) * (float [])) []) = method4(v41) │
00:00:35 #2431 [Verbose] > │ let v43 : string = "ping pong ball on a slinky" │
00:00:35 #2432 [Verbose] > │ let v44 : string = "time (s)" │
00:00:35 #2433 [Verbose] > │ let v45 : string = "" │
00:00:35 #2434 [Verbose] > │ struct (v43, v44, v45, v42) │
00:00:35 #2435 [Verbose] > │ method0() │
00:00:35 #2436 [Verbose] > │ │
00:00:35 #2437 [Verbose] > │ │
00:00:35 #2438 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #2439 [Verbose] >
00:00:35 #2440 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 #2441 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 #2442 [Verbose] > │ ## shift │
00:00:35 #2443 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #2444 [Verbose] >
00:00:35 #2445 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #2446 [Verbose] > type update_function s = s -> s
00:00:35 #2447 [Verbose] >
00:00:35 #2448 [Verbose] > type differential_equation s ds = s -> ds
00:00:35 #2449 [Verbose] >
00:00:35 #2450 [Verbose] > type numerical_method s ds = differential_equation s ds -> update_function s
00:00:35 #2451 [Verbose] >
00:00:35 #2452 [Verbose] >
00:00:35 #2453 [Verbose] > inl solver method =
00:00:35 #2454 [Verbose] > method >> seq.iterate
00:00:35 #2455 [Verbose] > inl solver' method =
00:00:35 #2456 [Verbose] > method >> seq.iterate'
00:00:35 #2457 [Verbose] > inl solver_ method =
00:00:35 #2458 [Verbose] > method >> seq.iterate_
00:00:35 #2459 [Verbose] >
00:00:35 #2460 [Verbose] >
00:00:35 #2461 [Verbose] > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:00:35 #2462 [Verbose] > inl (rrr (_, _, dvdt)) = deriv t
00:00:35 #2463 [Verbose] > inl t1 = t0 + dt
00:00:35 #2464 [Verbose] > inl v1 = v0 + dvdt * dt
00:00:35 #2465 [Verbose] > inl x1 = x0 + v1 * dt
00:00:35 #2466 [Verbose] > state_1d (t1, x1, v1)
00:00:35 #2467 [Verbose] >
00:00:35 #2468 [Verbose] > inl update_txv_ec dt m fs =
00:00:35 #2469 [Verbose] > euler_cromer_1d dt (newton_second_1d m fs)
00:00:35 #2470 [Verbose] >
00:00:35 #2471 [Verbose] > prototype (+++) ds : ds -> ds -> ds
00:00:35 #2472 [Verbose] > prototype scale ds : f64 -> ds -> ds
00:00:35 #2473 [Verbose] >
00:00:35 #2474 [Verbose] > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:00:35 #2475 [Verbose] > =>
00:00:35 #2476 [Verbose] > rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:00:35 #2477 [Verbose] >
00:00:35 #2478 [Verbose] > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:00:35 #2479 [Verbose] > rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:00:35 #2480 [Verbose] >
00:00:35 #2481 [Verbose] > prototype shift s : forall ds. f64 -> ds -> s -> s
00:00:35 #2482 [Verbose] >
00:00:35 #2483 [Verbose] > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:00:35 #2484 [Verbose] > inl dtdt, dxdt, dvdt =
00:00:35 #2485 [Verbose] > real
00:00:35 #2486 [Verbose] > match ds with
00:00:35 #2487 [Verbose] > | rrr x => x
00:00:35 #2488 [Verbose] > | state_1d x => x
00:00:35 #2489 [Verbose] > state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:00:35 #2490 [Verbose] >
00:00:35 #2491 [Verbose] > inl euler dt deriv st0 =
00:00:35 #2492 [Verbose] > shift dt (deriv st0) st0
00:00:35 #2493 [Verbose] >
00:00:35 #2494 [Verbose] > inl runge_kutta_4 dt deriv st0 =
00:00:35 #2495 [Verbose] > inl m0 = deriv st0
00:00:35 #2496 [Verbose] > inl m1 = deriv (shift (dt / 2) m0 st0)
00:00:35 #2497 [Verbose] > inl m2 = deriv (shift (dt / 2) m1 st0)
00:00:35 #2498 [Verbose] > inl m3 = deriv (shift dt m2 st0)
00:00:35 #2499 [Verbose] > shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:00:35 #2500 [Verbose] >
00:00:35 #2501 [Verbose] > inl exponential (_, x0, v0) =
00:00:35 #2502 [Verbose] > 1f64, v0, x0
00:00:35 #2503 [Verbose] >
00:00:35 #2504 [Verbose] > inl of_state_1d (state_1d (t, x, v)) =
00:00:35 #2505 [Verbose] > t, x, v
00:00:35 #2506 [Verbose] >
00:00:35 #2507 [Verbose] > ╭─[ 280.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #2508 [Verbose] > │ () │
00:00:35 #2509 [Verbose] > │ │
00:00:35 #2510 [Verbose] > │ │
00:00:35 #2511 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #2512 [Verbose] >
00:00:35 #2513 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #2514 [Verbose] > // // test
00:00:35 #2515 [Verbose] >
00:00:35 #2516 [Verbose] > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:00:35 #2517 [Verbose] > 1)) 800i32
00:00:35 #2518 [Verbose] > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:00:35 #2519 [Verbose] > 2864.8311229272326))
00:00:35 #2520 [Verbose] >
00:00:35 #2521 [Verbose] > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:00:35 #2522 [Verbose] > 1, 1)) 80i32
00:00:35 #2523 [Verbose] > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:00:35 #2524 [Verbose] > 2895.0121485099035))
00:00:35 #2525 [Verbose] >
00:00:35 #2526 [Verbose] > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:00:35 #2527 [Verbose] > 1)) 8i32
00:00:35 #2528 [Verbose] > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:00:36 #2529 [Verbose] >
00:00:36 #2530 [Verbose] > ╭─[ 462.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #2531 [Verbose] > │ let rec method0 () : unit = │
00:00:36 #2532 [Verbose] > │ let v0 : string = $"%A{struct (7.999999999999874, 2864.8311229272326, │
00:00:36 #2533 [Verbose] > │ 2864.8311229272326)}" │
00:00:36 #2534 [Verbose] > │ System.Console.WriteLine v0 │
00:00:36 #2535 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (7.999999999999874, │
00:00:36 #2536 [Verbose] > │ 2864.8311229272326, 2864.8311229272326)} / expected: %A{struct │
00:00:36 #2537 [Verbose] > │ (7.999999999999874, 2864.8311229272326, 2864.8311229272326)}" │
00:00:36 #2538 [Verbose] > │ let v2 : string = $"%A{struct (7.999999999999988, 3043.379244966009, │
00:00:36 #2539 [Verbose] > │ 2895.0121485099035)}" │
00:00:36 #2540 [Verbose] > │ System.Console.WriteLine v2 │
00:00:36 #2541 [Verbose] > │ let v3 : string = $"__expect / actual: %A{struct (7.999999999999988, │
00:00:36 #2542 [Verbose] > │ 3043.379244966009, 2895.0121485099035)} / expected: %A{struct │
00:00:36 #2543 [Verbose] > │ (7.999999999999988, 3043.379244966009, 2895.0121485099035)}" │
00:00:36 #2544 [Verbose] > │ let v4 : string = $"%A{struct (8.0, 2894.789038540849, │
00:00:36 #2545 [Verbose] > │ 2894.789038540849)}" │
00:00:36 #2546 [Verbose] > │ System.Console.WriteLine v4 │
00:00:36 #2547 [Verbose] > │ let v5 : string = $"__expect / actual: %A{struct (8.0, │
00:00:36 #2548 [Verbose] > │ 2894.789038540849, 2894.789038540849)} / expected: %A{struct (8.0, │
00:00:36 #2549 [Verbose] > │ 2894.789038540849, 2894.789038540849)}" │
00:00:36 #2550 [Verbose] > │ () │
00:00:36 #2551 [Verbose] > │ method0() │
00:00:36 #2552 [Verbose] > │ │
00:00:36 #2553 [Verbose] > │ struct (8.0, 2864.831123, 2864.831123) │
00:00:36 #2554 [Verbose] > │ struct (8.0, 3043.379245, 2895.012149) │
00:00:36 #2555 [Verbose] > │ struct (8.0, 2894.789039, 2894.789039) │
00:00:36 #2556 [Verbose] > │ │
00:00:36 #2557 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2558 [Verbose] >
00:00:36 #2559 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 #2560 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 #2561 [Verbose] > │ ## vec │
00:00:36 #2562 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2563 [Verbose] >
00:00:36 #2564 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #2565 [Verbose] > type vec =
00:00:36 #2566 [Verbose] > {
00:00:36 #2567 [Verbose] > x : f64
00:00:36 #2568 [Verbose] > y : f64
00:00:36 #2569 [Verbose] > z : f64
00:00:36 #2570 [Verbose] > }
00:00:36 #2571 [Verbose] >
00:00:36 #2572 [Verbose] > inl vec x y z : vec =
00:00:36 #2573 [Verbose] > { x y z }
00:00:36 #2574 [Verbose] >
00:00:36 #2575 [Verbose] > ╭─[ 200.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #2576 [Verbose] > │ () │
00:00:36 #2577 [Verbose] > │ │
00:00:36 #2578 [Verbose] > │ │
00:00:36 #2579 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2580 [Verbose] >
00:00:36 #2581 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #2582 [Verbose] > // // test
00:00:36 #2583 [Verbose] >
00:00:36 #2584 [Verbose] > vec 1 2 3 .z
00:00:36 #2585 [Verbose] > |> _assert_eq 3
00:00:36 #2586 [Verbose] >
00:00:36 #2587 [Verbose] > ╭─[ 297.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #2588 [Verbose] > │ let rec method0 () : unit = │
00:00:36 #2589 [Verbose] > │ let v0 : string = $"%A{3.0}" │
00:00:36 #2590 [Verbose] > │ System.Console.WriteLine v0 │
00:00:36 #2591 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3.0} / expected: %A{3.0}" │
00:00:36 #2592 [Verbose] > │ () │
00:00:36 #2593 [Verbose] > │ method0() │
00:00:36 #2594 [Verbose] > │ │
00:00:36 #2595 [Verbose] > │ 3.0 │
00:00:36 #2596 [Verbose] > │ │
00:00:36 #2597 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2598 [Verbose] >
00:00:36 #2599 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 #2600 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 #2601 [Verbose] > │ ### consts │
00:00:36 #2602 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2603 [Verbose] >
00:00:36 #2604 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #2605 [Verbose] > inl i_hat () = vec 1 0 0
00:00:36 #2606 [Verbose] > inl j_hat () = vec 0 1 0
00:00:36 #2607 [Verbose] > inl k_hat () = vec 0 0 1
00:00:36 #2608 [Verbose] > inl zero_vec () = vec 0 0 0
00:00:36 #2609 [Verbose] >
00:00:36 #2610 [Verbose] > ╭─[ 261.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #2611 [Verbose] > │ () │
00:00:36 #2612 [Verbose] > │ │
00:00:36 #2613 [Verbose] > │ │
00:00:36 #2614 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2615 [Verbose] >
00:00:36 #2616 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 #2617 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 #2618 [Verbose] > │ ### ^+^ │
00:00:36 #2619 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #2620 [Verbose] >
00:00:36 #2621 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #2622 [Verbose] > inl (^+^) (a : vec) (b : vec) =
00:00:36 #2623 [Verbose] > vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:00:36 #2624 [Verbose] >
00:00:36 #2625 [Verbose] > ╭─[ 198.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #2626 [Verbose] > │ () │
00:00:37 #2627 [Verbose] > │ │
00:00:37 #2628 [Verbose] > │ │
00:00:37 #2629 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #2630 [Verbose] >
00:00:37 #2631 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #2632 [Verbose] > // // test
00:00:37 #2633 [Verbose] >
00:00:37 #2634 [Verbose] > vec 1 2 3 ^+^ vec 4 5 6
00:00:37 #2635 [Verbose] > |> _assert_eq (vec 5 7 9)
00:00:37 #2636 [Verbose] >
00:00:37 #2637 [Verbose] > ╭─[ 310.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 #2638 [Verbose] > │ let rec method0 () : unit = │
00:00:37 #2639 [Verbose] > │ let v0 : string = $"%A{struct (5.0, 7.0, 9.0)}" │
00:00:37 #2640 [Verbose] > │ System.Console.WriteLine v0 │
00:00:37 #2641 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} / │
00:00:37 #2642 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}" │
00:00:37 #2643 [Verbose] > │ () │
00:00:37 #2644 [Verbose] > │ method0() │
00:00:37 #2645 [Verbose] > │ │
00:00:37 #2646 [Verbose] > │ struct (5.0, 7.0, 9.0) │
00:00:37 #2647 [Verbose] > │ │
00:00:37 #2648 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #2649 [Verbose] >
00:00:37 #2650 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 #2651 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 #2652 [Verbose] > │ ### sum_vec │
00:00:37 #2653 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #2654 [Verbose] >
00:00:37 #2655 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #2656 [Verbose] > inl sum_vec vs =
00:00:37 #2657 [Verbose] > vs |> listm.fold (^+^) (zero_vec ())
00:00:37 #2658 [Verbose] >
00:00:37 #2659 [Verbose] > ╭─[ 213.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 #2660 [Verbose] > │ () │
00:00:37 #2661 [Verbose] > │ │
00:00:37 #2662 [Verbose] > │ │
00:00:37 #2663 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #2664 [Verbose] >
00:00:37 #2665 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #2666 [Verbose] > // // test
00:00:37 #2667 [Verbose] >
00:00:37 #2668 [Verbose] > [[ vec 1 2 3; vec 4 5 6 ]]
00:00:37 #2669 [Verbose] > |> sum_vec
00:00:37 #2670 [Verbose] > |> _assert_eq (vec 5 7 9)
00:00:37 #2671 [Verbose] >
00:00:37 #2672 [Verbose] > ╭─[ 312.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 #2673 [Verbose] > │ let rec method0 () : unit = │
00:00:37 #2674 [Verbose] > │ let v0 : string = $"%A{struct (5.0, 7.0, 9.0)}" │
00:00:37 #2675 [Verbose] > │ System.Console.WriteLine v0 │
00:00:37 #2676 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} / │
00:00:37 #2677 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}" │
00:00:37 #2678 [Verbose] > │ () │
00:00:37 #2679 [Verbose] > │ method0() │
00:00:37 #2680 [Verbose] > │ │
00:00:37 #2681 [Verbose] > │ struct (5.0, 7.0, 9.0) │
00:00:37 #2682 [Verbose] > │ │
00:00:37 #2683 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #2684 [Verbose] >
00:00:37 #2685 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 #2686 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 #2687 [Verbose] > │ ### *^ │
00:00:37 #2688 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #2689 [Verbose] >
00:00:37 #2690 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #2691 [Verbose] > inl (*^) c { x y z } =
00:00:37 #2692 [Verbose] > vec (c * x) (c * y) (c * z)
00:00:38 #2693 [Verbose] >
00:00:38 #2694 [Verbose] > ╭─[ 227.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #2695 [Verbose] > │ () │
00:00:38 #2696 [Verbose] > │ │
00:00:38 #2697 [Verbose] > │ │
00:00:38 #2698 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #2699 [Verbose] >
00:00:38 #2700 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #2701 [Verbose] > // // test
00:00:38 #2702 [Verbose] >
00:00:38 #2703 [Verbose] > 5 *^ vec 1 2 3
00:00:38 #2704 [Verbose] > |> _assert_eq (vec 5 10 15)
00:00:38 #2705 [Verbose] >
00:00:38 #2706 [Verbose] > ╭─[ 273.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #2707 [Verbose] > │ let rec method0 () : unit = │
00:00:38 #2708 [Verbose] > │ let v0 : string = $"%A{struct (5.0, 10.0, 15.0)}" │
00:00:38 #2709 [Verbose] > │ System.Console.WriteLine v0 │
00:00:38 #2710 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} / │
00:00:38 #2711 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}" │
00:00:38 #2712 [Verbose] > │ () │
00:00:38 #2713 [Verbose] > │ method0() │
00:00:38 #2714 [Verbose] > │ │
00:00:38 #2715 [Verbose] > │ struct (5.0, 10.0, 15.0) │
00:00:38 #2716 [Verbose] > │ │
00:00:38 #2717 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #2718 [Verbose] >
00:00:38 #2719 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #2720 [Verbose] > // // test
00:00:38 #2721 [Verbose] >
00:00:38 #2722 [Verbose] > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:00:38 #2723 [Verbose] > |> _assert_eq (vec 3 0 4)
00:00:38 #2724 [Verbose] >
00:00:38 #2725 [Verbose] > ╭─[ 228.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #2726 [Verbose] > │ let rec method0 () : unit = │
00:00:38 #2727 [Verbose] > │ let v0 : string = $"%A{struct (3.0, 0.0, 4.0)}" │
00:00:38 #2728 [Verbose] > │ System.Console.WriteLine v0 │
00:00:38 #2729 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (3.0, 0.0, 4.0)} / │
00:00:38 #2730 [Verbose] > │ expected: %A{struct (3.0, 0.0, 4.0)}" │
00:00:38 #2731 [Verbose] > │ () │
00:00:38 #2732 [Verbose] > │ method0() │
00:00:38 #2733 [Verbose] > │ │
00:00:38 #2734 [Verbose] > │ struct (3.0, 0.0, 4.0) │
00:00:38 #2735 [Verbose] > │ │
00:00:38 #2736 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #2737 [Verbose] >
00:00:38 #2738 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 #2739 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 #2740 [Verbose] > │ ### ^* │
00:00:38 #2741 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #2742 [Verbose] >
00:00:38 #2743 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #2744 [Verbose] > inl (^*) v c =
00:00:38 #2745 [Verbose] > (*^) c v
00:00:38 #2746 [Verbose] >
00:00:38 #2747 [Verbose] > ╭─[ 360.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #2748 [Verbose] > │ () │
00:00:38 #2749 [Verbose] > │ │
00:00:38 #2750 [Verbose] > │ │
00:00:38 #2751 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #2752 [Verbose] >
00:00:38 #2753 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #2754 [Verbose] > // // test
00:00:38 #2755 [Verbose] >
00:00:38 #2756 [Verbose] > vec 1 2 3 ^* 5
00:00:38 #2757 [Verbose] > |> _assert_eq (vec 5 10 15)
00:00:39 #2758 [Verbose] >
00:00:39 #2759 [Verbose] > ╭─[ 216.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 #2760 [Verbose] > │ let rec method0 () : unit = │
00:00:39 #2761 [Verbose] > │ let v0 : string = $"%A{struct (5.0, 10.0, 15.0)}" │
00:00:39 #2762 [Verbose] > │ System.Console.WriteLine v0 │
00:00:39 #2763 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} / │
00:00:39 #2764 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}" │
00:00:39 #2765 [Verbose] > │ () │
00:00:39 #2766 [Verbose] > │ method0() │
00:00:39 #2767 [Verbose] > │ │
00:00:39 #2768 [Verbose] > │ struct (5.0, 10.0, 15.0) │
00:00:39 #2769 [Verbose] > │ │
00:00:39 #2770 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #2771 [Verbose] >
00:00:39 #2772 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 #2773 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 #2774 [Verbose] > │ ### ^/ │
00:00:39 #2775 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #2776 [Verbose] >
00:00:39 #2777 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 #2778 [Verbose] > inl (^/) { x y z } c =
00:00:39 #2779 [Verbose] > vec (x / c) (y / c) (z / c)
00:00:39 #2780 [Verbose] >
00:00:39 #2781 [Verbose] > ╭─[ 336.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 #2782 [Verbose] > │ () │
00:00:39 #2783 [Verbose] > │ │
00:00:39 #2784 [Verbose] > │ │
00:00:39 #2785 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #2786 [Verbose] >
00:00:39 #2787 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 #2788 [Verbose] > // // test
00:00:39 #2789 [Verbose] >
00:00:39 #2790 [Verbose] > vec 1 2 3 ^/ 5
00:00:39 #2791 [Verbose] > |> _assert_eq (vec 0.2 0.4 0.6)
00:00:39 #2792 [Verbose] >
00:00:39 #2793 [Verbose] > ╭─[ 331.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 #2794 [Verbose] > │ let rec method0 () : unit = │
00:00:39 #2795 [Verbose] > │ let v0 : string = $"%A{struct (0.2, 0.4, 0.6)}" │
00:00:39 #2796 [Verbose] > │ System.Console.WriteLine v0 │
00:00:39 #2797 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (0.2, 0.4, 0.6)} / │
00:00:39 #2798 [Verbose] > │ expected: %A{struct (0.2, 0.4, 0.6)}" │
00:00:39 #2799 [Verbose] > │ () │
00:00:39 #2800 [Verbose] > │ method0() │
00:00:39 #2801 [Verbose] > │ │
00:00:39 #2802 [Verbose] > │ struct (0.2, 0.4, 0.6) │
00:00:39 #2803 [Verbose] > │ │
00:00:39 #2804 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #2805 [Verbose] >
00:00:39 #2806 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 #2807 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 #2808 [Verbose] > │ ### negate_vec │
00:00:39 #2809 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #2810 [Verbose] >
00:00:39 #2811 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 #2812 [Verbose] > inl negate_vec v =
00:00:39 #2813 [Verbose] > v ^* -1
00:00:40 #2814 [Verbose] >
00:00:40 #2815 [Verbose] > ╭─[ 304.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:40 #2816 [Verbose] > │ () │
00:00:40 #2817 [Verbose] > │ │
00:00:40 #2818 [Verbose] > │ │
00:00:40 #2819 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #2820 [Verbose] >
00:00:40 #2821 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 #2822 [Verbose] > // // test
00:00:40 #2823 [Verbose] >
00:00:40 #2824 [Verbose] > vec 1 2 3
00:00:40 #2825 [Verbose] > |> negate_vec
00:00:40 #2826 [Verbose] > |> _assert_eq (vec -1 -2 -3)
00:00:40 #2827 [Verbose] >
00:00:40 #2828 [Verbose] > ╭─[ 248.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:40 #2829 [Verbose] > │ let rec method0 () : unit = │
00:00:40 #2830 [Verbose] > │ let v0 : string = $"%A{struct (-1.0, -2.0, -3.0)}" │
00:00:40 #2831 [Verbose] > │ System.Console.WriteLine v0 │
00:00:40 #2832 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (-1.0, -2.0, -3.0)} / │
00:00:40 #2833 [Verbose] > │ expected: %A{struct (-1.0, -2.0, -3.0)}" │
00:00:40 #2834 [Verbose] > │ () │
00:00:40 #2835 [Verbose] > │ method0() │
00:00:40 #2836 [Verbose] > │ │
00:00:40 #2837 [Verbose] > │ struct (-1.0, -2.0, -3.0) │
00:00:40 #2838 [Verbose] > │ │
00:00:40 #2839 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #2840 [Verbose] >
00:00:40 #2841 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 #2842 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 #2843 [Verbose] > │ ### ^-^ │
00:00:40 #2844 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #2845 [Verbose] >
00:00:40 #2846 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 #2847 [Verbose] > inl (^-^) a b =
00:00:40 #2848 [Verbose] > a ^+^ (negate_vec b)
00:00:40 #2849 [Verbose] >
00:00:40 #2850 [Verbose] > ╭─[ 323.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:40 #2851 [Verbose] > │ () │
00:00:40 #2852 [Verbose] > │ │
00:00:40 #2853 [Verbose] > │ │
00:00:40 #2854 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #2855 [Verbose] >
00:00:40 #2856 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 #2857 [Verbose] > // // test
00:00:40 #2858 [Verbose] >
00:00:40 #2859 [Verbose] > vec 1 2 3 ^-^ vec 4 5 6
00:00:40 #2860 [Verbose] > |> _assert_eq (vec -3 -3 -3)
00:00:41 #2861 [Verbose] >
00:00:41 #2862 [Verbose] > ╭─[ 342.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:41 #2863 [Verbose] > │ let rec method0 () : unit = │
00:00:41 #2864 [Verbose] > │ let v0 : string = $"%A{struct (-3.0, -3.0, -3.0)}" │
00:00:41 #2865 [Verbose] > │ System.Console.WriteLine v0 │
00:00:41 #2866 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (-3.0, -3.0, -3.0)} / │
00:00:41 #2867 [Verbose] > │ expected: %A{struct (-3.0, -3.0, -3.0)}" │
00:00:41 #2868 [Verbose] > │ () │
00:00:41 #2869 [Verbose] > │ method0() │
00:00:41 #2870 [Verbose] > │ │
00:00:41 #2871 [Verbose] > │ struct (-3.0, -3.0, -3.0) │
00:00:41 #2872 [Verbose] > │ │
00:00:41 #2873 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #2874 [Verbose] >
00:00:41 #2875 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 #2876 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 #2877 [Verbose] > │ ### <.> │
00:00:41 #2878 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #2879 [Verbose] >
00:00:41 #2880 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #2881 [Verbose] > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:00:41 #2882 [Verbose] > ax * bx + ay * by + az * bz
00:00:42 #2883 [Verbose] >
00:00:42 #2884 [Verbose] > ╭─[ 1.04s - stdout ]───────────────────────────────────────────────────────────╮
00:00:42 #2885 [Verbose] > │ () │
00:00:42 #2886 [Verbose] > │ │
00:00:42 #2887 [Verbose] > │ │
00:00:42 #2888 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 #2889 [Verbose] >
00:00:42 #2890 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 #2891 [Verbose] > // // test
00:00:42 #2892 [Verbose] >
00:00:42 #2893 [Verbose] > vec 1 2 3 <.> vec 4 5 6
00:00:42 #2894 [Verbose] > |> _assert_eq 32
00:00:42 #2895 [Verbose] >
00:00:42 #2896 [Verbose] > ╭─[ 277.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:42 #2897 [Verbose] > │ let rec method0 () : unit = │
00:00:42 #2898 [Verbose] > │ let v0 : string = $"%A{32.0}" │
00:00:42 #2899 [Verbose] > │ System.Console.WriteLine v0 │
00:00:42 #2900 [Verbose] > │ let v1 : string = $"__expect / actual: %A{32.0} / expected: %A{32.0}" │
00:00:42 #2901 [Verbose] > │ () │
00:00:42 #2902 [Verbose] > │ method0() │
00:00:42 #2903 [Verbose] > │ │
00:00:42 #2904 [Verbose] > │ 32.0 │
00:00:42 #2905 [Verbose] > │ │
00:00:42 #2906 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 #2907 [Verbose] >
00:00:42 #2908 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 #2909 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 #2910 [Verbose] > │ ### \>\< │
00:00:42 #2911 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 #2912 [Verbose] >
00:00:42 #2913 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 #2914 [Verbose] > inl (><) (a : vec) (b : vec) =
00:00:42 #2915 [Verbose] > vec
00:00:42 #2916 [Verbose] > (a.y * b.z - a.z * b.y)
00:00:42 #2917 [Verbose] > (a.z * b.x - a.x * b.z)
00:00:42 #2918 [Verbose] > (a.x * b.y - a.y * b.x)
00:00:42 #2919 [Verbose] >
00:00:42 #2920 [Verbose] > ╭─[ 346.30ms - stdout ]────────────────────────────────────────────────────────╮
00:00:42 #2921 [Verbose] > │ () │
00:00:42 #2922 [Verbose] > │ │
00:00:42 #2923 [Verbose] > │ │
00:00:42 #2924 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 #2925 [Verbose] >
00:00:42 #2926 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 #2927 [Verbose] > // // test
00:00:42 #2928 [Verbose] >
00:00:42 #2929 [Verbose] > vec 1 2 3 >< vec 4 5 6
00:00:42 #2930 [Verbose] > |> _assert_eq (vec -3 6 -3)
00:00:43 #2931 [Verbose] >
00:00:43 #2932 [Verbose] > ╭─[ 244.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:43 #2933 [Verbose] > │ let rec method0 () : unit = │
00:00:43 #2934 [Verbose] > │ let v0 : string = $"%A{struct (-3.0, 6.0, -3.0)}" │
00:00:43 #2935 [Verbose] > │ System.Console.WriteLine v0 │
00:00:43 #2936 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (-3.0, 6.0, -3.0)} / │
00:00:43 #2937 [Verbose] > │ expected: %A{struct (-3.0, 6.0, -3.0)}" │
00:00:43 #2938 [Verbose] > │ () │
00:00:43 #2939 [Verbose] > │ method0() │
00:00:43 #2940 [Verbose] > │ │
00:00:43 #2941 [Verbose] > │ struct (-3.0, 6.0, -3.0) │
00:00:43 #2942 [Verbose] > │ │
00:00:43 #2943 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #2944 [Verbose] >
00:00:43 #2945 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 #2946 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 #2947 [Verbose] > │ ### magnitude │
00:00:43 #2948 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #2949 [Verbose] >
00:00:43 #2950 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 #2951 [Verbose] > inl magnitude v =
00:00:43 #2952 [Verbose] > v <.> v |> sqrt
00:00:43 #2953 [Verbose] >
00:00:43 #2954 [Verbose] > ╭─[ 359.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:43 #2955 [Verbose] > │ () │
00:00:43 #2956 [Verbose] > │ │
00:00:43 #2957 [Verbose] > │ │
00:00:43 #2958 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #2959 [Verbose] >
00:00:43 #2960 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 #2961 [Verbose] > // // test
00:00:43 #2962 [Verbose] >
00:00:43 #2963 [Verbose] > vec 1 2 3
00:00:43 #2964 [Verbose] > |> magnitude
00:00:43 #2965 [Verbose] > |> _assert_approx_eq None 3.7416573867739413
00:00:43 #2966 [Verbose] >
00:00:43 #2967 [Verbose] > ╭─[ 260.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:43 #2968 [Verbose] > │ let rec method0 () : unit = │
00:00:43 #2969 [Verbose] > │ let v0 : string = $"%A{3.7416573867739413}" │
00:00:43 #2970 [Verbose] > │ System.Console.WriteLine v0 │
00:00:43 #2971 [Verbose] > │ let v1 : string = $"__expect / actual: %A{3.7416573867739413} / │
00:00:43 #2972 [Verbose] > │ expected: %A{3.7416573867739413}" │
00:00:43 #2973 [Verbose] > │ () │
00:00:43 #2974 [Verbose] > │ method0() │
00:00:43 #2975 [Verbose] > │ │
00:00:43 #2976 [Verbose] > │ 3.741657387 │
00:00:43 #2977 [Verbose] > │ │
00:00:43 #2978 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #2979 [Verbose] >
00:00:43 #2980 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 #2981 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 #2982 [Verbose] > │ ### v1 │
00:00:43 #2983 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #2984 [Verbose] >
00:00:43 #2985 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 #2986 [Verbose] > inl v1 t =
00:00:43 #2987 [Verbose] > 2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:00:43 #2988 [Verbose] > ()))
00:00:44 #2989 [Verbose] >
00:00:44 #2990 [Verbose] > ╭─[ 357.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:44 #2991 [Verbose] > │ () │
00:00:44 #2992 [Verbose] > │ │
00:00:44 #2993 [Verbose] > │ │
00:00:44 #2994 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 #2995 [Verbose] >
00:00:44 #2996 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 #2997 [Verbose] > // // test
00:00:44 #2998 [Verbose] >
00:00:44 #2999 [Verbose] > v1 1
00:00:44 #3000 [Verbose] > |> _assert_eq (vec 2 6 6)
00:00:44 #3001 [Verbose] >
00:00:44 #3002 [Verbose] > ╭─[ 234.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:44 #3003 [Verbose] > │ let rec method0 () : unit = │
00:00:44 #3004 [Verbose] > │ let v0 : string = $"%A{struct (2.0, 6.0, 6.0)}" │
00:00:44 #3005 [Verbose] > │ System.Console.WriteLine v0 │
00:00:44 #3006 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (2.0, 6.0, 6.0)} / │
00:00:44 #3007 [Verbose] > │ expected: %A{struct (2.0, 6.0, 6.0)}" │
00:00:44 #3008 [Verbose] > │ () │
00:00:44 #3009 [Verbose] > │ method0() │
00:00:44 #3010 [Verbose] > │ │
00:00:44 #3011 [Verbose] > │ struct (2.0, 6.0, 6.0) │
00:00:44 #3012 [Verbose] > │ │
00:00:44 #3013 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 #3014 [Verbose] >
00:00:44 #3015 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 #3016 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 #3017 [Verbose] > │ ### vec_derivative │
00:00:44 #3018 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 #3019 [Verbose] >
00:00:44 #3020 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 #3021 [Verbose] > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:00:44 #3022 [Verbose] >
00:00:44 #3023 [Verbose] > inl vec_derivative dt : vec_derivative =
00:00:44 #3024 [Verbose] > fun v t =>
00:00:44 #3025 [Verbose] > (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:00:44 #3026 [Verbose] >
00:00:44 #3027 [Verbose] > ╭─[ 304.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:44 #3028 [Verbose] > │ () │
00:00:44 #3029 [Verbose] > │ │
00:00:44 #3030 [Verbose] > │ │
00:00:44 #3031 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 #3032 [Verbose] >
00:00:44 #3033 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 #3034 [Verbose] > // // test
00:00:44 #3035 [Verbose] >
00:00:44 #3036 [Verbose] > vec_derivative 0.01 v1 3 .x
00:00:44 #3037 [Verbose] > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:00:44 #3038 [Verbose] >
00:00:44 #3039 [Verbose] > ╭─[ 230.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:44 #3040 [Verbose] > │ let rec method0 () : unit = │
00:00:44 #3041 [Verbose] > │ let v0 : string = $"%A{11.999999999999744}" │
00:00:44 #3042 [Verbose] > │ System.Console.WriteLine v0 │
00:00:44 #3043 [Verbose] > │ let v1 : string = $"__expect / actual: %A{11.999999999999744} / │
00:00:44 #3044 [Verbose] > │ expected: %A{11.999999999999744}" │
00:00:44 #3045 [Verbose] > │ () │
00:00:44 #3046 [Verbose] > │ method0() │
00:00:44 #3047 [Verbose] > │ │
00:00:44 #3048 [Verbose] > │ 12.0 │
00:00:44 #3049 [Verbose] > │ │
00:00:44 #3050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 #3051 [Verbose] >
00:00:44 #3052 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 #3053 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 #3054 [Verbose] > │ ## states_ps │
00:00:44 #3055 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 #3056 [Verbose] >
00:00:44 #3057 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 #3058 [Verbose] > nominal particle_state =
00:00:44 #3059 [Verbose] > {
00:00:44 #3060 [Verbose] > mass : f64
00:00:44 #3061 [Verbose] > charge : f64
00:00:44 #3062 [Verbose] > time : f64
00:00:44 #3063 [Verbose] > pos_vec : vec
00:00:44 #3064 [Verbose] > velocity : vec
00:00:44 #3065 [Verbose] > }
00:00:44 #3066 [Verbose] >
00:00:44 #3067 [Verbose] > inl default_particle_state () : particle_state =
00:00:44 #3068 [Verbose] > particle_state {
00:00:44 #3069 [Verbose] > mass = 1
00:00:44 #3070 [Verbose] > charge = 0
00:00:44 #3071 [Verbose] > time = 0
00:00:44 #3072 [Verbose] > pos_vec = zero_vec ()
00:00:44 #3073 [Verbose] > velocity = zero_vec ()
00:00:44 #3074 [Verbose] > }
00:00:44 #3075 [Verbose] >
00:00:44 #3076 [Verbose] > type one_body_force = particle_state -> vec
00:00:44 #3077 [Verbose] >
00:00:44 #3078 [Verbose] > nominal d_particle_state =
00:00:44 #3079 [Verbose] > {
00:00:44 #3080 [Verbose] > dmdt : f64
00:00:44 #3081 [Verbose] > dqdt : f64
00:00:44 #3082 [Verbose] > dtdt : f64
00:00:44 #3083 [Verbose] > drdt : vec
00:00:44 #3084 [Verbose] > dvdt : vec
00:00:44 #3085 [Verbose] > }
00:00:44 #3086 [Verbose] >
00:00:44 #3087 [Verbose] > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:00:44 #3088 [Verbose] > d_particle_state =
00:00:44 #3089 [Verbose] > inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:00:44 #3090 [Verbose] > d_particle_state {
00:00:44 #3091 [Verbose] > dmdt = 0
00:00:44 #3092 [Verbose] > dqdt = 0
00:00:44 #3093 [Verbose] > dtdt = 1
00:00:44 #3094 [Verbose] > drdt = st.velocity
00:00:44 #3095 [Verbose] > dvdt = f_net ^/ st.mass
00:00:44 #3096 [Verbose] > }
00:00:44 #3097 [Verbose] >
00:00:44 #3098 [Verbose] > inl earth_surface_gravity (st : particle_state) =
00:00:44 #3099 [Verbose] > inl g = 9.80665
00:00:44 #3100 [Verbose] > -st.mass * g *^ k_hat ()
00:00:44 #3101 [Verbose] >
00:00:44 #3102 [Verbose] > inl air_resistance drag rho area (st : particle_state) =
00:00:44 #3103 [Verbose] > -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:00:44 #3104 [Verbose] >
00:00:44 #3105 [Verbose] > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:00:44 #3106 [Verbose] > (particle_state st) =
00:00:44 #3107 [Verbose] > inl dst : d_particle_state = deriv (particle_state st)
00:00:44 #3108 [Verbose] > inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:00:44 #3109 [Verbose] > particle_state { st with
00:00:44 #3110 [Verbose] > time = st.time + dt
00:00:44 #3111 [Verbose] > pos_vec = st.pos_vec ^+^ v' ^* dt
00:00:44 #3112 [Verbose] > velocity = st.velocity ^+^ dst.dvdt ^* dt
00:00:44 #3113 [Verbose] > }
00:00:44 #3114 [Verbose] >
00:00:44 #3115 [Verbose] > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:00:44 #3116 [Verbose] > d_particle_state) =>
00:00:44 #3117 [Verbose] > d_particle_state {
00:00:44 #3118 [Verbose] > dmdt = dps.dmdt + dps'.dmdt
00:00:44 #3119 [Verbose] > dqdt = dps.dqdt + dps'.dqdt
00:00:44 #3120 [Verbose] > dtdt = dps.dtdt + dps'.dtdt
00:00:44 #3121 [Verbose] > drdt = dps.drdt ^+^ dps'.drdt
00:00:44 #3122 [Verbose] > dvdt = dps.dvdt ^+^ dps'.dvdt
00:00:44 #3123 [Verbose] > }
00:00:44 #3124 [Verbose] >
00:00:44 #3125 [Verbose] > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:00:44 #3126 [Verbose] > d_particle_state {
00:00:44 #3127 [Verbose] > dmdt = w * dps.dmdt
00:00:44 #3128 [Verbose] > dqdt = w * dps.dqdt
00:00:44 #3129 [Verbose] > dtdt = w * dps.dtdt
00:00:44 #3130 [Verbose] > drdt = w *^ dps.drdt
00:00:44 #3131 [Verbose] > dvdt = w *^ dps.dvdt
00:00:44 #3132 [Verbose] > }
00:00:44 #3133 [Verbose] >
00:00:44 #3134 [Verbose] > instance shift particle_state = fun dt dps (particle_state st) =>
00:00:44 #3135 [Verbose] > inl (d_particle_state dps) =
00:00:44 #3136 [Verbose] > real
00:00:44 #3137 [Verbose] > match dps with
00:00:44 #3138 [Verbose] > | d_particle_state _ => dps
00:00:44 #3139 [Verbose] > particle_state { st with
00:00:44 #3140 [Verbose] > time = st.time + dps.dtdt * dt
00:00:44 #3141 [Verbose] > pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:00:44 #3142 [Verbose] > velocity = st.velocity ^+^ dps.dvdt ^* dt
00:00:44 #3143 [Verbose] > }
00:00:44 #3144 [Verbose] >
00:00:44 #3145 [Verbose] > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:00:44 #3146 [Verbose] > _ -> i32 -> particle_state =
00:00:44 #3147 [Verbose] > newton_second_ps >> method >> seq.iterate_
00:00:44 #3148 [Verbose] >
00:00:44 #3149 [Verbose] > inl z_ge0 sts =
00:00:44 #3150 [Verbose] > sts
00:00:44 #3151 [Verbose] > |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:00:44 #3152 [Verbose] >
00:00:44 #3153 [Verbose] > inl trajectory sts =
00:00:44 #3154 [Verbose] > sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:00:45 #3155 [Verbose] >
00:00:45 #3156 [Verbose] > ╭─[ 325.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:45 #3157 [Verbose] > │ () │
00:00:45 #3158 [Verbose] > │ │
00:00:45 #3159 [Verbose] > │ │
00:00:45 #3160 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 #3161 [Verbose] >
00:00:45 #3162 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 #3163 [Verbose] > // // test
00:00:45 #3164 [Verbose] >
00:00:45 #3165 [Verbose] > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:00:45 #3166 [Verbose] > newton_second_ps >> method
00:00:45 #3167 [Verbose] >
00:00:45 #3168 [Verbose] > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:00:45 #3169 [Verbose] > st t =
00:00:45 #3170 [Verbose] > inl states : i32 -> particle_state = states_ps method fs st
00:00:45 #3171 [Verbose] > inl dt = (states 1).time - (states 0).time
00:00:45 #3172 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:45 #3173 [Verbose] > inl st1 = solver' method (newton_second_ps fs) st num_steps
00:00:45 #3174 [Verbose] > st1.pos_vec
00:00:45 #3175 [Verbose] >
00:00:45 #3176 [Verbose] > inl sun_gravity (st : particle_state) : vec =
00:00:45 #3177 [Verbose] > inl big_g = 0.0000000000667408
00:00:45 #3178 [Verbose] > inl sun_mass = 1988480000000000000000000000000
00:00:45 #3179 [Verbose] > -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:00:45 #3180 [Verbose] >
00:00:45 #3181 [Verbose] > inl wind_force v_wind drag rho area (st : particle_state) =
00:00:45 #3182 [Verbose] > inl v_rel = st.velocity ^-^ v_wind
00:00:45 #3183 [Verbose] > -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:00:45 #3184 [Verbose] >
00:00:45 #3185 [Verbose] > inl rock_state () =
00:00:45 #3186 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:45 #3187 [Verbose] > particle_state { default_particle_state' with
00:00:45 #3188 [Verbose] > mass = 2
00:00:45 #3189 [Verbose] > velocity = vec 3 0 4
00:00:45 #3190 [Verbose] > }
00:00:45 #3191 [Verbose] >
00:00:45 #3192 [Verbose] > inl halley_update dt =
00:00:45 #3193 [Verbose] > update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:00:45 #3194 [Verbose] >
00:00:45 #3195 [Verbose] > inl halley_initial () =
00:00:45 #3196 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:45 #3197 [Verbose] > particle_state { default_particle_state' with
00:00:45 #3198 [Verbose] > mass = 220000000000000
00:00:45 #3199 [Verbose] > pos_vec = 87660000000 *^ i_hat ()
00:00:45 #3200 [Verbose] > velocity = 54569 *^ j_hat ()
00:00:45 #3201 [Verbose] > }
00:00:45 #3202 [Verbose] >
00:00:45 #3203 [Verbose] > ╭─[ 214.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:45 #3204 [Verbose] > │ () │
00:00:45 #3205 [Verbose] > │ │
00:00:45 #3206 [Verbose] > │ │
00:00:45 #3207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 #3208 [Verbose] >
00:00:45 #3209 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 #3210 [Verbose] > // // test
00:00:45 #3211 [Verbose] >
00:00:45 #3212 [Verbose] > inl baseball_forces () =
00:00:45 #3213 [Verbose] > inl area = pi * (0.074 / 2) ** 2
00:00:45 #3214 [Verbose] > [[
00:00:45 #3215 [Verbose] > earth_surface_gravity
00:00:45 #3216 [Verbose] > air_resistance 0.3 1.225 area
00:00:45 #3217 [Verbose] > ]]
00:00:45 #3218 [Verbose] >
00:00:45 #3219 [Verbose] > inl baseball_trajectory dt v0 theta_deg =
00:00:45 #3220 [Verbose] > inl theta_rad = theta_deg * pi / 180
00:00:45 #3221 [Verbose] > inl vy0 = v0 * cos theta_rad
00:00:45 #3222 [Verbose] > inl vz0 = v0 * sin theta_rad
00:00:45 #3223 [Verbose] > inl initial_state =
00:00:45 #3224 [Verbose] > particle_state {
00:00:45 #3225 [Verbose] > mass = 0.145
00:00:45 #3226 [Verbose] > charge = 0
00:00:45 #3227 [Verbose] > time = 0
00:00:45 #3228 [Verbose] > pos_vec = zero_vec ()
00:00:45 #3229 [Verbose] > velocity = vec 0 vy0 vz0
00:00:45 #3230 [Verbose] > }
00:00:45 #3231 [Verbose] > states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:00:45 #3232 [Verbose] > >> Some
00:00:45 #3233 [Verbose] > |> z_ge0
00:00:45 #3234 [Verbose] > |> trajectory
00:00:45 #3235 [Verbose] >
00:00:45 #3236 [Verbose] > inl baseball_range dt v0 theta_deg =
00:00:45 #3237 [Verbose] > baseball_trajectory dt v0 theta_deg
00:00:45 #3238 [Verbose] > |> listm.fold (fun _ (y, _) => y) 0
00:00:45 #3239 [Verbose] >
00:00:45 #3240 [Verbose] > inl x : a _ f64 = am'.init_series 10 80 1
00:00:45 #3241 [Verbose] > inl y = x |> am.map (baseball_range 0.01 45)
00:00:45 #3242 [Verbose] > "range for a baseball hit at 45 m/s",
00:00:45 #3243 [Verbose] > "angle above horizontal (degrees)",
00:00:45 #3244 [Verbose] > "",
00:00:45 #3245 [Verbose] > ;[[ "horizontal range (m)", x, y ]]
00:00:46 #3246 [Verbose] >
00:00:46 #3247 [Verbose] > ╭─[ 1.18s - return value ]─────────────────────────────────────────────────────╮
00:00:46 #3248 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:46 #3249 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:46 #3250 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:46 #3251 [Verbose] > │ stroke="none"/> │
00:00:46 #3252 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:46 #3253 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:46 #3254 [Verbose] > │ fill="#FFFFFF"> │
00:00:46 #3255 [Verbose] > │ range for a baseball hit at 45 m/s │
00:00:46 #3256 [Verbose] > │ </text> │
00:00:46 #3257 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:00:46 #3258 [Verbose] > │ y2="75"/> │
00:00:46 #3259 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:46 #3260 [Verbose] > │ y2="75"/> │
00:00:46 #3261 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:46 #3262 [Verbose] > │ y2="75"/> │
00:00:46 #3263 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:46 #3264 [Verbose] > │ y2="75"/> │
00:00:46 #3265 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="... │
00:00:46 #3266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #3267 [Verbose] >
00:00:46 #3268 [Verbose] > ╭─[ 1.19s - stdout ]───────────────────────────────────────────────────────────╮
00:00:46 #3269 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:46 #3270 [Verbose] > │ and UH0 = │
00:00:46 #3271 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:46 #3272 [Verbose] > │ * float * UH0 │
00:00:46 #3273 [Verbose] > │ | UH0_1 │
00:00:46 #3274 [Verbose] > │ and UH1 = │
00:00:46 #3275 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:46 #3276 [Verbose] > │ | UH1_1 │
00:00:46 #3277 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:46 #3278 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:46 #3279 [Verbose] > │ let v2 : bool = v1 < 71 │
00:00:46 #3280 [Verbose] > │ v2 │
00:00:46 #3281 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:46 #3282 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:46 #3283 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:46 #3284 [Verbose] > │ v3 │
00:00:46 #3285 [Verbose] > │ and method4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:46 #3286 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float * │
00:00:46 #3287 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:46 #3288 [Verbose] > │ let v10 : bool = v9 <= 0 │
00:00:46 #3289 [Verbose] > │ if v10 then │
00:00:46 #3290 [Verbose] > │ struct (v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:46 #3291 [Verbose] > │ else │
00:00:46 #3292 [Verbose] > │ let v11 : float = v6 * v6 │
00:00:46 #3293 [Verbose] > │ let v12 : float = v7 * v7 │
00:00:46 #3294 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:46 #3295 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:46 #3296 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:46 #3297 [Verbose] > │ let v16 : float = sqrt v15 │
00:00:46 #3298 [Verbose] > │ let v17 : float = -0.0007902794129829633 * v16 │
00:00:46 #3299 [Verbose] > │ let v18 : float = v17 * v6 │
00:00:46 #3300 [Verbose] > │ let v19 : float = v17 * v7 │
00:00:46 #3301 [Verbose] > │ let v20 : float = v17 * v8 │
00:00:46 #3302 [Verbose] > │ let v21 : float = -v1 │
00:00:46 #3303 [Verbose] > │ let v22 : float = v21 * 9.80665 │
00:00:46 #3304 [Verbose] > │ let v23 : float = v22 * 0.0 │
00:00:46 #3305 [Verbose] > │ let v24 : float = v23 + v18 │
00:00:46 #3306 [Verbose] > │ let v25 : float = v23 + v19 │
00:00:46 #3307 [Verbose] > │ let v26 : float = v22 + v20 │
00:00:46 #3308 [Verbose] > │ let v27 : float = v24 / v1 │
00:00:46 #3309 [Verbose] > │ let v28 : float = v25 / v1 │
00:00:46 #3310 [Verbose] > │ let v29 : float = v26 / v1 │
00:00:46 #3311 [Verbose] > │ let v30 : float = 0.01 * v27 │
00:00:46 #3312 [Verbose] > │ let v31 : float = 0.01 * v28 │
00:00:46 #3313 [Verbose] > │ let v32 : float = 0.01 * v29 │
00:00:46 #3314 [Verbose] > │ let v33 : float = v6 + v30 │
00:00:46 #3315 [Verbose] > │ let v34 : float = v7 + v31 │
00:00:46 #3316 [Verbose] > │ let v35 : float = v8 + v32 │
00:00:46 #3317 [Verbose] > │ let v36 : float = v5 + 0.01 │
00:00:46 #3318 [Verbose] > │ let v37 : float = 0.01 * v33 │
00:00:46 #3319 [Verbose] > │ let v38 : float = 0.01 * v34 │
00:00:46 #3320 [Verbose] > │ let v39 : float = 0.01 * v35 │
00:00:46 #3321 [Verbose] > │ let v40 : float = v2 + v37 │
00:00:46 #3322 [Verbose] > │ let v41 : float = v3 + v38 │
00:00:46 #3323 [Verbose] > │ let v42 : float = v4 + v39 │
00:00:46 #3324 [Verbose] > │ let v43 : int32 = v9 - 1 │
00:00:46 #3325 [Verbose] > │ method4(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43) │
00:00:46 #3326 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:46 #3327 [Verbose] > │ match v0 with │
00:00:46 #3328 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:46 #3329 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:46 #3330 [Verbose] > │ method5(v11, v12) │
00:00:46 #3331 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:46 #3332 [Verbose] > │ v1 │
00:00:46 #3333 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 = │
00:00:46 #3334 [Verbose] > │ let v4 : float = 0.0 │
00:00:46 #3335 [Verbose] > │ let v5 : float = 0.145 │
00:00:46 #3336 [Verbose] > │ let v6 : float = 0.0 │
00:00:46 #3337 [Verbose] > │ let v7 : float = 0.0 │
00:00:46 #3338 [Verbose] > │ let v8 : float = 0.0 │
00:00:46 #3339 [Verbose] > │ let v9 : float = 0.0 │
00:00:46 #3340 [Verbose] > │ let v10 : float = 0.0 │
00:00:46 #3341 [Verbose] > │ let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 : │
00:00:46 #3342 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method4(v4, v5, │
00:00:46 #3343 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3) │
00:00:46 #3344 [Verbose] > │ let v20 : bool = v15 >= 0.0 │
00:00:46 #3345 [Verbose] > │ if v20 then │
00:00:46 #3346 [Verbose] > │ let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19, │
00:00:46 #3347 [Verbose] > │ v2) │
00:00:46 #3348 [Verbose] > │ let v22 : int32 = v3 + 1 │
00:00:46 #3349 [Verbose] > │ method3(v0, v1, v21, v22) │
00:00:46 #3350 [Verbose] > │ else │
00:00:46 #3351 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:46 #3352 [Verbose] > │ method5(v2, v24) │
00:00:46 #3353 [Verbose] > │ and method6 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:46 #3354 [Verbose] > │ match v0 with │
00:00:46 #3355 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:46 #3356 [Verbose] > │ let v12 : UH1 = method6(v11, v1) │
00:00:46 #3357 [Verbose] > │ UH1_0(v5, v6, v12) │
00:00:46 #3358 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:46 #3359 [Verbose] > │ v1 │
00:00:46 #3360 [Verbose] > │ and method7 (v0 : UH1, v1 : float) : float = │
00:00:46 #3361 [Verbose] > │ match v0 with │
00:00:46 #3362 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:46 #3363 [Verbose] > │ method7(v4, v2) │
00:00:46 #3364 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:46 #3365 [Verbose] > │ v1 │
00:00:46 #3366 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:46 #3367 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:46 #3368 [Verbose] > │ v0 │
00:00:46 #3369 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:46 #3370 [Verbose] > │ []) * (float [])) [])) = │
00:00:46 #3371 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (71) │
00:00:46 #3372 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:46 #3373 [Verbose] > │ while method1(v1) do │
00:00:46 #3374 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:46 #3375 [Verbose] > │ let v4 : float = float v3 │
00:00:46 #3376 [Verbose] > │ let v5 : float = 10.0 + v4 │
00:00:46 #3377 [Verbose] > │ v0.[int v3] <- v5 │
00:00:46 #3378 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:46 #3379 [Verbose] > │ v1.l0 <- v6 │
00:00:46 #3380 [Verbose] > │ () │
00:00:46 #3381 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:46 #3382 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:46 #3383 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:46 #3384 [Verbose] > │ while method2(v7, v9) do │
00:00:46 #3385 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:46 #3386 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:46 #3387 [Verbose] > │ let v13 : float = v12 * 3.141592653589793 │
00:00:46 #3388 [Verbose] > │ let v14 : float = v13 / 180.0 │
00:00:46 #3389 [Verbose] > │ let v15 : float = cos v14 │
00:00:46 #3390 [Verbose] > │ let v16 : float = 45.0 * v15 │
00:00:46 #3391 [Verbose] > │ let v17 : float = sin v14 │
00:00:46 #3392 [Verbose] > │ let v18 : float = 45.0 * v17 │
00:00:46 #3393 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:46 #3394 [Verbose] > │ let v20 : int32 = 0 │
00:00:46 #3395 [Verbose] > │ let v21 : UH0 = method3(v16, v18, v19, v20) │
00:00:46 #3396 [Verbose] > │ let v22 : UH1 = UH1_1 │
00:00:46 #3397 [Verbose] > │ let v23 : UH1 = method6(v21, v22) │
00:00:46 #3398 [Verbose] > │ let v24 : float = 0.0 │
00:00:46 #3399 [Verbose] > │ let v25 : float = method7(v23, v24) │
00:00:46 #3400 [Verbose] > │ v8.[int v11] <- v25 │
00:00:46 #3401 [Verbose] > │ let v26 : int32 = v11 + 1 │
00:00:46 #3402 [Verbose] > │ v9.l0 <- v26 │
00:00:46 #3403 [Verbose] > │ () │
00:00:46 #3404 [Verbose] > │ let v27 : string = "horizontal range (m)" │
00:00:46 #3405 [Verbose] > │ let v28 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:46 #3406 [Verbose] > │ (v27, v0, v8)|] │
00:00:46 #3407 [Verbose] > │ let v29 : (struct (string * (float []) * (float [])) []) = method8(v28) │
00:00:46 #3408 [Verbose] > │ let v30 : string = "range for a baseball hit at 45 m/s" │
00:00:46 #3409 [Verbose] > │ let v31 : string = "angle above horizontal (degrees)" │
00:00:46 #3410 [Verbose] > │ let v32 : string = "" │
00:00:46 #3411 [Verbose] > │ struct (v30, v31, v32, v29) │
00:00:46 #3412 [Verbose] > │ method0() │
00:00:46 #3413 [Verbose] > │ │
00:00:46 #3414 [Verbose] > │ │
00:00:46 #3415 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 #3416 [Verbose] >
00:00:46 #3417 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 #3418 [Verbose] > // // test
00:00:46 #3419 [Verbose] >
00:00:46 #3420 [Verbose] > inl best_angle (min, max) =
00:00:46 #3421 [Verbose] > let rec loop theta_deg (best_range, best_theta_deg) =
00:00:46 #3422 [Verbose] > if theta_deg > max
00:00:46 #3423 [Verbose] > then best_range, best_theta_deg
00:00:46 #3424 [Verbose] > else
00:00:46 #3425 [Verbose] > inl range = baseball_range 0.01 45 theta_deg
00:00:46 #3426 [Verbose] > loop
00:00:46 #3427 [Verbose] > (theta_deg + 1)
00:00:46 #3428 [Verbose] > (if range > best_range
00:00:46 #3429 [Verbose] > then range, theta_deg
00:00:46 #3430 [Verbose] > else best_range, best_theta_deg)
00:00:46 #3431 [Verbose] > loop min (0f64, min)
00:00:46 #3432 [Verbose] >
00:00:46 #3433 [Verbose] > best_angle (30f64, 60f64)
00:00:46 #3434 [Verbose] > |> _assert_eq (116.77499158246208, 41)
00:00:47 #3435 [Verbose] >
00:00:47 #3436 [Verbose] > ╭─[ 721.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 #3437 [Verbose] > │ type UH0 = │
00:00:47 #3438 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:47 #3439 [Verbose] > │ * float * UH0 │
00:00:47 #3440 [Verbose] > │ | UH0_1 │
00:00:47 #3441 [Verbose] > │ and UH1 = │
00:00:47 #3442 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:47 #3443 [Verbose] > │ | UH1_1 │
00:00:47 #3444 [Verbose] > │ let rec method3 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:47 #3445 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float │
00:00:47 #3446 [Verbose] > │ * float * float * float * float * float * float * float * float) = │
00:00:47 #3447 [Verbose] > │ let v10 : bool = v9 <= 0 │
00:00:47 #3448 [Verbose] > │ if v10 then │
00:00:47 #3449 [Verbose] > │ struct (v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:47 #3450 [Verbose] > │ else │
00:00:47 #3451 [Verbose] > │ let v11 : float = v6 * v6 │
00:00:47 #3452 [Verbose] > │ let v12 : float = v7 * v7 │
00:00:47 #3453 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:47 #3454 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:47 #3455 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:47 #3456 [Verbose] > │ let v16 : float = sqrt v15 │
00:00:47 #3457 [Verbose] > │ let v17 : float = -0.0007902794129829633 * v16 │
00:00:47 #3458 [Verbose] > │ let v18 : float = v17 * v6 │
00:00:47 #3459 [Verbose] > │ let v19 : float = v17 * v7 │
00:00:47 #3460 [Verbose] > │ let v20 : float = v17 * v8 │
00:00:47 #3461 [Verbose] > │ let v21 : float = -v1 │
00:00:47 #3462 [Verbose] > │ let v22 : float = v21 * 9.80665 │
00:00:47 #3463 [Verbose] > │ let v23 : float = v22 * 0.0 │
00:00:47 #3464 [Verbose] > │ let v24 : float = v23 + v18 │
00:00:47 #3465 [Verbose] > │ let v25 : float = v23 + v19 │
00:00:47 #3466 [Verbose] > │ let v26 : float = v22 + v20 │
00:00:47 #3467 [Verbose] > │ let v27 : float = v24 / v1 │
00:00:47 #3468 [Verbose] > │ let v28 : float = v25 / v1 │
00:00:47 #3469 [Verbose] > │ let v29 : float = v26 / v1 │
00:00:47 #3470 [Verbose] > │ let v30 : float = 0.01 * v27 │
00:00:47 #3471 [Verbose] > │ let v31 : float = 0.01 * v28 │
00:00:47 #3472 [Verbose] > │ let v32 : float = 0.01 * v29 │
00:00:47 #3473 [Verbose] > │ let v33 : float = v6 + v30 │
00:00:47 #3474 [Verbose] > │ let v34 : float = v7 + v31 │
00:00:47 #3475 [Verbose] > │ let v35 : float = v8 + v32 │
00:00:47 #3476 [Verbose] > │ let v36 : float = v5 + 0.01 │
00:00:47 #3477 [Verbose] > │ let v37 : float = 0.01 * v33 │
00:00:47 #3478 [Verbose] > │ let v38 : float = 0.01 * v34 │
00:00:47 #3479 [Verbose] > │ let v39 : float = 0.01 * v35 │
00:00:47 #3480 [Verbose] > │ let v40 : float = v2 + v37 │
00:00:47 #3481 [Verbose] > │ let v41 : float = v3 + v38 │
00:00:47 #3482 [Verbose] > │ let v42 : float = v4 + v39 │
00:00:47 #3483 [Verbose] > │ let v43 : int32 = v9 - 1 │
00:00:47 #3484 [Verbose] > │ method3(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43) │
00:00:47 #3485 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:47 #3486 [Verbose] > │ match v0 with │
00:00:47 #3487 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:47 #3488 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:47 #3489 [Verbose] > │ method4(v11, v12) │
00:00:47 #3490 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:47 #3491 [Verbose] > │ v1 │
00:00:47 #3492 [Verbose] > │ and method2 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 = │
00:00:47 #3493 [Verbose] > │ let v4 : float = 0.0 │
00:00:47 #3494 [Verbose] > │ let v5 : float = 0.145 │
00:00:47 #3495 [Verbose] > │ let v6 : float = 0.0 │
00:00:47 #3496 [Verbose] > │ let v7 : float = 0.0 │
00:00:47 #3497 [Verbose] > │ let v8 : float = 0.0 │
00:00:47 #3498 [Verbose] > │ let v9 : float = 0.0 │
00:00:47 #3499 [Verbose] > │ let v10 : float = 0.0 │
00:00:47 #3500 [Verbose] > │ let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 : │
00:00:47 #3501 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method3(v4, v5, │
00:00:47 #3502 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3) │
00:00:47 #3503 [Verbose] > │ let v20 : bool = v15 >= 0.0 │
00:00:47 #3504 [Verbose] > │ if v20 then │
00:00:47 #3505 [Verbose] > │ let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19, │
00:00:47 #3506 [Verbose] > │ v2) │
00:00:47 #3507 [Verbose] > │ let v22 : int32 = v3 + 1 │
00:00:47 #3508 [Verbose] > │ method2(v0, v1, v21, v22) │
00:00:47 #3509 [Verbose] > │ else │
00:00:47 #3510 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:47 #3511 [Verbose] > │ method4(v2, v24) │
00:00:47 #3512 [Verbose] > │ and method5 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:47 #3513 [Verbose] > │ match v0 with │
00:00:47 #3514 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:47 #3515 [Verbose] > │ let v12 : UH1 = method5(v11, v1) │
00:00:47 #3516 [Verbose] > │ UH1_0(v5, v6, v12) │
00:00:47 #3517 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:47 #3518 [Verbose] > │ v1 │
00:00:47 #3519 [Verbose] > │ and method6 (v0 : UH1, v1 : float) : float = │
00:00:47 #3520 [Verbose] > │ match v0 with │
00:00:47 #3521 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:47 #3522 [Verbose] > │ method6(v4, v2) │
00:00:47 #3523 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:47 #3524 [Verbose] > │ v1 │
00:00:47 #3525 [Verbose] > │ and method1 (v0 : float, v1 : float, v2 : float) : struct (float * float) = │
00:00:47 #3526 [Verbose] > │ let v3 : bool = v0 > 60.0 │
00:00:47 #3527 [Verbose] > │ if v3 then │
00:00:47 #3528 [Verbose] > │ struct (v2, v1) │
00:00:47 #3529 [Verbose] > │ else │
00:00:47 #3530 [Verbose] > │ let v4 : float = v0 * 3.141592653589793 │
00:00:47 #3531 [Verbose] > │ let v5 : float = v4 / 180.0 │
00:00:47 #3532 [Verbose] > │ let v6 : float = cos v5 │
00:00:47 #3533 [Verbose] > │ let v7 : float = 45.0 * v6 │
00:00:47 #3534 [Verbose] > │ let v8 : float = sin v5 │
00:00:47 #3535 [Verbose] > │ let v9 : float = 45.0 * v8 │
00:00:47 #3536 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:47 #3537 [Verbose] > │ let v11 : int32 = 0 │
00:00:47 #3538 [Verbose] > │ let v12 : UH0 = method2(v7, v9, v10, v11) │
00:00:47 #3539 [Verbose] > │ let v13 : UH1 = UH1_1 │
00:00:47 #3540 [Verbose] > │ let v14 : UH1 = method5(v12, v13) │
00:00:47 #3541 [Verbose] > │ let v15 : float = 0.0 │
00:00:47 #3542 [Verbose] > │ let v16 : float = method6(v14, v15) │
00:00:47 #3543 [Verbose] > │ let v17 : float = v0 + 1.0 │
00:00:47 #3544 [Verbose] > │ let v18 : bool = v16 > v2 │
00:00:47 #3545 [Verbose] > │ let struct (v19 : float, v20 : float) = │
00:00:47 #3546 [Verbose] > │ if v18 then │
00:00:47 #3547 [Verbose] > │ struct (v16, v0) │
00:00:47 #3548 [Verbose] > │ else │
00:00:47 #3549 [Verbose] > │ struct (v2, v1) │
00:00:47 #3550 [Verbose] > │ method1(v17, v20, v19) │
00:00:47 #3551 [Verbose] > │ and method7 (v0 : bool) : bool = │
00:00:47 #3552 [Verbose] > │ v0 │
00:00:47 #3553 [Verbose] > │ and method0 () : unit = │
00:00:47 #3554 [Verbose] > │ let v0 : float = 30.0 │
00:00:47 #3555 [Verbose] > │ let v1 : float = 0.0 │
00:00:47 #3556 [Verbose] > │ let v2 : float = 30.0 │
00:00:47 #3557 [Verbose] > │ let struct (v3 : float, v4 : float) = method1(v0, v2, v1) │
00:00:47 #3558 [Verbose] > │ let v5 : string = $"%A{struct (v3, v4)}" │
00:00:47 #3559 [Verbose] > │ System.Console.WriteLine v5 │
00:00:47 #3560 [Verbose] > │ let v6 : bool = v3 = 116.77499158246208 │
00:00:47 #3561 [Verbose] > │ let v8 : bool = │
00:00:47 #3562 [Verbose] > │ if v6 then │
00:00:47 #3563 [Verbose] > │ let v7 : bool = v4 = 41.0 │
00:00:47 #3564 [Verbose] > │ v7 │
00:00:47 #3565 [Verbose] > │ else │
00:00:47 #3566 [Verbose] > │ false │
00:00:47 #3567 [Verbose] > │ let v10 : bool = │
00:00:47 #3568 [Verbose] > │ if v8 then │
00:00:47 #3569 [Verbose] > │ true │
00:00:47 #3570 [Verbose] > │ else │
00:00:47 #3571 [Verbose] > │ method7(v8) │
00:00:47 #3572 [Verbose] > │ let v11 : string = $"__expect / actual: %A{struct (v3, v4)} / expected: │
00:00:47 #3573 [Verbose] > │ %A{struct (116.77499158246208, 41.0)}" │
00:00:47 #3574 [Verbose] > │ let v12 : bool = v10 = false │
00:00:47 #3575 [Verbose] > │ if v12 then │
00:00:47 #3576 [Verbose] > │ failwith<unit> v11 │
00:00:47 #3577 [Verbose] > │ method0() │
00:00:47 #3578 [Verbose] > │ │
00:00:47 #3579 [Verbose] > │ struct (116.7749916, 41.0) │
00:00:47 #3580 [Verbose] > │ │
00:00:47 #3581 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #3582 [Verbose] >
00:00:47 #3583 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 #3584 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 #3585 [Verbose] > │ ## relativity_ps │
00:00:47 #3586 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #3587 [Verbose] >
00:00:47 #3588 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #3589 [Verbose] > inl relativity_ps fs (st : particle_state) =
00:00:47 #3590 [Verbose] > inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:00:47 #3591 [Verbose] > inl c = 299792458
00:00:47 #3592 [Verbose] > inl u = st.velocity ^/ c
00:00:47 #3593 [Verbose] > inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:00:47 #3594 [Verbose] > d_particle_state {
00:00:47 #3595 [Verbose] > dmdt = 0
00:00:47 #3596 [Verbose] > dqdt = 0
00:00:47 #3597 [Verbose] > dtdt = 1
00:00:47 #3598 [Verbose] > drdt = st.velocity
00:00:47 #3599 [Verbose] > dvdt = acc
00:00:47 #3600 [Verbose] > }
00:00:47 #3601 [Verbose] >
00:00:47 #3602 [Verbose] > ╭─[ 270.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 #3603 [Verbose] > │ () │
00:00:47 #3604 [Verbose] > │ │
00:00:47 #3605 [Verbose] > │ │
00:00:47 #3606 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #3607 [Verbose] >
00:00:47 #3608 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #3609 [Verbose] > // // test
00:00:47 #3610 [Verbose] >
00:00:47 #3611 [Verbose] > inl year = 365.25 * 24 * 60 * 60
00:00:47 #3612 [Verbose] > inl c = 299792458
00:00:47 #3613 [Verbose] > inl ~method = runge_kutta_4 100000
00:00:47 #3614 [Verbose] > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:00:47 #3615 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:47 #3616 [Verbose] > inl initial_state =
00:00:47 #3617 [Verbose] > particle_state { default_particle_state' with
00:00:47 #3618 [Verbose] > mass = 1
00:00:47 #3619 [Verbose] > }
00:00:47 #3620 [Verbose] >
00:00:47 #3621 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:00:47 #3622 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:00:47 #3623 [Verbose] >
00:00:47 #3624 [Verbose] > inl newton_x, newton_y =
00:00:47 #3625 [Verbose] > newton_states
00:00:47 #3626 [Verbose] > >> Some
00:00:47 #3627 [Verbose] > |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:00:47 #3628 [Verbose] > |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:00:47 #3629 [Verbose] > |> listm'.unzip
00:00:47 #3630 [Verbose] >
00:00:47 #3631 [Verbose] > inl _, relativity_y =
00:00:47 #3632 [Verbose] > relativity_states
00:00:47 #3633 [Verbose] > >> Some
00:00:47 #3634 [Verbose] > |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:00:47 #3635 [Verbose] > |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:00:47 #3636 [Verbose] > |> listm'.unzip
00:00:47 #3637 [Verbose] >
00:00:47 #3638 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray
00:00:47 #3639 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray
00:00:47 #3640 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray
00:00:47 #3641 [Verbose] >
00:00:47 #3642 [Verbose] > "response to a constant force",
00:00:47 #3643 [Verbose] > "time (years)",
00:00:47 #3644 [Verbose] > "velocity (multiples of c)",
00:00:47 #3645 [Verbose] > ;[[
00:00:47 #3646 [Verbose] > "newtonian", newton_x, newton_y
00:00:47 #3647 [Verbose] > "relativistic", newton_x, relativity_y
00:00:47 #3648 [Verbose] > ]]
00:00:48 #3649 [Verbose] >
00:00:48 #3650 [Verbose] > ╭─[ 803.76ms - return value ]──────────────────────────────────────────────────╮
00:00:48 #3651 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:48 #3652 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:48 #3653 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:48 #3654 [Verbose] > │ stroke="none"/> │
00:00:48 #3655 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:48 #3656 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:48 #3657 [Verbose] > │ fill="#FFFFFF"> │
00:00:48 #3658 [Verbose] > │ response to a constant force │
00:00:48 #3659 [Verbose] > │ </text> │
00:00:48 #3660 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:48 #3661 [Verbose] > │ y2="75"/> │
00:00:48 #3662 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:48 #3663 [Verbose] > │ y2="75"/> │
00:00:48 #3664 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:48 #3665 [Verbose] > │ y2="75"/> │
00:00:48 #3666 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:48 #3667 [Verbose] > │ y2="75"/> │
00:00:48 #3668 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:48 #3669 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 #3670 [Verbose] >
00:00:48 #3671 [Verbose] > ╭─[ 824.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:48 #3672 [Verbose] > │ type UH0 = │
00:00:48 #3673 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:48 #3674 [Verbose] > │ * float * UH0 │
00:00:48 #3675 [Verbose] > │ | UH0_1 │
00:00:48 #3676 [Verbose] > │ and UH1 = │
00:00:48 #3677 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:48 #3678 [Verbose] > │ | UH1_1 │
00:00:48 #3679 [Verbose] > │ and UH2 = │
00:00:48 #3680 [Verbose] > │ | UH2_0 of float * UH2 │
00:00:48 #3681 [Verbose] > │ | UH2_1 │
00:00:48 #3682 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float * │
00:00:48 #3683 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:48 #3684 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3 │
00:00:48 #3685 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : │
00:00:48 #3686 [Verbose] > │ float) : struct (float * float * float * float * float * float * float * │
00:00:48 #3687 [Verbose] > │ float * float) = │
00:00:48 #3688 [Verbose] > │ let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 : │
00:00:48 #3689 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1, │
00:00:48 #3690 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:48 #3691 [Verbose] > │ let v19 : float = v15 * 50000.0 │
00:00:48 #3692 [Verbose] > │ let v20 : float = v6 + v19 │
00:00:48 #3693 [Verbose] > │ let v21 : float = 50000.0 * v12 │
00:00:48 #3694 [Verbose] > │ let v22 : float = 50000.0 * v13 │
00:00:48 #3695 [Verbose] > │ let v23 : float = 50000.0 * v14 │
00:00:48 #3696 [Verbose] > │ let v24 : float = v3 + v21 │
00:00:48 #3697 [Verbose] > │ let v25 : float = v4 + v22 │
00:00:48 #3698 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:48 #3699 [Verbose] > │ let v27 : float = 50000.0 * v16 │
00:00:48 #3700 [Verbose] > │ let v28 : float = 50000.0 * v17 │
00:00:48 #3701 [Verbose] > │ let v29 : float = 50000.0 * v18 │
00:00:48 #3702 [Verbose] > │ let v30 : float = v7 + v27 │
00:00:48 #3703 [Verbose] > │ let v31 : float = v8 + v28 │
00:00:48 #3704 [Verbose] > │ let v32 : float = v9 + v29 │
00:00:48 #3705 [Verbose] > │ let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 : │
00:00:48 #3706 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1, │
00:00:48 #3707 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32) │
00:00:48 #3708 [Verbose] > │ let v42 : float = v38 * 50000.0 │
00:00:48 #3709 [Verbose] > │ let v43 : float = v6 + v42 │
00:00:48 #3710 [Verbose] > │ let v44 : float = 50000.0 * v35 │
00:00:48 #3711 [Verbose] > │ let v45 : float = 50000.0 * v36 │
00:00:48 #3712 [Verbose] > │ let v46 : float = 50000.0 * v37 │
00:00:48 #3713 [Verbose] > │ let v47 : float = v3 + v44 │
00:00:48 #3714 [Verbose] > │ let v48 : float = v4 + v45 │
00:00:48 #3715 [Verbose] > │ let v49 : float = v5 + v46 │
00:00:48 #3716 [Verbose] > │ let v50 : float = 50000.0 * v39 │
00:00:48 #3717 [Verbose] > │ let v51 : float = 50000.0 * v40 │
00:00:48 #3718 [Verbose] > │ let v52 : float = 50000.0 * v41 │
00:00:48 #3719 [Verbose] > │ let v53 : float = v7 + v50 │
00:00:48 #3720 [Verbose] > │ let v54 : float = v8 + v51 │
00:00:48 #3721 [Verbose] > │ let v55 : float = v9 + v52 │
00:00:48 #3722 [Verbose] > │ let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 : │
00:00:48 #3723 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1, │
00:00:48 #3724 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55) │
00:00:48 #3725 [Verbose] > │ let v65 : float = v61 * 100000.0 │
00:00:48 #3726 [Verbose] > │ let v66 : float = v6 + v65 │
00:00:48 #3727 [Verbose] > │ let v67 : float = 100000.0 * v58 │
00:00:48 #3728 [Verbose] > │ let v68 : float = 100000.0 * v59 │
00:00:48 #3729 [Verbose] > │ let v69 : float = 100000.0 * v60 │
00:00:48 #3730 [Verbose] > │ let v70 : float = v3 + v67 │
00:00:48 #3731 [Verbose] > │ let v71 : float = v4 + v68 │
00:00:48 #3732 [Verbose] > │ let v72 : float = v5 + v69 │
00:00:48 #3733 [Verbose] > │ let v73 : float = 100000.0 * v62 │
00:00:48 #3734 [Verbose] > │ let v74 : float = 100000.0 * v63 │
00:00:48 #3735 [Verbose] > │ let v75 : float = 100000.0 * v64 │
00:00:48 #3736 [Verbose] > │ let v76 : float = v7 + v73 │
00:00:48 #3737 [Verbose] > │ let v77 : float = v8 + v74 │
00:00:48 #3738 [Verbose] > │ let v78 : float = v9 + v75 │
00:00:48 #3739 [Verbose] > │ let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 : │
00:00:48 #3740 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1, │
00:00:48 #3741 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78) │
00:00:48 #3742 [Verbose] > │ let v88 : float = v10 + v33 │
00:00:48 #3743 [Verbose] > │ let v89 : float = v11 + v34 │
00:00:48 #3744 [Verbose] > │ let v90 : float = v15 + v38 │
00:00:48 #3745 [Verbose] > │ let v91 : float = v12 + v35 │
00:00:48 #3746 [Verbose] > │ let v92 : float = v13 + v36 │
00:00:48 #3747 [Verbose] > │ let v93 : float = v14 + v37 │
00:00:48 #3748 [Verbose] > │ let v94 : float = v16 + v39 │
00:00:48 #3749 [Verbose] > │ let v95 : float = v17 + v40 │
00:00:48 #3750 [Verbose] > │ let v96 : float = v18 + v41 │
00:00:48 #3751 [Verbose] > │ let v97 : float = v88 + v33 │
00:00:48 #3752 [Verbose] > │ let v98 : float = v89 + v34 │
00:00:48 #3753 [Verbose] > │ let v99 : float = v90 + v38 │
00:00:48 #3754 [Verbose] > │ let v100 : float = v91 + v35 │
00:00:48 #3755 [Verbose] > │ let v101 : float = v92 + v36 │
00:00:48 #3756 [Verbose] > │ let v102 : float = v93 + v37 │
00:00:48 #3757 [Verbose] > │ let v103 : float = v94 + v39 │
00:00:48 #3758 [Verbose] > │ let v104 : float = v95 + v40 │
00:00:48 #3759 [Verbose] > │ let v105 : float = v96 + v41 │
00:00:48 #3760 [Verbose] > │ let v106 : float = v97 + v56 │
00:00:48 #3761 [Verbose] > │ let v107 : float = v98 + v57 │
00:00:48 #3762 [Verbose] > │ let v108 : float = v99 + v61 │
00:00:48 #3763 [Verbose] > │ let v109 : float = v100 + v58 │
00:00:48 #3764 [Verbose] > │ let v110 : float = v101 + v59 │
00:00:48 #3765 [Verbose] > │ let v111 : float = v102 + v60 │
00:00:48 #3766 [Verbose] > │ let v112 : float = v103 + v62 │
00:00:48 #3767 [Verbose] > │ let v113 : float = v104 + v63 │
00:00:48 #3768 [Verbose] > │ let v114 : float = v105 + v64 │
00:00:48 #3769 [Verbose] > │ let v115 : float = v106 + v56 │
00:00:48 #3770 [Verbose] > │ let v116 : float = v107 + v57 │
00:00:48 #3771 [Verbose] > │ let v117 : float = v108 + v61 │
00:00:48 #3772 [Verbose] > │ let v118 : float = v109 + v58 │
00:00:48 #3773 [Verbose] > │ let v119 : float = v110 + v59 │
00:00:48 #3774 [Verbose] > │ let v120 : float = v111 + v60 │
00:00:48 #3775 [Verbose] > │ let v121 : float = v112 + v62 │
00:00:48 #3776 [Verbose] > │ let v122 : float = v113 + v63 │
00:00:48 #3777 [Verbose] > │ let v123 : float = v114 + v64 │
00:00:48 #3778 [Verbose] > │ let v124 : float = v115 + v79 │
00:00:48 #3779 [Verbose] > │ let v125 : float = v116 + v80 │
00:00:48 #3780 [Verbose] > │ let v126 : float = v117 + v84 │
00:00:48 #3781 [Verbose] > │ let v127 : float = v118 + v81 │
00:00:48 #3782 [Verbose] > │ let v128 : float = v119 + v82 │
00:00:48 #3783 [Verbose] > │ let v129 : float = v120 + v83 │
00:00:48 #3784 [Verbose] > │ let v130 : float = v121 + v85 │
00:00:48 #3785 [Verbose] > │ let v131 : float = v122 + v86 │
00:00:48 #3786 [Verbose] > │ let v132 : float = v123 + v87 │
00:00:48 #3787 [Verbose] > │ let v133 : float = v126 * 16666.666666666668 │
00:00:48 #3788 [Verbose] > │ let v134 : float = v6 + v133 │
00:00:48 #3789 [Verbose] > │ let v135 : float = 16666.666666666668 * v127 │
00:00:48 #3790 [Verbose] > │ let v136 : float = 16666.666666666668 * v128 │
00:00:48 #3791 [Verbose] > │ let v137 : float = 16666.666666666668 * v129 │
00:00:48 #3792 [Verbose] > │ let v138 : float = v3 + v135 │
00:00:48 #3793 [Verbose] > │ let v139 : float = v4 + v136 │
00:00:48 #3794 [Verbose] > │ let v140 : float = v5 + v137 │
00:00:48 #3795 [Verbose] > │ let v141 : float = 16666.666666666668 * v130 │
00:00:48 #3796 [Verbose] > │ let v142 : float = 16666.666666666668 * v131 │
00:00:48 #3797 [Verbose] > │ let v143 : float = 16666.666666666668 * v132 │
00:00:48 #3798 [Verbose] > │ let v144 : float = v7 + v141 │
00:00:48 #3799 [Verbose] > │ let v145 : float = v8 + v142 │
00:00:48 #3800 [Verbose] > │ let v146 : float = v9 + v143 │
00:00:48 #3801 [Verbose] > │ struct (v1, v2, v138, v139, v140, v134, v144, v145, v146) │
00:00:48 #3802 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │
00:00:48 #3803 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float * │
00:00:48 #3804 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float * │
00:00:48 #3805 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float * │
00:00:48 #3806 [Verbose] > │ float * float * float * float * float * float)) = │
00:00:48 #3807 [Verbose] > │ closure1(v0) │
00:00:48 #3808 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:48 #3809 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:48 #3810 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:48 #3811 [Verbose] > │ let v9 : float = 10.0 / v1 │
00:00:48 #3812 [Verbose] > │ let v10 : float = 0.0 / v1 │
00:00:48 #3813 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v9, v10, v10) │
00:00:48 #3814 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:48 #3815 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:48 #3816 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:48 #3817 [Verbose] > │ let v9 : float = v6 / 299792458.0 │
00:00:48 #3818 [Verbose] > │ let v10 : float = v7 / 299792458.0 │
00:00:48 #3819 [Verbose] > │ let v11 : float = v8 / 299792458.0 │
00:00:48 #3820 [Verbose] > │ let v12 : float = v9 * v9 │
00:00:48 #3821 [Verbose] > │ let v13 : float = v10 * v10 │
00:00:48 #3822 [Verbose] > │ let v14 : float = v12 + v13 │
00:00:48 #3823 [Verbose] > │ let v15 : float = v11 * v11 │
00:00:48 #3824 [Verbose] > │ let v16 : float = v14 + v15 │
00:00:48 #3825 [Verbose] > │ let v17 : float = 1.0 - v16 │
00:00:48 #3826 [Verbose] > │ let v18 : float = sqrt v17 │
00:00:48 #3827 [Verbose] > │ let v19 : float = 10.0 * v9 │
00:00:48 #3828 [Verbose] > │ let v20 : float = 0.0 * v10 │
00:00:48 #3829 [Verbose] > │ let v21 : float = v19 + v20 │
00:00:48 #3830 [Verbose] > │ let v22 : float = 0.0 * v11 │
00:00:48 #3831 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:48 #3832 [Verbose] > │ let v24 : float = v23 * v9 │
00:00:48 #3833 [Verbose] > │ let v25 : float = v23 * v10 │
00:00:48 #3834 [Verbose] > │ let v26 : float = v23 * v11 │
00:00:48 #3835 [Verbose] > │ let v27 : float = -1.0 * v24 │
00:00:48 #3836 [Verbose] > │ let v28 : float = -1.0 * v25 │
00:00:48 #3837 [Verbose] > │ let v29 : float = -1.0 * v26 │
00:00:48 #3838 [Verbose] > │ let v30 : float = 10.0 + v27 │
00:00:48 #3839 [Verbose] > │ let v31 : float = v18 * v30 │
00:00:48 #3840 [Verbose] > │ let v32 : float = v18 * v28 │
00:00:48 #3841 [Verbose] > │ let v33 : float = v18 * v29 │
00:00:48 #3842 [Verbose] > │ let v34 : float = v31 / v1 │
00:00:48 #3843 [Verbose] > │ let v35 : float = v32 / v1 │
00:00:48 #3844 [Verbose] > │ let v36 : float = v33 / v1 │
00:00:48 #3845 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v34, v35, v36) │
00:00:48 #3846 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float * │
00:00:48 #3847 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:48 #3848 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 : │
00:00:48 #3849 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 : │
00:00:48 #3850 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float * │
00:00:48 #3851 [Verbose] > │ float * float) = │
00:00:48 #3852 [Verbose] > │ let v11 : bool = v10 <= 0 │
00:00:48 #3853 [Verbose] > │ if v11 then │
00:00:48 #3854 [Verbose] > │ struct (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:48 #3855 [Verbose] > │ else │
00:00:48 #3856 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:48 #3857 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct │
00:00:48 #3858 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:48 #3859 [Verbose] > │ let v21 : int32 = v10 - 1 │
00:00:48 #3860 [Verbose] > │ method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) │
00:00:48 #3861 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:48 #3862 [Verbose] > │ match v0 with │
00:00:48 #3863 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:48 #3864 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:48 #3865 [Verbose] > │ method3(v11, v12) │
00:00:48 #3866 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:48 #3867 [Verbose] > │ v1 │
00:00:48 #3868 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float * │
00:00:48 #3869 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:48 #3870 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:48 #3871 [Verbose] > │ let v3 : float = 0.0 │
00:00:48 #3872 [Verbose] > │ let v4 : float = 1.0 │
00:00:48 #3873 [Verbose] > │ let v5 : float = 0.0 │
00:00:48 #3874 [Verbose] > │ let v6 : float = 0.0 │
00:00:48 #3875 [Verbose] > │ let v7 : float = 0.0 │
00:00:48 #3876 [Verbose] > │ let v8 : float = 0.0 │
00:00:48 #3877 [Verbose] > │ let v9 : float = 0.0 │
00:00:48 #3878 [Verbose] > │ let v10 : float = 0.0 │
00:00:48 #3879 [Verbose] > │ let v11 : float = 0.0 │
00:00:48 #3880 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:48 #3881 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:48 #3882 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:48 #3883 [Verbose] > │ let v21 : bool = v17 <= 31557600.0 │
00:00:48 #3884 [Verbose] > │ if v21 then │
00:00:48 #3885 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:48 #3886 [Verbose] > │ v1) │
00:00:48 #3887 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:48 #3888 [Verbose] > │ method1(v0, v22, v23) │
00:00:48 #3889 [Verbose] > │ else │
00:00:48 #3890 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:48 #3891 [Verbose] > │ method3(v1, v25) │
00:00:48 #3892 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:48 #3893 [Verbose] > │ match v0 with │
00:00:48 #3894 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:48 #3895 [Verbose] > │ let v12 : UH1 = method4(v11, v1) │
00:00:48 #3896 [Verbose] > │ let v13 : float = v7 / 31557600.0 │
00:00:48 #3897 [Verbose] > │ let v14 : float = v8 / 299792458.0 │
00:00:48 #3898 [Verbose] > │ UH1_0(v13, v14, v12) │
00:00:48 #3899 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:48 #3900 [Verbose] > │ v1 │
00:00:48 #3901 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) = │
00:00:48 #3902 [Verbose] > │ match v0 with │
00:00:48 #3903 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:48 #3904 [Verbose] > │ let v6 : UH2 = UH2_0(v3, v1) │
00:00:48 #3905 [Verbose] > │ let v7 : UH2 = UH2_0(v4, v2) │
00:00:48 #3906 [Verbose] > │ method5(v5, v6, v7) │
00:00:48 #3907 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:48 #3908 [Verbose] > │ struct (v1, v2) │
00:00:48 #3909 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:48 #3910 [Verbose] > │ match v0 with │
00:00:48 #3911 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:48 #3912 [Verbose] > │ let v4 : UH2 = UH2_0(v2, v1) │
00:00:48 #3913 [Verbose] > │ method6(v3, v4) │
00:00:48 #3914 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:48 #3915 [Verbose] > │ v1 │
00:00:48 #3916 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float * │
00:00:48 #3917 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:48 #3918 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:48 #3919 [Verbose] > │ let v3 : float = 0.0 │
00:00:48 #3920 [Verbose] > │ let v4 : float = 1.0 │
00:00:48 #3921 [Verbose] > │ let v5 : float = 0.0 │
00:00:48 #3922 [Verbose] > │ let v6 : float = 0.0 │
00:00:48 #3923 [Verbose] > │ let v7 : float = 0.0 │
00:00:48 #3924 [Verbose] > │ let v8 : float = 0.0 │
00:00:48 #3925 [Verbose] > │ let v9 : float = 0.0 │
00:00:48 #3926 [Verbose] > │ let v10 : float = 0.0 │
00:00:48 #3927 [Verbose] > │ let v11 : float = 0.0 │
00:00:48 #3928 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:48 #3929 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:48 #3930 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:48 #3931 [Verbose] > │ let v21 : bool = v17 <= 31557600.0 │
00:00:48 #3932 [Verbose] > │ if v21 then │
00:00:48 #3933 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:48 #3934 [Verbose] > │ v1) │
00:00:48 #3935 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:48 #3936 [Verbose] > │ method7(v0, v22, v23) │
00:00:48 #3937 [Verbose] > │ else │
00:00:48 #3938 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:48 #3939 [Verbose] > │ method3(v1, v25) │
00:00:48 #3940 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:48 #3941 [Verbose] > │ match v0 with │
00:00:48 #3942 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:48 #3943 [Verbose] > │ let v12 : UH1 = method8(v11, v1) │
00:00:48 #3944 [Verbose] > │ let v13 : float = v7 / 31557600.0 │
00:00:48 #3945 [Verbose] > │ let v14 : float = v8 / 299792458.0 │
00:00:48 #3946 [Verbose] > │ UH1_0(v13, v14, v12) │
00:00:48 #3947 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:48 #3948 [Verbose] > │ v1 │
00:00:48 #3949 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:00:48 #3950 [Verbose] > │ match v0 with │
00:00:48 #3951 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:48 #3952 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:48 #3953 [Verbose] > │ method10(v3, v4) │
00:00:48 #3954 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:48 #3955 [Verbose] > │ v1 │
00:00:48 #3956 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 = │
00:00:48 #3957 [Verbose] > │ match v1 with │
00:00:48 #3958 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:48 #3959 [Verbose] > │ v0.[int v2] <- v3 │
00:00:48 #3960 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:48 #3961 [Verbose] > │ method11(v0, v4, v5) │
00:00:48 #3962 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:48 #3963 [Verbose] > │ v2 │
00:00:48 #3964 [Verbose] > │ and method9 (v0 : UH2) : (float []) = │
00:00:48 #3965 [Verbose] > │ let v1 : int32 = 0 │
00:00:48 #3966 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:00:48 #3967 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:48 #3968 [Verbose] > │ let v4 : int32 = 0 │
00:00:48 #3969 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:00:48 #3970 [Verbose] > │ v3 │
00:00:48 #3971 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:48 #3972 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:48 #3973 [Verbose] > │ v0 │
00:00:48 #3974 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:48 #3975 [Verbose] > │ []) * (float [])) [])) = │
00:00:48 #3976 [Verbose] > │ let v0 : ((struct (float * float * float * float * float * float * float │
00:00:48 #3977 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:48 #3978 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float * │
00:00:48 #3979 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:48 #3980 [Verbose] > │ float * float * float * float * float))) = closure0() │
00:00:48 #3981 [Verbose] > │ let v1 : (struct (float * float * float * float * float * float * float │
00:00:48 #3982 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:48 #3983 [Verbose] > │ float * float * float)) = closure2() │
00:00:48 #3984 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:48 #3985 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:48 #3986 [Verbose] > │ float * float * float)) = v0 v1 │
00:00:48 #3987 [Verbose] > │ let v3 : (struct (float * float * float * float * float * float * float │
00:00:48 #3988 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:48 #3989 [Verbose] > │ float * float * float)) = closure3() │
00:00:48 #3990 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:48 #3991 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:48 #3992 [Verbose] > │ float * float * float)) = v0 v3 │
00:00:48 #3993 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:48 #3994 [Verbose] > │ let v6 : int32 = 0 │
00:00:48 #3995 [Verbose] > │ let v7 : UH0 = method1(v2, v5, v6) │
00:00:48 #3996 [Verbose] > │ let v8 : UH1 = UH1_1 │
00:00:48 #3997 [Verbose] > │ let v9 : UH1 = method4(v7, v8) │
00:00:48 #3998 [Verbose] > │ let v10 : UH2 = UH2_1 │
00:00:48 #3999 [Verbose] > │ let v11 : UH2 = UH2_1 │
00:00:48 #4000 [Verbose] > │ let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11) │
00:00:48 #4001 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:48 #4002 [Verbose] > │ let v15 : UH2 = method6(v12, v14) │
00:00:48 #4003 [Verbose] > │ let v16 : UH2 = UH2_1 │
00:00:48 #4004 [Verbose] > │ let v17 : UH2 = method6(v13, v16) │
00:00:48 #4005 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:48 #4006 [Verbose] > │ let v19 : int32 = 0 │
00:00:48 #4007 [Verbose] > │ let v20 : UH0 = method7(v4, v18, v19) │
00:00:48 #4008 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:48 #4009 [Verbose] > │ let v22 : UH1 = method8(v20, v21) │
00:00:48 #4010 [Verbose] > │ let v23 : UH2 = UH2_1 │
00:00:48 #4011 [Verbose] > │ let v24 : UH2 = UH2_1 │
00:00:48 #4012 [Verbose] > │ let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24) │
00:00:48 #4013 [Verbose] > │ let v27 : UH2 = UH2_1 │
00:00:48 #4014 [Verbose] > │ let v28 : UH2 = method6(v25, v27) │
00:00:48 #4015 [Verbose] > │ let v29 : UH2 = UH2_1 │
00:00:48 #4016 [Verbose] > │ let v30 : UH2 = method6(v26, v29) │
00:00:48 #4017 [Verbose] > │ let v31 : (float []) = method9(v15) │
00:00:48 #4018 [Verbose] > │ let v32 : (float []) = method9(v17) │
00:00:48 #4019 [Verbose] > │ let v33 : (float []) = method9(v30) │
00:00:48 #4020 [Verbose] > │ let v34 : string = "newtonian" │
00:00:48 #4021 [Verbose] > │ let v35 : string = "relativistic" │
00:00:48 #4022 [Verbose] > │ let v36 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:48 #4023 [Verbose] > │ (v34, v31, v32); struct (v35, v31, v33)|] │
00:00:48 #4024 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = method12(v36) │
00:00:48 #4025 [Verbose] > │ let v38 : string = "response to a constant force" │
00:00:48 #4026 [Verbose] > │ let v39 : string = "time (years)" │
00:00:48 #4027 [Verbose] > │ let v40 : string = "velocity (multiples of c)" │
00:00:48 #4028 [Verbose] > │ struct (v38, v39, v40, v37) │
00:00:48 #4029 [Verbose] > │ method0() │
00:00:48 #4030 [Verbose] > │ │
00:00:48 #4031 [Verbose] > │ │
00:00:48 #4032 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 #4033 [Verbose] >
00:00:48 #4034 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 #4035 [Verbose] > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:00:48 #4036 [Verbose] > st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:00:49 #4037 [Verbose] >
00:00:49 #4038 [Verbose] > ╭─[ 284.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:49 #4039 [Verbose] > │ () │
00:00:49 #4040 [Verbose] > │ │
00:00:49 #4041 [Verbose] > │ │
00:00:49 #4042 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 #4043 [Verbose] >
00:00:49 #4044 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 #4045 [Verbose] > // // test
00:00:49 #4046 [Verbose] >
00:00:49 #4047 [Verbose] > inl c : f64 = 299792458
00:00:49 #4048 [Verbose] > inl ~method = runge_kutta_4 0.000000001
00:00:49 #4049 [Verbose] > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:00:49 #4050 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:49 #4051 [Verbose] > inl initial_state =
00:00:49 #4052 [Verbose] > particle_state { default_particle_state' with
00:00:49 #4053 [Verbose] > mass = 0.000000000000000000000000001672621898
00:00:49 #4054 [Verbose] > charge = 0.0000000000000000001602176621
00:00:49 #4055 [Verbose] > velocity = 0.8 *^ (c *^ j_hat ())
00:00:49 #4056 [Verbose] > }
00:00:49 #4057 [Verbose] >
00:00:49 #4058 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:00:49 #4059 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:00:49 #4060 [Verbose] >
00:00:49 #4061 [Verbose] > inl newton_x, newton_y =
00:00:49 #4062 [Verbose] > newton_states
00:00:49 #4063 [Verbose] > >> Some
00:00:49 #4064 [Verbose] > |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:00:49 #4065 [Verbose] > |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:00:49 #4066 [Verbose] > |> listm'.unzip
00:00:49 #4067 [Verbose] >
00:00:49 #4068 [Verbose] > inl relativity_x, relativity_y =
00:00:49 #4069 [Verbose] > relativity_states
00:00:49 #4070 [Verbose] > >> Some
00:00:49 #4071 [Verbose] > |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:00:49 #4072 [Verbose] > |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:00:49 #4073 [Verbose] > |> listm'.unzip
00:00:49 #4074 [Verbose] >
00:00:49 #4075 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray
00:00:49 #4076 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray
00:00:49 #4077 [Verbose] >
00:00:49 #4078 [Verbose] > inl relativity_x : a i32 _ = relativity_x |> listm.toArray
00:00:49 #4079 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray
00:00:49 #4080 [Verbose] >
00:00:49 #4081 [Verbose] > "proton in a 1-t magnetic field",
00:00:49 #4082 [Verbose] > "x (m)",
00:00:49 #4083 [Verbose] > "y (m)",
00:00:49 #4084 [Verbose] > ;[[
00:00:49 #4085 [Verbose] > "newtonian", newton_x, newton_y
00:00:49 #4086 [Verbose] > "relativistic", relativity_x, relativity_y
00:00:49 #4087 [Verbose] > ]]
00:00:49 #4088 [Verbose] >
00:00:49 #4089 [Verbose] > ╭─[ 676.01ms - return value ]──────────────────────────────────────────────────╮
00:00:49 #4090 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:49 #4091 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:49 #4092 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:49 #4093 [Verbose] > │ stroke="none"/> │
00:00:49 #4094 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:49 #4095 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:49 #4096 [Verbose] > │ fill="#FFFFFF"> │
00:00:49 #4097 [Verbose] > │ proton in a 1-t magnetic field │
00:00:49 #4098 [Verbose] > │ </text> │
00:00:49 #4099 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:00:49 #4100 [Verbose] > │ y2="75"/> │
00:00:49 #4101 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:49 #4102 [Verbose] > │ y2="75"/> │
00:00:49 #4103 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:00:49 #4104 [Verbose] > │ y2="75"/> │
00:00:49 #4105 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:00:49 #4106 [Verbose] > │ y2="75"/> │
00:00:49 #4107 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x... │
00:00:49 #4108 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 #4109 [Verbose] >
00:00:49 #4110 [Verbose] > ╭─[ 690.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:49 #4111 [Verbose] > │ type UH0 = │
00:00:49 #4112 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:49 #4113 [Verbose] > │ * float * UH0 │
00:00:49 #4114 [Verbose] > │ | UH0_1 │
00:00:49 #4115 [Verbose] > │ and UH1 = │
00:00:49 #4116 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:49 #4117 [Verbose] > │ | UH1_1 │
00:00:49 #4118 [Verbose] > │ and UH2 = │
00:00:49 #4119 [Verbose] > │ | UH2_0 of float * UH2 │
00:00:49 #4120 [Verbose] > │ | UH2_1 │
00:00:49 #4121 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float * │
00:00:49 #4122 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:49 #4123 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3 │
00:00:49 #4124 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : │
00:00:49 #4125 [Verbose] > │ float) : struct (float * float * float * float * float * float * float * │
00:00:49 #4126 [Verbose] > │ float * float) = │
00:00:49 #4127 [Verbose] > │ let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 : │
00:00:49 #4128 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1, │
00:00:49 #4129 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:49 #4130 [Verbose] > │ let v19 : float = v15 * 5E-10 │
00:00:49 #4131 [Verbose] > │ let v20 : float = v6 + v19 │
00:00:49 #4132 [Verbose] > │ let v21 : float = 5E-10 * v12 │
00:00:49 #4133 [Verbose] > │ let v22 : float = 5E-10 * v13 │
00:00:49 #4134 [Verbose] > │ let v23 : float = 5E-10 * v14 │
00:00:49 #4135 [Verbose] > │ let v24 : float = v3 + v21 │
00:00:49 #4136 [Verbose] > │ let v25 : float = v4 + v22 │
00:00:49 #4137 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:49 #4138 [Verbose] > │ let v27 : float = 5E-10 * v16 │
00:00:49 #4139 [Verbose] > │ let v28 : float = 5E-10 * v17 │
00:00:49 #4140 [Verbose] > │ let v29 : float = 5E-10 * v18 │
00:00:49 #4141 [Verbose] > │ let v30 : float = v7 + v27 │
00:00:49 #4142 [Verbose] > │ let v31 : float = v8 + v28 │
00:00:49 #4143 [Verbose] > │ let v32 : float = v9 + v29 │
00:00:49 #4144 [Verbose] > │ let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 : │
00:00:49 #4145 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1, │
00:00:49 #4146 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32) │
00:00:49 #4147 [Verbose] > │ let v42 : float = v38 * 5E-10 │
00:00:49 #4148 [Verbose] > │ let v43 : float = v6 + v42 │
00:00:49 #4149 [Verbose] > │ let v44 : float = 5E-10 * v35 │
00:00:49 #4150 [Verbose] > │ let v45 : float = 5E-10 * v36 │
00:00:49 #4151 [Verbose] > │ let v46 : float = 5E-10 * v37 │
00:00:49 #4152 [Verbose] > │ let v47 : float = v3 + v44 │
00:00:49 #4153 [Verbose] > │ let v48 : float = v4 + v45 │
00:00:49 #4154 [Verbose] > │ let v49 : float = v5 + v46 │
00:00:49 #4155 [Verbose] > │ let v50 : float = 5E-10 * v39 │
00:00:49 #4156 [Verbose] > │ let v51 : float = 5E-10 * v40 │
00:00:49 #4157 [Verbose] > │ let v52 : float = 5E-10 * v41 │
00:00:49 #4158 [Verbose] > │ let v53 : float = v7 + v50 │
00:00:49 #4159 [Verbose] > │ let v54 : float = v8 + v51 │
00:00:49 #4160 [Verbose] > │ let v55 : float = v9 + v52 │
00:00:49 #4161 [Verbose] > │ let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 : │
00:00:49 #4162 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1, │
00:00:49 #4163 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55) │
00:00:49 #4164 [Verbose] > │ let v65 : float = v61 * 1E-09 │
00:00:49 #4165 [Verbose] > │ let v66 : float = v6 + v65 │
00:00:49 #4166 [Verbose] > │ let v67 : float = 1E-09 * v58 │
00:00:49 #4167 [Verbose] > │ let v68 : float = 1E-09 * v59 │
00:00:49 #4168 [Verbose] > │ let v69 : float = 1E-09 * v60 │
00:00:49 #4169 [Verbose] > │ let v70 : float = v3 + v67 │
00:00:49 #4170 [Verbose] > │ let v71 : float = v4 + v68 │
00:00:49 #4171 [Verbose] > │ let v72 : float = v5 + v69 │
00:00:49 #4172 [Verbose] > │ let v73 : float = 1E-09 * v62 │
00:00:49 #4173 [Verbose] > │ let v74 : float = 1E-09 * v63 │
00:00:49 #4174 [Verbose] > │ let v75 : float = 1E-09 * v64 │
00:00:49 #4175 [Verbose] > │ let v76 : float = v7 + v73 │
00:00:49 #4176 [Verbose] > │ let v77 : float = v8 + v74 │
00:00:49 #4177 [Verbose] > │ let v78 : float = v9 + v75 │
00:00:49 #4178 [Verbose] > │ let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 : │
00:00:49 #4179 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1, │
00:00:49 #4180 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78) │
00:00:49 #4181 [Verbose] > │ let v88 : float = v10 + v33 │
00:00:49 #4182 [Verbose] > │ let v89 : float = v11 + v34 │
00:00:49 #4183 [Verbose] > │ let v90 : float = v15 + v38 │
00:00:49 #4184 [Verbose] > │ let v91 : float = v12 + v35 │
00:00:49 #4185 [Verbose] > │ let v92 : float = v13 + v36 │
00:00:49 #4186 [Verbose] > │ let v93 : float = v14 + v37 │
00:00:49 #4187 [Verbose] > │ let v94 : float = v16 + v39 │
00:00:49 #4188 [Verbose] > │ let v95 : float = v17 + v40 │
00:00:49 #4189 [Verbose] > │ let v96 : float = v18 + v41 │
00:00:49 #4190 [Verbose] > │ let v97 : float = v88 + v33 │
00:00:49 #4191 [Verbose] > │ let v98 : float = v89 + v34 │
00:00:49 #4192 [Verbose] > │ let v99 : float = v90 + v38 │
00:00:49 #4193 [Verbose] > │ let v100 : float = v91 + v35 │
00:00:49 #4194 [Verbose] > │ let v101 : float = v92 + v36 │
00:00:49 #4195 [Verbose] > │ let v102 : float = v93 + v37 │
00:00:49 #4196 [Verbose] > │ let v103 : float = v94 + v39 │
00:00:49 #4197 [Verbose] > │ let v104 : float = v95 + v40 │
00:00:49 #4198 [Verbose] > │ let v105 : float = v96 + v41 │
00:00:49 #4199 [Verbose] > │ let v106 : float = v97 + v56 │
00:00:49 #4200 [Verbose] > │ let v107 : float = v98 + v57 │
00:00:49 #4201 [Verbose] > │ let v108 : float = v99 + v61 │
00:00:49 #4202 [Verbose] > │ let v109 : float = v100 + v58 │
00:00:49 #4203 [Verbose] > │ let v110 : float = v101 + v59 │
00:00:49 #4204 [Verbose] > │ let v111 : float = v102 + v60 │
00:00:49 #4205 [Verbose] > │ let v112 : float = v103 + v62 │
00:00:49 #4206 [Verbose] > │ let v113 : float = v104 + v63 │
00:00:49 #4207 [Verbose] > │ let v114 : float = v105 + v64 │
00:00:49 #4208 [Verbose] > │ let v115 : float = v106 + v56 │
00:00:49 #4209 [Verbose] > │ let v116 : float = v107 + v57 │
00:00:49 #4210 [Verbose] > │ let v117 : float = v108 + v61 │
00:00:49 #4211 [Verbose] > │ let v118 : float = v109 + v58 │
00:00:49 #4212 [Verbose] > │ let v119 : float = v110 + v59 │
00:00:49 #4213 [Verbose] > │ let v120 : float = v111 + v60 │
00:00:49 #4214 [Verbose] > │ let v121 : float = v112 + v62 │
00:00:49 #4215 [Verbose] > │ let v122 : float = v113 + v63 │
00:00:49 #4216 [Verbose] > │ let v123 : float = v114 + v64 │
00:00:49 #4217 [Verbose] > │ let v124 : float = v115 + v79 │
00:00:49 #4218 [Verbose] > │ let v125 : float = v116 + v80 │
00:00:49 #4219 [Verbose] > │ let v126 : float = v117 + v84 │
00:00:49 #4220 [Verbose] > │ let v127 : float = v118 + v81 │
00:00:49 #4221 [Verbose] > │ let v128 : float = v119 + v82 │
00:00:49 #4222 [Verbose] > │ let v129 : float = v120 + v83 │
00:00:49 #4223 [Verbose] > │ let v130 : float = v121 + v85 │
00:00:49 #4224 [Verbose] > │ let v131 : float = v122 + v86 │
00:00:49 #4225 [Verbose] > │ let v132 : float = v123 + v87 │
00:00:49 #4226 [Verbose] > │ let v133 : float = v126 * 1.6666666666666669E-10 │
00:00:49 #4227 [Verbose] > │ let v134 : float = v6 + v133 │
00:00:49 #4228 [Verbose] > │ let v135 : float = 1.6666666666666669E-10 * v127 │
00:00:49 #4229 [Verbose] > │ let v136 : float = 1.6666666666666669E-10 * v128 │
00:00:49 #4230 [Verbose] > │ let v137 : float = 1.6666666666666669E-10 * v129 │
00:00:49 #4231 [Verbose] > │ let v138 : float = v3 + v135 │
00:00:49 #4232 [Verbose] > │ let v139 : float = v4 + v136 │
00:00:49 #4233 [Verbose] > │ let v140 : float = v5 + v137 │
00:00:49 #4234 [Verbose] > │ let v141 : float = 1.6666666666666669E-10 * v130 │
00:00:49 #4235 [Verbose] > │ let v142 : float = 1.6666666666666669E-10 * v131 │
00:00:49 #4236 [Verbose] > │ let v143 : float = 1.6666666666666669E-10 * v132 │
00:00:49 #4237 [Verbose] > │ let v144 : float = v7 + v141 │
00:00:49 #4238 [Verbose] > │ let v145 : float = v8 + v142 │
00:00:49 #4239 [Verbose] > │ let v146 : float = v9 + v143 │
00:00:49 #4240 [Verbose] > │ struct (v1, v2, v138, v139, v140, v134, v144, v145, v146) │
00:00:49 #4241 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │
00:00:49 #4242 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float * │
00:00:49 #4243 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float * │
00:00:49 #4244 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float * │
00:00:49 #4245 [Verbose] > │ float * float * float * float * float * float)) = │
00:00:49 #4246 [Verbose] > │ closure1(v0) │
00:00:49 #4247 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:49 #4248 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:49 #4249 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:49 #4250 [Verbose] > │ let v9 : float = v8 * 0.0 │
00:00:49 #4251 [Verbose] > │ let v10 : float = v7 - v9 │
00:00:49 #4252 [Verbose] > │ let v11 : float = v9 - v6 │
00:00:49 #4253 [Verbose] > │ let v12 : float = v6 * 0.0 │
00:00:49 #4254 [Verbose] > │ let v13 : float = v7 * 0.0 │
00:00:49 #4255 [Verbose] > │ let v14 : float = v12 - v13 │
00:00:49 #4256 [Verbose] > │ let v15 : float = v0 * v10 │
00:00:49 #4257 [Verbose] > │ let v16 : float = v0 * v11 │
00:00:49 #4258 [Verbose] > │ let v17 : float = v0 * v14 │
00:00:49 #4259 [Verbose] > │ let v18 : float = v15 / v1 │
00:00:49 #4260 [Verbose] > │ let v19 : float = v16 / v1 │
00:00:49 #4261 [Verbose] > │ let v20 : float = v17 / v1 │
00:00:49 #4262 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v18, v19, v20) │
00:00:49 #4263 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:49 #4264 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:49 #4265 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:49 #4266 [Verbose] > │ let v9 : float = v8 * 0.0 │
00:00:49 #4267 [Verbose] > │ let v10 : float = v7 - v9 │
00:00:49 #4268 [Verbose] > │ let v11 : float = v9 - v6 │
00:00:49 #4269 [Verbose] > │ let v12 : float = v6 * 0.0 │
00:00:49 #4270 [Verbose] > │ let v13 : float = v7 * 0.0 │
00:00:49 #4271 [Verbose] > │ let v14 : float = v12 - v13 │
00:00:49 #4272 [Verbose] > │ let v15 : float = v0 * v10 │
00:00:49 #4273 [Verbose] > │ let v16 : float = v0 * v11 │
00:00:49 #4274 [Verbose] > │ let v17 : float = v0 * v14 │
00:00:49 #4275 [Verbose] > │ let v18 : float = v6 / 299792458.0 │
00:00:49 #4276 [Verbose] > │ let v19 : float = v7 / 299792458.0 │
00:00:49 #4277 [Verbose] > │ let v20 : float = v8 / 299792458.0 │
00:00:49 #4278 [Verbose] > │ let v21 : float = v18 * v18 │
00:00:49 #4279 [Verbose] > │ let v22 : float = v19 * v19 │
00:00:49 #4280 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:49 #4281 [Verbose] > │ let v24 : float = v20 * v20 │
00:00:49 #4282 [Verbose] > │ let v25 : float = v23 + v24 │
00:00:49 #4283 [Verbose] > │ let v26 : float = 1.0 - v25 │
00:00:49 #4284 [Verbose] > │ let v27 : float = sqrt v26 │
00:00:49 #4285 [Verbose] > │ let v28 : float = v15 * v18 │
00:00:49 #4286 [Verbose] > │ let v29 : float = v16 * v19 │
00:00:49 #4287 [Verbose] > │ let v30 : float = v28 + v29 │
00:00:49 #4288 [Verbose] > │ let v31 : float = v17 * v20 │
00:00:49 #4289 [Verbose] > │ let v32 : float = v30 + v31 │
00:00:49 #4290 [Verbose] > │ let v33 : float = v32 * v18 │
00:00:49 #4291 [Verbose] > │ let v34 : float = v32 * v19 │
00:00:49 #4292 [Verbose] > │ let v35 : float = v32 * v20 │
00:00:49 #4293 [Verbose] > │ let v36 : float = -1.0 * v33 │
00:00:49 #4294 [Verbose] > │ let v37 : float = -1.0 * v34 │
00:00:49 #4295 [Verbose] > │ let v38 : float = -1.0 * v35 │
00:00:49 #4296 [Verbose] > │ let v39 : float = v15 + v36 │
00:00:49 #4297 [Verbose] > │ let v40 : float = v16 + v37 │
00:00:49 #4298 [Verbose] > │ let v41 : float = v17 + v38 │
00:00:49 #4299 [Verbose] > │ let v42 : float = v27 * v39 │
00:00:49 #4300 [Verbose] > │ let v43 : float = v27 * v40 │
00:00:49 #4301 [Verbose] > │ let v44 : float = v27 * v41 │
00:00:49 #4302 [Verbose] > │ let v45 : float = v42 / v1 │
00:00:49 #4303 [Verbose] > │ let v46 : float = v43 / v1 │
00:00:49 #4304 [Verbose] > │ let v47 : float = v44 / v1 │
00:00:49 #4305 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v45, v46, v47) │
00:00:49 #4306 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float * │
00:00:49 #4307 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:49 #4308 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 : │
00:00:49 #4309 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 : │
00:00:49 #4310 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float * │
00:00:49 #4311 [Verbose] > │ float * float) = │
00:00:49 #4312 [Verbose] > │ let v11 : bool = v10 <= 0 │
00:00:49 #4313 [Verbose] > │ if v11 then │
00:00:49 #4314 [Verbose] > │ struct (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:49 #4315 [Verbose] > │ else │
00:00:49 #4316 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:49 #4317 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct │
00:00:49 #4318 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:49 #4319 [Verbose] > │ let v21 : int32 = v10 - 1 │
00:00:49 #4320 [Verbose] > │ method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) │
00:00:49 #4321 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:49 #4322 [Verbose] > │ match v0 with │
00:00:49 #4323 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:49 #4324 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:49 #4325 [Verbose] > │ method3(v11, v12) │
00:00:49 #4326 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:49 #4327 [Verbose] > │ v1 │
00:00:49 #4328 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float * │
00:00:49 #4329 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:49 #4330 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:49 #4331 [Verbose] > │ let v3 : float = 1.602176621E-19 │
00:00:49 #4332 [Verbose] > │ let v4 : float = 1.672621898E-27 │
00:00:49 #4333 [Verbose] > │ let v5 : float = 0.0 │
00:00:49 #4334 [Verbose] > │ let v6 : float = 0.0 │
00:00:49 #4335 [Verbose] > │ let v7 : float = 0.0 │
00:00:49 #4336 [Verbose] > │ let v8 : float = 0.0 │
00:00:49 #4337 [Verbose] > │ let v9 : float = 0.0 │
00:00:49 #4338 [Verbose] > │ let v10 : float = 239833966.4 │
00:00:49 #4339 [Verbose] > │ let v11 : float = 0.0 │
00:00:49 #4340 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:49 #4341 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:49 #4342 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:49 #4343 [Verbose] > │ let v21 : bool = v2 < 100 │
00:00:49 #4344 [Verbose] > │ if v21 then │
00:00:49 #4345 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:49 #4346 [Verbose] > │ v1) │
00:00:49 #4347 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:49 #4348 [Verbose] > │ method1(v0, v22, v23) │
00:00:49 #4349 [Verbose] > │ else │
00:00:49 #4350 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:49 #4351 [Verbose] > │ method3(v1, v25) │
00:00:49 #4352 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:49 #4353 [Verbose] > │ match v0 with │
00:00:49 #4354 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:49 #4355 [Verbose] > │ let v12 : UH1 = method4(v11, v1) │
00:00:49 #4356 [Verbose] > │ UH1_0(v4, v5, v12) │
00:00:49 #4357 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:49 #4358 [Verbose] > │ v1 │
00:00:49 #4359 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) = │
00:00:49 #4360 [Verbose] > │ match v0 with │
00:00:49 #4361 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:49 #4362 [Verbose] > │ let v6 : UH2 = UH2_0(v3, v1) │
00:00:49 #4363 [Verbose] > │ let v7 : UH2 = UH2_0(v4, v2) │
00:00:49 #4364 [Verbose] > │ method5(v5, v6, v7) │
00:00:49 #4365 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:49 #4366 [Verbose] > │ struct (v1, v2) │
00:00:49 #4367 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:49 #4368 [Verbose] > │ match v0 with │
00:00:49 #4369 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:49 #4370 [Verbose] > │ let v4 : UH2 = UH2_0(v2, v1) │
00:00:49 #4371 [Verbose] > │ method6(v3, v4) │
00:00:49 #4372 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:49 #4373 [Verbose] > │ v1 │
00:00:49 #4374 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float * │
00:00:49 #4375 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:49 #4376 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:49 #4377 [Verbose] > │ let v3 : float = 1.602176621E-19 │
00:00:49 #4378 [Verbose] > │ let v4 : float = 1.672621898E-27 │
00:00:49 #4379 [Verbose] > │ let v5 : float = 0.0 │
00:00:49 #4380 [Verbose] > │ let v6 : float = 0.0 │
00:00:49 #4381 [Verbose] > │ let v7 : float = 0.0 │
00:00:49 #4382 [Verbose] > │ let v8 : float = 0.0 │
00:00:49 #4383 [Verbose] > │ let v9 : float = 0.0 │
00:00:49 #4384 [Verbose] > │ let v10 : float = 239833966.4 │
00:00:49 #4385 [Verbose] > │ let v11 : float = 0.0 │
00:00:49 #4386 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:49 #4387 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:49 #4388 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:49 #4389 [Verbose] > │ let v21 : bool = v2 < 165 │
00:00:49 #4390 [Verbose] > │ if v21 then │
00:00:49 #4391 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:49 #4392 [Verbose] > │ v1) │
00:00:49 #4393 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:49 #4394 [Verbose] > │ method7(v0, v22, v23) │
00:00:49 #4395 [Verbose] > │ else │
00:00:49 #4396 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:49 #4397 [Verbose] > │ method3(v1, v25) │
00:00:49 #4398 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:49 #4399 [Verbose] > │ match v0 with │
00:00:49 #4400 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:49 #4401 [Verbose] > │ let v12 : UH1 = method8(v11, v1) │
00:00:49 #4402 [Verbose] > │ UH1_0(v4, v5, v12) │
00:00:49 #4403 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:49 #4404 [Verbose] > │ v1 │
00:00:49 #4405 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:00:49 #4406 [Verbose] > │ match v0 with │
00:00:49 #4407 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:49 #4408 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:49 #4409 [Verbose] > │ method10(v3, v4) │
00:00:49 #4410 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:49 #4411 [Verbose] > │ v1 │
00:00:49 #4412 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 = │
00:00:49 #4413 [Verbose] > │ match v1 with │
00:00:49 #4414 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:49 #4415 [Verbose] > │ v0.[int v2] <- v3 │
00:00:49 #4416 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:49 #4417 [Verbose] > │ method11(v0, v4, v5) │
00:00:49 #4418 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:49 #4419 [Verbose] > │ v2 │
00:00:49 #4420 [Verbose] > │ and method9 (v0 : UH2) : (float []) = │
00:00:49 #4421 [Verbose] > │ let v1 : int32 = 0 │
00:00:49 #4422 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:00:49 #4423 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:49 #4424 [Verbose] > │ let v4 : int32 = 0 │
00:00:49 #4425 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:00:49 #4426 [Verbose] > │ v3 │
00:00:49 #4427 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:49 #4428 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:49 #4429 [Verbose] > │ v0 │
00:00:49 #4430 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:49 #4431 [Verbose] > │ []) * (float [])) [])) = │
00:00:49 #4432 [Verbose] > │ let v0 : ((struct (float * float * float * float * float * float * float │
00:00:49 #4433 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:49 #4434 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float * │
00:00:49 #4435 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:49 #4436 [Verbose] > │ float * float * float * float * float))) = closure0() │
00:00:49 #4437 [Verbose] > │ let v1 : (struct (float * float * float * float * float * float * float │
00:00:49 #4438 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:49 #4439 [Verbose] > │ float * float * float)) = closure2() │
00:00:49 #4440 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:49 #4441 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:49 #4442 [Verbose] > │ float * float * float)) = v0 v1 │
00:00:49 #4443 [Verbose] > │ let v3 : (struct (float * float * float * float * float * float * float │
00:00:49 #4444 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:49 #4445 [Verbose] > │ float * float * float)) = closure3() │
00:00:49 #4446 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:49 #4447 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:49 #4448 [Verbose] > │ float * float * float)) = v0 v3 │
00:00:49 #4449 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:49 #4450 [Verbose] > │ let v6 : int32 = 0 │
00:00:49 #4451 [Verbose] > │ let v7 : UH0 = method1(v2, v5, v6) │
00:00:49 #4452 [Verbose] > │ let v8 : UH1 = UH1_1 │
00:00:49 #4453 [Verbose] > │ let v9 : UH1 = method4(v7, v8) │
00:00:49 #4454 [Verbose] > │ let v10 : UH2 = UH2_1 │
00:00:49 #4455 [Verbose] > │ let v11 : UH2 = UH2_1 │
00:00:49 #4456 [Verbose] > │ let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11) │
00:00:49 #4457 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:49 #4458 [Verbose] > │ let v15 : UH2 = method6(v12, v14) │
00:00:49 #4459 [Verbose] > │ let v16 : UH2 = UH2_1 │
00:00:49 #4460 [Verbose] > │ let v17 : UH2 = method6(v13, v16) │
00:00:49 #4461 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:49 #4462 [Verbose] > │ let v19 : int32 = 0 │
00:00:49 #4463 [Verbose] > │ let v20 : UH0 = method7(v4, v18, v19) │
00:00:49 #4464 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:49 #4465 [Verbose] > │ let v22 : UH1 = method8(v20, v21) │
00:00:49 #4466 [Verbose] > │ let v23 : UH2 = UH2_1 │
00:00:49 #4467 [Verbose] > │ let v24 : UH2 = UH2_1 │
00:00:49 #4468 [Verbose] > │ let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24) │
00:00:49 #4469 [Verbose] > │ let v27 : UH2 = UH2_1 │
00:00:49 #4470 [Verbose] > │ let v28 : UH2 = method6(v25, v27) │
00:00:49 #4471 [Verbose] > │ let v29 : UH2 = UH2_1 │
00:00:49 #4472 [Verbose] > │ let v30 : UH2 = method6(v26, v29) │
00:00:49 #4473 [Verbose] > │ let v31 : (float []) = method9(v15) │
00:00:49 #4474 [Verbose] > │ let v32 : (float []) = method9(v17) │
00:00:49 #4475 [Verbose] > │ let v33 : (float []) = method9(v28) │
00:00:49 #4476 [Verbose] > │ let v34 : (float []) = method9(v30) │
00:00:49 #4477 [Verbose] > │ let v35 : string = "newtonian" │
00:00:49 #4478 [Verbose] > │ let v36 : string = "relativistic" │
00:00:49 #4479 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:49 #4480 [Verbose] > │ (v35, v31, v32); struct (v36, v33, v34)|] │
00:00:49 #4481 [Verbose] > │ let v38 : (struct (string * (float []) * (float [])) []) = method12(v37) │
00:00:49 #4482 [Verbose] > │ let v39 : string = "proton in a 1-t magnetic field" │
00:00:49 #4483 [Verbose] > │ let v40 : string = "x (m)" │
00:00:49 #4484 [Verbose] > │ let v41 : string = "y (m)" │
00:00:49 #4485 [Verbose] > │ struct (v39, v40, v41, v38) │
00:00:49 #4486 [Verbose] > │ method0() │
00:00:49 #4487 [Verbose] > │ │
00:00:49 #4488 [Verbose] > │ │
00:00:49 #4489 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 #4490 [Verbose] >
00:00:49 #4491 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 #4492 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 #4493 [Verbose] > │ ### system kinetic energy versus time 1 │
00:00:49 #4494 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 #4495 [Verbose] >
00:00:49 #4496 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 #4497 [Verbose] > // // test
00:00:49 #4498 [Verbose] >
00:00:49 #4499 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =
00:00:49 #4500 [Verbose] > inl r1 = st1.pos_vec
00:00:49 #4501 [Verbose] > inl r2 = st2.pos_vec
00:00:49 #4502 [Verbose] > inl r21 = r2 ^-^ r1
00:00:49 #4503 [Verbose] > inl r21mag = magnitude r21
00:00:49 #4504 [Verbose] > f r21mag *^ r21 ^/ r21mag
00:00:49 #4505 [Verbose] >
00:00:49 #4506 [Verbose] > inl billiard_force k re =
00:00:49 #4507 [Verbose] > inl f r =
00:00:49 #4508 [Verbose] > if r >= re
00:00:49 #4509 [Verbose] > then 0
00:00:49 #4510 [Verbose] > else -k * (r - re)
00:00:49 #4511 [Verbose] > central_force f
00:00:49 #4512 [Verbose] >
00:00:49 #4513 [Verbose] > type force_vector = vec
00:00:49 #4514 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector
00:00:49 #4515 [Verbose] >
00:00:49 #4516 [Verbose] > union force =
00:00:49 #4517 [Verbose] > | ExternalForce : i32 * one_body_force
00:00:49 #4518 [Verbose] > | InternalForce : i32 * i32 * two_body_force
00:00:49 #4519 [Verbose] >
00:00:49 #4520 [Verbose] > nominal multi_particle_state = list particle_state
00:00:49 #4521 [Verbose] >
00:00:49 #4522 [Verbose] > nominal d_multi_particle_state = list d_particle_state
00:00:49 #4523 [Verbose] >
00:00:49 #4524 [Verbose] > inl force_on n sts force =
00:00:49 #4525 [Verbose] > match force with
00:00:49 #4526 [Verbose] > | ExternalForce (n0, f_one_body) =>
00:00:49 #4527 [Verbose] > if n = n0
00:00:49 #4528 [Verbose] > then f_one_body
00:00:49 #4529 [Verbose] > else fun _ => zero_vec ()
00:00:49 #4530 [Verbose] > | InternalForce (n0, n1, f_two_body) =>
00:00:49 #4531 [Verbose] > if n = n0
00:00:49 #4532 [Verbose] > then f_two_body (sts |> listm'.item n1)
00:00:49 #4533 [Verbose] > elif n = n1
00:00:49 #4534 [Verbose] > then f_two_body (sts |> listm'.item n0)
00:00:49 #4535 [Verbose] > else fun _ => zero_vec ()
00:00:49 #4536 [Verbose] >
00:00:49 #4537 [Verbose] > inl forces_on n (multi_particle_state sts) fs =
00:00:49 #4538 [Verbose] > fs |> listm.map (force_on n sts)
00:00:49 #4539 [Verbose] >
00:00:49 #4540 [Verbose] > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:00:49 #4541 [Verbose] > inl deriv (n, st) =
00:00:49 #4542 [Verbose] > newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:00:49 #4543 [Verbose] > sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:00:49 #4544 [Verbose] >
00:00:49 #4545 [Verbose] > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:00:49 #4546 [Verbose] > (d_multi_particle_state dsts2) =>
00:00:49 #4547 [Verbose] > d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:00:49 #4548 [Verbose] >
00:00:49 #4549 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:00:49 #4550 [Verbose] > d_multi_particle_state (dsts |> listm.map (scale w))
00:00:49 #4551 [Verbose] >
00:00:49 #4552 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:00:49 #4553 [Verbose] > inl (d_multi_particle_state dsts) =
00:00:49 #4554 [Verbose] > real
00:00:49 #4555 [Verbose] > match dsts with
00:00:49 #4556 [Verbose] > | d_multi_particle_state _ => dsts
00:00:49 #4557 [Verbose] > listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:00:49 #4558 [Verbose] >
00:00:49 #4559 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:00:49 #4560 [Verbose] > d_multi_particle_state =
00:00:49 #4561 [Verbose] > fun deriv mpst0 =>
00:00:49 #4562 [Verbose] > inl mpst1 = euler dt deriv mpst0
00:00:49 #4563 [Verbose] > inl (multi_particle_state sts0) = mpst0
00:00:49 #4564 [Verbose] > inl (multi_particle_state sts1) = mpst1
00:00:49 #4565 [Verbose] > sts1
00:00:49 #4566 [Verbose] > |> listm'.zip_ sts0
00:00:49 #4567 [Verbose] > |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:00:49 #4568 [Verbose] > particle_state {
00:00:49 #4569 [Verbose] > st1 with
00:00:49 #4570 [Verbose] > pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:00:49 #4571 [Verbose] > }
00:00:49 #4572 [Verbose] > )
00:00:49 #4573 [Verbose] > |> multi_particle_state
00:00:49 #4574 [Verbose] >
00:00:49 #4575 [Verbose] > inl update_mps (method : numerical_method multi_particle_state
00:00:49 #4576 [Verbose] > d_multi_particle_state) =
00:00:49 #4577 [Verbose] > newton_second_mps >> method
00:00:49 #4578 [Verbose] >
00:00:49 #4579 [Verbose] > inl states_mps (method : numerical_method multi_particle_state
00:00:49 #4580 [Verbose] > d_multi_particle_state) =
00:00:49 #4581 [Verbose] > newton_second_mps >> method >> seq.iterate_
00:00:49 #4582 [Verbose] >
00:00:49 #4583 [Verbose] >
00:00:49 #4584 [Verbose] > inl kinetic_energy (particle_state st) =
00:00:49 #4585 [Verbose] > inl m = st.mass
00:00:49 #4586 [Verbose] > inl v = magnitude st.velocity
00:00:49 #4587 [Verbose] > 0.5 * m * v ** 2
00:00:49 #4588 [Verbose] >
00:00:49 #4589 [Verbose] > inl system_ke (multi_particle_state sts) =
00:00:49 #4590 [Verbose] > sts |> listm.map kinetic_energy |> listm'.sum
00:00:49 #4591 [Verbose] >
00:00:49 #4592 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:00:49 #4593 [Verbose] > inl r1 = st1.pos_vec
00:00:49 #4594 [Verbose] > inl r2 = st2.pos_vec
00:00:49 #4595 [Verbose] > inl r21 = r2 ^-^ r1
00:00:49 #4596 [Verbose] > inl r21mag = magnitude r21
00:00:49 #4597 [Verbose] > k * (r21mag - re) ** 2 / 2
00:00:49 #4598 [Verbose] >
00:00:49 #4599 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =
00:00:49 #4600 [Verbose] > inl g = 9.80665
00:00:49 #4601 [Verbose] > inl m = st.mass
00:00:49 #4602 [Verbose] > inl z = st.pos_vec.z
00:00:49 #4603 [Verbose] > m * g * z
00:00:49 #4604 [Verbose] >
00:00:49 #4605 [Verbose] > inl two_springs_pe (multi_particle_state sts) =
00:00:49 #4606 [Verbose] > inl st0 = sts |> listm'.item 0i32
00:00:49 #4607 [Verbose] > inl st1 = sts |> listm'.item 1i32
00:00:49 #4608 [Verbose] > linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:00:49 #4609 [Verbose] > + linear_spring_pe 100 0.5 st0 st1
00:00:49 #4610 [Verbose] > + earth_surface_gravity_pe st0
00:00:49 #4611 [Verbose] > + earth_surface_gravity_pe st1
00:00:49 #4612 [Verbose] >
00:00:49 #4613 [Verbose] > inl two_springs_me mpst =
00:00:49 #4614 [Verbose] > system_ke mpst + two_springs_pe mpst
00:00:49 #4615 [Verbose] >
00:00:49 #4616 [Verbose] > inl ball_radius () = 0.03
00:00:49 #4617 [Verbose] >
00:00:49 #4618 [Verbose] > inl billiard_forces k =
00:00:49 #4619 [Verbose] > [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:00:49 #4620 [Verbose] >
00:00:49 #4621 [Verbose] > inl billiard_update n_method k dt =
00:00:49 #4622 [Verbose] > update_mps (n_method dt) (billiard_forces k)
00:00:49 #4623 [Verbose] >
00:00:49 #4624 [Verbose] > inl billiard_initial () =
00:00:49 #4625 [Verbose] > inl ball_mass = 0.160
00:00:49 #4626 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:49 #4627 [Verbose] > multi_particle_state [[
00:00:49 #4628 [Verbose] > particle_state {
00:00:49 #4629 [Verbose] > default_particle_state' with
00:00:49 #4630 [Verbose] > mass = ball_mass
00:00:49 #4631 [Verbose] > pos_vec = zero_vec ()
00:00:49 #4632 [Verbose] > velocity = 0.2 *^ i_hat ()
00:00:49 #4633 [Verbose] > }
00:00:49 #4634 [Verbose] > particle_state {
00:00:49 #4635 [Verbose] > default_particle_state' with
00:00:49 #4636 [Verbose] > mass = ball_mass
00:00:49 #4637 [Verbose] > pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:00:49 #4638 [Verbose] > velocity = zero_vec ()
00:00:49 #4639 [Verbose] > }
00:00:49 #4640 [Verbose] > ]]
00:00:49 #4641 [Verbose] >
00:00:49 #4642 [Verbose] > inl billiard_states ~n_method k dt =
00:00:49 #4643 [Verbose] > states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:00:49 #4644 [Verbose] >
00:00:49 #4645 [Verbose] > inl billiard_states_finite n_method k dt =
00:00:49 #4646 [Verbose] > billiard_states n_method k dt
00:00:49 #4647 [Verbose] > >> Some
00:00:49 #4648 [Verbose] > |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:00:49 #4649 [Verbose] > (mpst |> listm'.item 0i32).time <= 10
00:00:49 #4650 [Verbose] > )
00:00:49 #4651 [Verbose] >
00:00:49 #4652 [Verbose] > inl momentum (particle_state st) =
00:00:49 #4653 [Verbose] > inl m = st.mass
00:00:49 #4654 [Verbose] > inl v = st.velocity
00:00:49 #4655 [Verbose] > m *^ v
00:00:49 #4656 [Verbose] >
00:00:49 #4657 [Verbose] > inl system_p (multi_particle_state sts) =
00:00:49 #4658 [Verbose] > sts |> listm.map momentum |> sum_vec
00:00:49 #4659 [Verbose] >
00:00:49 #4660 [Verbose] >
00:00:49 #4661 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =
00:00:49 #4662 [Verbose] > billiard_states_finite euler_cromer_mps 30 0.03
00:00:49 #4663 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:49 #4664 [Verbose] > (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:00:49 #4665 [Verbose] > )
00:00:49 #4666 [Verbose] > |> listm'.unzip
00:00:49 #4667 [Verbose] >
00:00:49 #4668 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =
00:00:49 #4669 [Verbose] > billiard_states_finite runge_kutta_4 30 0.03
00:00:49 #4670 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:49 #4671 [Verbose] > (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:00:49 #4672 [Verbose] > )
00:00:49 #4673 [Verbose] > |> listm'.unzip
00:00:49 #4674 [Verbose] >
00:00:49 #4675 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray
00:00:49 #4676 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray
00:00:49 #4677 [Verbose] >
00:00:49 #4678 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray
00:00:49 #4679 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray
00:00:49 #4680 [Verbose] >
00:00:49 #4681 [Verbose] > "system kinetic energy versus time",
00:00:49 #4682 [Verbose] > "time (s)",
00:00:49 #4683 [Verbose] > "system kinetic energy (j)",
00:00:49 #4684 [Verbose] > ;[[
00:00:49 #4685 [Verbose] > "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:00:49 #4686 [Verbose] > "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:00:49 #4687 [Verbose] > ]]
00:00:52 #4688 [Verbose] >
00:00:52 #4689 [Verbose] > ╭─[ 2.69s - return value ]─────────────────────────────────────────────────────╮
00:00:52 #4690 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:52 #4691 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:52 #4692 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:52 #4693 [Verbose] > │ stroke="none"/> │
00:00:52 #4694 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:52 #4695 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:52 #4696 [Verbose] > │ fill="#FFFFFF"> │
00:00:52 #4697 [Verbose] > │ system kinetic energy versus time │
00:00:52 #4698 [Verbose] > │ </text> │
00:00:52 #4699 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:52 #4700 [Verbose] > │ y2="75"/> │
00:00:52 #4701 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:52 #4702 [Verbose] > │ y2="75"/> │
00:00:52 #4703 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:52 #4704 [Verbose] > │ y2="75"/> │
00:00:52 #4705 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:52 #4706 [Verbose] > │ y2="75"/> │
00:00:52 #4707 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1... │
00:00:52 #4708 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 #4709 [Verbose] >
00:00:52 #4710 [Verbose] > ╭─[ 2.73s - stdout ]───────────────────────────────────────────────────────────╮
00:00:52 #4711 [Verbose] > │ type UH0 = │
00:00:52 #4712 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:52 #4713 [Verbose] > │ * float * UH0 │
00:00:52 #4714 [Verbose] > │ | UH0_1 │
00:00:52 #4715 [Verbose] > │ and UH1 = │
00:00:52 #4716 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:52 #4717 [Verbose] > │ * float * UH1 │
00:00:52 #4718 [Verbose] > │ | UH1_1 │
00:00:52 #4719 [Verbose] > │ and UH2 = │
00:00:52 #4720 [Verbose] > │ | UH2_0 of float * float * float * float * float * float * float * float │
00:00:52 #4721 [Verbose] > │ * float * float * float * float * float * float * float * float * float * │
00:00:52 #4722 [Verbose] > │ float * UH2 │
00:00:52 #4723 [Verbose] > │ | UH2_1 │
00:00:52 #4724 [Verbose] > │ and UH3 = │
00:00:52 #4725 [Verbose] > │ | UH3_0 of int32 * float * float * float * float * float * float * float │
00:00:52 #4726 [Verbose] > │ * float * float * UH3 │
00:00:52 #4727 [Verbose] > │ | UH3_1 │
00:00:52 #4728 [Verbose] > │ and [<Struct>] US0 = │
00:00:52 #4729 [Verbose] > │ | US0_0 │
00:00:52 #4730 [Verbose] > │ | US0_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:52 #4731 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:52 #4732 [Verbose] > │ and UH4 = │
00:00:52 #4733 [Verbose] > │ | UH4_0 of UH0 * UH4 │
00:00:52 #4734 [Verbose] > │ | UH4_1 │
00:00:52 #4735 [Verbose] > │ and UH5 = │
00:00:52 #4736 [Verbose] > │ | UH5_0 of float * float * UH5 │
00:00:52 #4737 [Verbose] > │ | UH5_1 │
00:00:52 #4738 [Verbose] > │ and UH6 = │
00:00:52 #4739 [Verbose] > │ | UH6_0 of float * UH6 │
00:00:52 #4740 [Verbose] > │ | UH6_1 │
00:00:52 #4741 [Verbose] > │ let rec method2 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:52 #4742 [Verbose] > │ match v0 with │
00:00:52 #4743 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:52 #4744 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:52 #4745 [Verbose] > │ method2(v11, v12) │
00:00:52 #4746 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #4747 [Verbose] > │ v1 │
00:00:52 #4748 [Verbose] > │ and method1 (v0 : float, v1 : UH0, v2 : UH1, v3 : UH0) : UH0 = │
00:00:52 #4749 [Verbose] > │ match v2 with │
00:00:52 #4750 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *) │
00:00:52 #4751 [Verbose] > │ match v3 with │
00:00:52 #4752 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* Cons │
00:00:52 #4753 [Verbose] > │ *) │
00:00:52 #4754 [Verbose] > │ let v24 : float = v9 * v0 │
00:00:52 #4755 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:52 #4756 [Verbose] > │ let v26 : float = v0 * v6 │
00:00:52 #4757 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:52 #4758 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:52 #4759 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:52 #4760 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:52 #4761 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:52 #4762 [Verbose] > │ let v32 : float = v0 * v10 │
00:00:52 #4763 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:52 #4764 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:52 #4765 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:52 #4766 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:52 #4767 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:52 #4768 [Verbose] > │ let v38 : UH0 = UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, │
00:00:52 #4769 [Verbose] > │ v37, v1) │
00:00:52 #4770 [Verbose] > │ method1(v0, v38, v13, v23) │
00:00:52 #4771 [Verbose] > │ | _ -> │
00:00:52 #4772 [Verbose] > │ let v40 : UH0 = UH0_1 │
00:00:52 #4773 [Verbose] > │ method2(v1, v40) │
00:00:52 #4774 [Verbose] > │ | _ -> │
00:00:52 #4775 [Verbose] > │ let v43 : UH0 = UH0_1 │
00:00:52 #4776 [Verbose] > │ method2(v1, v43) │
00:00:52 #4777 [Verbose] > │ and method4 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:52 #4778 [Verbose] > │ match v0 with │
00:00:52 #4779 [Verbose] > │ | UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, │
00:00:52 #4780 [Verbose] > │ v16, v17, v18, v19, v20) -> (* Cons *) │
00:00:52 #4781 [Verbose] > │ let v21 : UH2 = UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, │
00:00:52 #4782 [Verbose] > │ v13, v14, v15, v16, v17, v18, v19, v1) │
00:00:52 #4783 [Verbose] > │ method4(v20, v21) │
00:00:52 #4784 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:52 #4785 [Verbose] > │ v1 │
00:00:52 #4786 [Verbose] > │ and method3 (v0 : UH2, v1 : UH0, v2 : UH0) : UH2 = │
00:00:52 #4787 [Verbose] > │ match v1 with │
00:00:52 #4788 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:52 #4789 [Verbose] > │ match v2 with │
00:00:52 #4790 [Verbose] > │ | UH0_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │
00:00:52 #4791 [Verbose] > │ *) │
00:00:52 #4792 [Verbose] > │ let v23 : UH2 = UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v13, │
00:00:52 #4793 [Verbose] > │ v14, v15, v16, v17, v18, v19, v20, v21, v0) │
00:00:52 #4794 [Verbose] > │ method3(v23, v12, v22) │
00:00:52 #4795 [Verbose] > │ | _ -> │
00:00:52 #4796 [Verbose] > │ let v25 : UH2 = UH2_1 │
00:00:52 #4797 [Verbose] > │ method4(v0, v25) │
00:00:52 #4798 [Verbose] > │ | _ -> │
00:00:52 #4799 [Verbose] > │ let v28 : UH2 = UH2_1 │
00:00:52 #4800 [Verbose] > │ method4(v0, v28) │
00:00:52 #4801 [Verbose] > │ and method5 (v0 : float, v1 : UH2, v2 : UH0) : UH0 = │
00:00:52 #4802 [Verbose] > │ match v1 with │
00:00:52 #4803 [Verbose] > │ | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, │
00:00:52 #4804 [Verbose] > │ v17, v18, v19, v20, v21) -> (* Cons *) │
00:00:52 #4805 [Verbose] > │ let v22 : UH0 = method5(v0, v21, v2) │
00:00:52 #4806 [Verbose] > │ let v23 : float = v0 * v18 │
00:00:52 #4807 [Verbose] > │ let v24 : float = v0 * v19 │
00:00:52 #4808 [Verbose] > │ let v25 : float = v0 * v20 │
00:00:52 #4809 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:52 #4810 [Verbose] > │ let v27 : float = v6 + v24 │
00:00:52 #4811 [Verbose] > │ let v28 : float = v7 + v25 │
00:00:52 #4812 [Verbose] > │ UH0_0(v12, v13, v26, v27, v28, v17, v18, v19, v20, v22) │
00:00:52 #4813 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:52 #4814 [Verbose] > │ v2 │
00:00:52 #4815 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:52 #4816 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:52 #4817 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:52 #4818 [Verbose] > │ let v5 : UH0 = method1(v0, v4, v3, v2) │
00:00:52 #4819 [Verbose] > │ let v6 : UH2 = UH2_1 │
00:00:52 #4820 [Verbose] > │ let v7 : UH2 = method3(v6, v2, v5) │
00:00:52 #4821 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:52 #4822 [Verbose] > │ let v9 : UH0 = method5(v0, v7, v8) │
00:00:52 #4823 [Verbose] > │ v9 │
00:00:52 #4824 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:52 #4825 [Verbose] > │ closure2(v0, v1) │
00:00:52 #4826 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:52 #4827 [Verbose] > │ closure1(v0) │
00:00:52 #4828 [Verbose] > │ and method6 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) = │
00:00:52 #4829 [Verbose] > │ match v0 with │
00:00:52 #4830 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:52 #4831 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:52 #4832 [Verbose] > │ let v14 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1) │
00:00:52 #4833 [Verbose] > │ method6(v12, v14, v13) │
00:00:52 #4834 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #4835 [Verbose] > │ struct (v1, v2) │
00:00:52 #4836 [Verbose] > │ and method7 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:52 #4837 [Verbose] > │ match v0 with │
00:00:52 #4838 [Verbose] > │ | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:52 #4839 [Verbose] > │ let v13 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1) │
00:00:52 #4840 [Verbose] > │ method7(v12, v13) │
00:00:52 #4841 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:52 #4842 [Verbose] > │ v1 │
00:00:52 #4843 [Verbose] > │ and closure4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:52 #4844 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:52 #4845 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:52 #4846 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:52 #4847 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:52 #4848 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:52 #4849 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:52 #4850 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:52 #4851 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:52 #4852 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:52 #4853 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:52 #4854 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:52 #4855 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:52 #4856 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:52 #4857 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:52 #4858 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:52 #4859 [Verbose] > │ let v30 : bool = v29 >= 0.06 │
00:00:52 #4860 [Verbose] > │ let v33 : float = │
00:00:52 #4861 [Verbose] > │ if v30 then │
00:00:52 #4862 [Verbose] > │ 0.0 │
00:00:52 #4863 [Verbose] > │ else │
00:00:52 #4864 [Verbose] > │ let v31 : float = v29 - 0.06 │
00:00:52 #4865 [Verbose] > │ let v32 : float = -30.0 * v31 │
00:00:52 #4866 [Verbose] > │ v32 │
00:00:52 #4867 [Verbose] > │ let v34 : float = v33 * v21 │
00:00:52 #4868 [Verbose] > │ let v35 : float = v33 * v22 │
00:00:52 #4869 [Verbose] > │ let v36 : float = v33 * v23 │
00:00:52 #4870 [Verbose] > │ let v37 : float = v34 / v29 │
00:00:52 #4871 [Verbose] > │ let v38 : float = v35 / v29 │
00:00:52 #4872 [Verbose] > │ let v39 : float = v36 / v29 │
00:00:52 #4873 [Verbose] > │ struct (v37, v38, v39) │
00:00:52 #4874 [Verbose] > │ and closure5 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:52 #4875 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:52 #4876 [Verbose] > │ float * float) = │
00:00:52 #4877 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:52 #4878 [Verbose] > │ and method8 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 = │
00:00:52 #4879 [Verbose] > │ match v1 with │
00:00:52 #4880 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *) │
00:00:52 #4881 [Verbose] > │ let v14 : UH1 = method8(v0, v13, v2) │
00:00:52 #4882 [Verbose] > │ let v15 : bool = v3 = 0 │
00:00:52 #4883 [Verbose] > │ let v134 : (struct (float * float * float * float * float * float * │
00:00:52 #4884 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:52 #4885 [Verbose] > │ if v15 then │
00:00:52 #4886 [Verbose] > │ let v42 : US0 = │
00:00:52 #4887 [Verbose] > │ match v0 with │
00:00:52 #4888 [Verbose] > │ | UH0_0(v16, v17, v18, v19, v20, v21, v22, v23, v24, │
00:00:52 #4889 [Verbose] > │ v25) -> (* Cons *) │
00:00:52 #4890 [Verbose] > │ match v25 with │
00:00:52 #4891 [Verbose] > │ | UH0_0(v26, v27, v28, v29, v30, v31, v32, v33, v34, │
00:00:52 #4892 [Verbose] > │ v35) -> (* Cons *) │
00:00:52 #4893 [Verbose] > │ US0_1(v26, v27, v28, v29, v30, v31, v32, v33, │
00:00:52 #4894 [Verbose] > │ v34) │
00:00:52 #4895 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #4896 [Verbose] > │ US0_0 │
00:00:52 #4897 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #4898 [Verbose] > │ US0_0 │
00:00:52 #4899 [Verbose] > │ let struct (v70 : float, v71 : float, v72 : float, v73 : │
00:00:52 #4900 [Verbose] > │ float, v74 : float, v75 : float, v76 : float, v77 : float, v78 : float) = │
00:00:52 #4901 [Verbose] > │ match v42 with │
00:00:52 #4902 [Verbose] > │ | US0_0 -> (* None *) │
00:00:52 #4903 [Verbose] > │ failwith<struct (float * float * float * float * │
00:00:52 #4904 [Verbose] > │ float * float * float * float * float)> "Option does not have a value." │
00:00:52 #4905 [Verbose] > │ | US0_1(v43, v44, v45, v46, v47, v48, v49, v50, v51) -> │
00:00:52 #4906 [Verbose] > │ (* Some *) │
00:00:52 #4907 [Verbose] > │ struct (v43, v44, v45, v46, v47, v48, v49, v50, v51) │
00:00:52 #4908 [Verbose] > │ closure4(v70, v71, v72, v73, v74, v75, v76, v77, v78) │
00:00:52 #4909 [Verbose] > │ else │
00:00:52 #4910 [Verbose] > │ let v80 : bool = v3 = 1 │
00:00:52 #4911 [Verbose] > │ if v80 then │
00:00:52 #4912 [Verbose] > │ let v94 : US0 = │
00:00:52 #4913 [Verbose] > │ match v0 with │
00:00:52 #4914 [Verbose] > │ | UH0_0(v81, v82, v83, v84, v85, v86, v87, v88, v89, │
00:00:52 #4915 [Verbose] > │ v90) -> (* Cons *) │
00:00:52 #4916 [Verbose] > │ US0_1(v81, v82, v83, v84, v85, v86, v87, v88, │
00:00:52 #4917 [Verbose] > │ v89) │
00:00:52 #4918 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #4919 [Verbose] > │ US0_0 │
00:00:52 #4920 [Verbose] > │ let struct (v122 : float, v123 : float, v124 : float, │
00:00:52 #4921 [Verbose] > │ v125 : float, v126 : float, v127 : float, v128 : float, v129 : float, v130 : │
00:00:52 #4922 [Verbose] > │ float) = │
00:00:52 #4923 [Verbose] > │ match v94 with │
00:00:52 #4924 [Verbose] > │ | US0_0 -> (* None *) │
00:00:52 #4925 [Verbose] > │ failwith<struct (float * float * float * float * │
00:00:52 #4926 [Verbose] > │ float * float * float * float * float)> "Option does not have a value." │
00:00:52 #4927 [Verbose] > │ | US0_1(v95, v96, v97, v98, v99, v100, v101, v102, │
00:00:52 #4928 [Verbose] > │ v103) -> (* Some *) │
00:00:52 #4929 [Verbose] > │ struct (v95, v96, v97, v98, v99, v100, v101, │
00:00:52 #4930 [Verbose] > │ v102, v103) │
00:00:52 #4931 [Verbose] > │ closure4(v122, v123, v124, v125, v126, v127, v128, v129, │
00:00:52 #4932 [Verbose] > │ v130) │
00:00:52 #4933 [Verbose] > │ else │
00:00:52 #4934 [Verbose] > │ closure5() │
00:00:52 #4935 [Verbose] > │ let struct (v135 : float, v136 : float, v137 : float) = v134 struct │
00:00:52 #4936 [Verbose] > │ (v4, v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:52 #4937 [Verbose] > │ let v138 : float = v135 / v5 │
00:00:52 #4938 [Verbose] > │ let v139 : float = v136 / v5 │
00:00:52 #4939 [Verbose] > │ let v140 : float = v137 / v5 │
00:00:52 #4940 [Verbose] > │ UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v138, v139, v140, v14) │
00:00:52 #4941 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:52 #4942 [Verbose] > │ v2 │
00:00:52 #4943 [Verbose] > │ and closure3 () (v0 : UH0) : UH1 = │
00:00:52 #4944 [Verbose] > │ let v1 : UH3 = UH3_1 │
00:00:52 #4945 [Verbose] > │ let v2 : int32 = 0 │
00:00:52 #4946 [Verbose] > │ let struct (v3 : UH3, v4 : int32) = method6(v0, v1, v2) │
00:00:52 #4947 [Verbose] > │ let v5 : UH3 = UH3_1 │
00:00:52 #4948 [Verbose] > │ let v6 : UH3 = method7(v3, v5) │
00:00:52 #4949 [Verbose] > │ let v7 : UH1 = UH1_1 │
00:00:52 #4950 [Verbose] > │ let v8 : UH1 = method8(v0, v6, v7) │
00:00:52 #4951 [Verbose] > │ v8 │
00:00:52 #4952 [Verbose] > │ and method10 (v0 : (UH0 -> UH0), v1 : UH0, v2 : int32) : UH0 = │
00:00:52 #4953 [Verbose] > │ let v3 : bool = v2 <= 0 │
00:00:52 #4954 [Verbose] > │ if v3 then │
00:00:52 #4955 [Verbose] > │ v1 │
00:00:52 #4956 [Verbose] > │ else │
00:00:52 #4957 [Verbose] > │ let v4 : UH0 = v0 v1 │
00:00:52 #4958 [Verbose] > │ let v5 : int32 = v2 - 1 │
00:00:52 #4959 [Verbose] > │ method10(v0, v4, v5) │
00:00:52 #4960 [Verbose] > │ and method11 (v0 : UH4, v1 : UH4) : UH4 = │
00:00:52 #4961 [Verbose] > │ match v0 with │
00:00:52 #4962 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:52 #4963 [Verbose] > │ let v4 : UH4 = UH4_0(v2, v1) │
00:00:52 #4964 [Verbose] > │ method11(v3, v4) │
00:00:52 #4965 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:52 #4966 [Verbose] > │ v1 │
00:00:52 #4967 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 = │
00:00:52 #4968 [Verbose] > │ let v3 : float = 0.0 │
00:00:52 #4969 [Verbose] > │ let v4 : float = 0.16 │
00:00:52 #4970 [Verbose] > │ let v5 : float = 0.0 │
00:00:52 #4971 [Verbose] > │ let v6 : float = 0.0 │
00:00:52 #4972 [Verbose] > │ let v7 : float = 0.0 │
00:00:52 #4973 [Verbose] > │ let v8 : float = 0.0 │
00:00:52 #4974 [Verbose] > │ let v9 : float = 0.2 │
00:00:52 #4975 [Verbose] > │ let v10 : float = 0.0 │
00:00:52 #4976 [Verbose] > │ let v11 : float = 0.0 │
00:00:52 #4977 [Verbose] > │ let v12 : float = 1.0 │
00:00:52 #4978 [Verbose] > │ let v13 : float = 0.02 │
00:00:52 #4979 [Verbose] > │ let v14 : float = 0.0 │
00:00:52 #4980 [Verbose] > │ let v15 : float = 0.0 │
00:00:52 #4981 [Verbose] > │ let v16 : float = 0.0 │
00:00:52 #4982 [Verbose] > │ let v17 : float = 0.0 │
00:00:52 #4983 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:52 #4984 [Verbose] > │ let v19 : UH0 = UH0_0(v3, v4, v12, v13, v14, v8, v15, v16, v17, v18) │
00:00:52 #4985 [Verbose] > │ let v20 : UH0 = UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v19) │
00:00:52 #4986 [Verbose] > │ let v21 : UH0 = method10(v0, v20, v2) │
00:00:52 #4987 [Verbose] > │ let v35 : US0 = │
00:00:52 #4988 [Verbose] > │ match v21 with │
00:00:52 #4989 [Verbose] > │ | UH0_0(v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) -> (* Cons │
00:00:52 #4990 [Verbose] > │ *) │
00:00:52 #4991 [Verbose] > │ US0_1(v22, v23, v24, v25, v26, v27, v28, v29, v30) │
00:00:52 #4992 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #4993 [Verbose] > │ US0_0 │
00:00:52 #4994 [Verbose] > │ let struct (v63 : float, v64 : float, v65 : float, v66 : float, v67 : │
00:00:52 #4995 [Verbose] > │ float, v68 : float, v69 : float, v70 : float, v71 : float) = │
00:00:52 #4996 [Verbose] > │ match v35 with │
00:00:52 #4997 [Verbose] > │ | US0_0 -> (* None *) │
00:00:52 #4998 [Verbose] > │ failwith<struct (float * float * float * float * float * float * │
00:00:52 #4999 [Verbose] > │ float * float * float)> "Option does not have a value." │
00:00:52 #5000 [Verbose] > │ | US0_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> (* Some *) │
00:00:52 #5001 [Verbose] > │ struct (v36, v37, v38, v39, v40, v41, v42, v43, v44) │
00:00:52 #5002 [Verbose] > │ let v72 : bool = v68 <= 10.0 │
00:00:52 #5003 [Verbose] > │ if v72 then │
00:00:52 #5004 [Verbose] > │ let v73 : UH4 = UH4_0(v21, v1) │
00:00:52 #5005 [Verbose] > │ let v74 : int32 = v2 + 1 │
00:00:52 #5006 [Verbose] > │ method9(v0, v73, v74) │
00:00:52 #5007 [Verbose] > │ else │
00:00:52 #5008 [Verbose] > │ let v76 : UH4 = UH4_1 │
00:00:52 #5009 [Verbose] > │ method11(v1, v76) │
00:00:52 #5010 [Verbose] > │ and method13 (v0 : UH0, v1 : UH6) : UH6 = │
00:00:52 #5011 [Verbose] > │ match v0 with │
00:00:52 #5012 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:52 #5013 [Verbose] > │ let v12 : UH6 = method13(v11, v1) │
00:00:52 #5014 [Verbose] > │ let v13 : float = v8 * v8 │
00:00:52 #5015 [Verbose] > │ let v14 : float = v9 * v9 │
00:00:52 #5016 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:52 #5017 [Verbose] > │ let v16 : float = v10 * v10 │
00:00:52 #5018 [Verbose] > │ let v17 : float = v15 + v16 │
00:00:52 #5019 [Verbose] > │ let v18 : float = sqrt v17 │
00:00:52 #5020 [Verbose] > │ let v19 : float = 0.5 * v3 │
00:00:52 #5021 [Verbose] > │ let v20 : float = v18 ** 2.0 │
00:00:52 #5022 [Verbose] > │ let v21 : float = v19 * v20 │
00:00:52 #5023 [Verbose] > │ UH6_0(v21, v12) │
00:00:52 #5024 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #5025 [Verbose] > │ v1 │
00:00:52 #5026 [Verbose] > │ and method14 (v0 : UH6, v1 : float) : float = │
00:00:52 #5027 [Verbose] > │ match v0 with │
00:00:52 #5028 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:52 #5029 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:52 #5030 [Verbose] > │ method14(v3, v4) │
00:00:52 #5031 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:52 #5032 [Verbose] > │ v1 │
00:00:52 #5033 [Verbose] > │ and method12 (v0 : UH4, v1 : UH5) : UH5 = │
00:00:52 #5034 [Verbose] > │ match v0 with │
00:00:52 #5035 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:52 #5036 [Verbose] > │ let v4 : UH5 = method12(v3, v1) │
00:00:52 #5037 [Verbose] > │ let v18 : US0 = │
00:00:52 #5038 [Verbose] > │ match v2 with │
00:00:52 #5039 [Verbose] > │ | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons │
00:00:52 #5040 [Verbose] > │ *) │
00:00:52 #5041 [Verbose] > │ US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13) │
00:00:52 #5042 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #5043 [Verbose] > │ US0_0 │
00:00:52 #5044 [Verbose] > │ let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50 │
00:00:52 #5045 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) = │
00:00:52 #5046 [Verbose] > │ match v18 with │
00:00:52 #5047 [Verbose] > │ | US0_0 -> (* None *) │
00:00:52 #5048 [Verbose] > │ failwith<struct (float * float * float * float * float * │
00:00:52 #5049 [Verbose] > │ float * float * float * float)> "Option does not have a value." │
00:00:52 #5050 [Verbose] > │ | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some │
00:00:52 #5051 [Verbose] > │ *) │
00:00:52 #5052 [Verbose] > │ struct (v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:52 #5053 [Verbose] > │ let v55 : UH6 = UH6_1 │
00:00:52 #5054 [Verbose] > │ let v56 : UH6 = method13(v2, v55) │
00:00:52 #5055 [Verbose] > │ let v57 : float = 0.0 │
00:00:52 #5056 [Verbose] > │ let v58 : float = method14(v56, v57) │
00:00:52 #5057 [Verbose] > │ UH5_0(v51, v58, v4) │
00:00:52 #5058 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:52 #5059 [Verbose] > │ v1 │
00:00:52 #5060 [Verbose] > │ and method15 (v0 : UH5, v1 : UH6, v2 : UH6) : struct (UH6 * UH6) = │
00:00:52 #5061 [Verbose] > │ match v0 with │
00:00:52 #5062 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:52 #5063 [Verbose] > │ let v6 : UH6 = UH6_0(v3, v1) │
00:00:52 #5064 [Verbose] > │ let v7 : UH6 = UH6_0(v4, v2) │
00:00:52 #5065 [Verbose] > │ method15(v5, v6, v7) │
00:00:52 #5066 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:52 #5067 [Verbose] > │ struct (v1, v2) │
00:00:52 #5068 [Verbose] > │ and method16 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:52 #5069 [Verbose] > │ match v0 with │
00:00:52 #5070 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:52 #5071 [Verbose] > │ let v4 : UH6 = UH6_0(v2, v1) │
00:00:52 #5072 [Verbose] > │ method16(v3, v4) │
00:00:52 #5073 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:52 #5074 [Verbose] > │ v1 │
00:00:52 #5075 [Verbose] > │ and method18 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:52 #5076 [Verbose] > │ match v0 with │
00:00:52 #5077 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:52 #5078 [Verbose] > │ let v12 : UH1 = UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:52 #5079 [Verbose] > │ method18(v11, v12) │
00:00:52 #5080 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:52 #5081 [Verbose] > │ v1 │
00:00:52 #5082 [Verbose] > │ and method17 (v0 : UH1, v1 : UH1, v2 : UH1) : UH1 = │
00:00:52 #5083 [Verbose] > │ match v1 with │
00:00:52 #5084 [Verbose] > │ | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:52 #5085 [Verbose] > │ match v2 with │
00:00:52 #5086 [Verbose] > │ | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │
00:00:52 #5087 [Verbose] > │ *) │
00:00:52 #5088 [Verbose] > │ let v23 : float = v3 + v13 │
00:00:52 #5089 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:52 #5090 [Verbose] > │ let v25 : float = v8 + v18 │
00:00:52 #5091 [Verbose] > │ let v26 : float = v5 + v15 │
00:00:52 #5092 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:52 #5093 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:52 #5094 [Verbose] > │ let v29 : float = v9 + v19 │
00:00:52 #5095 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:52 #5096 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:52 #5097 [Verbose] > │ let v32 : UH1 = UH1_0(v23, v24, v26, v27, v28, v25, v29, v30, │
00:00:52 #5098 [Verbose] > │ v31, v0) │
00:00:52 #5099 [Verbose] > │ method17(v32, v12, v22) │
00:00:52 #5100 [Verbose] > │ | _ -> │
00:00:52 #5101 [Verbose] > │ let v34 : UH1 = UH1_1 │
00:00:52 #5102 [Verbose] > │ method18(v0, v34) │
00:00:52 #5103 [Verbose] > │ | _ -> │
00:00:52 #5104 [Verbose] > │ let v37 : UH1 = UH1_1 │
00:00:52 #5105 [Verbose] > │ method18(v0, v37) │
00:00:52 #5106 [Verbose] > │ and closure8 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:52 #5107 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:52 #5108 [Verbose] > │ let v4 : float = v0 / 2.0 │
00:00:52 #5109 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:52 #5110 [Verbose] > │ let v6 : UH0 = method1(v4, v5, v3, v2) │
00:00:52 #5111 [Verbose] > │ let v7 : UH1 = v1 v6 │
00:00:52 #5112 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:52 #5113 [Verbose] > │ let v9 : UH0 = method1(v4, v8, v7, v2) │
00:00:52 #5114 [Verbose] > │ let v10 : UH1 = v1 v9 │
00:00:52 #5115 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:52 #5116 [Verbose] > │ let v12 : UH0 = method1(v0, v11, v10, v2) │
00:00:52 #5117 [Verbose] > │ let v13 : UH1 = v1 v12 │
00:00:52 #5118 [Verbose] > │ let v14 : float = v0 / 6.0 │
00:00:52 #5119 [Verbose] > │ let v15 : UH1 = UH1_1 │
00:00:52 #5120 [Verbose] > │ let v16 : UH1 = method17(v15, v3, v7) │
00:00:52 #5121 [Verbose] > │ let v17 : UH1 = UH1_1 │
00:00:52 #5122 [Verbose] > │ let v18 : UH1 = method17(v17, v16, v7) │
00:00:52 #5123 [Verbose] > │ let v19 : UH1 = UH1_1 │
00:00:52 #5124 [Verbose] > │ let v20 : UH1 = method17(v19, v18, v10) │
00:00:52 #5125 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:52 #5126 [Verbose] > │ let v22 : UH1 = method17(v21, v20, v10) │
00:00:52 #5127 [Verbose] > │ let v23 : UH1 = UH1_1 │
00:00:52 #5128 [Verbose] > │ let v24 : UH1 = method17(v23, v22, v13) │
00:00:52 #5129 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:52 #5130 [Verbose] > │ let v26 : UH0 = method1(v14, v25, v24, v2) │
00:00:52 #5131 [Verbose] > │ v26 │
00:00:52 #5132 [Verbose] > │ and closure7 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:52 #5133 [Verbose] > │ closure8(v0, v1) │
00:00:52 #5134 [Verbose] > │ and closure6 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:52 #5135 [Verbose] > │ closure7(v0) │
00:00:52 #5136 [Verbose] > │ and method19 (v0 : UH4, v1 : UH5) : UH5 = │
00:00:52 #5137 [Verbose] > │ match v0 with │
00:00:52 #5138 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:52 #5139 [Verbose] > │ let v4 : UH5 = method19(v3, v1) │
00:00:52 #5140 [Verbose] > │ let v18 : US0 = │
00:00:52 #5141 [Verbose] > │ match v2 with │
00:00:52 #5142 [Verbose] > │ | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons │
00:00:52 #5143 [Verbose] > │ *) │
00:00:52 #5144 [Verbose] > │ US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13) │
00:00:52 #5145 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:52 #5146 [Verbose] > │ US0_0 │
00:00:52 #5147 [Verbose] > │ let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50 │
00:00:52 #5148 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) = │
00:00:52 #5149 [Verbose] > │ match v18 with │
00:00:52 #5150 [Verbose] > │ | US0_0 -> (* None *) │
00:00:52 #5151 [Verbose] > │ failwith<struct (float * float * float * float * float * │
00:00:52 #5152 [Verbose] > │ float * float * float * float)> "Option does not have a value." │
00:00:52 #5153 [Verbose] > │ | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some │
00:00:52 #5154 [Verbose] > │ *) │
00:00:52 #5155 [Verbose] > │ struct (v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:52 #5156 [Verbose] > │ let v55 : UH6 = UH6_1 │
00:00:52 #5157 [Verbose] > │ let v56 : UH6 = method13(v2, v55) │
00:00:52 #5158 [Verbose] > │ let v57 : float = 0.0 │
00:00:52 #5159 [Verbose] > │ let v58 : float = method14(v56, v57) │
00:00:52 #5160 [Verbose] > │ UH5_0(v51, v58, v4) │
00:00:52 #5161 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:52 #5162 [Verbose] > │ v1 │
00:00:52 #5163 [Verbose] > │ and method21 (v0 : UH6, v1 : int32) : int32 = │
00:00:52 #5164 [Verbose] > │ match v0 with │
00:00:52 #5165 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:52 #5166 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:52 #5167 [Verbose] > │ method21(v3, v4) │
00:00:52 #5168 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:52 #5169 [Verbose] > │ v1 │
00:00:52 #5170 [Verbose] > │ and method22 (v0 : (float []), v1 : UH6, v2 : int32) : int32 = │
00:00:52 #5171 [Verbose] > │ match v1 with │
00:00:52 #5172 [Verbose] > │ | UH6_0(v3, v4) -> (* Cons *) │
00:00:52 #5173 [Verbose] > │ v0.[int v2] <- v3 │
00:00:52 #5174 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:52 #5175 [Verbose] > │ method22(v0, v4, v5) │
00:00:52 #5176 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:52 #5177 [Verbose] > │ v2 │
00:00:53 #5178 [Verbose] > │ and method20 (v0 : UH6) : (float []) = │
00:00:53 #5179 [Verbose] > │ let v1 : int32 = 0 │
00:00:53 #5180 [Verbose] > │ let v2 : int32 = method21(v0, v1) │
00:00:53 #5181 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:53 #5182 [Verbose] > │ let v4 : int32 = 0 │
00:00:53 #5183 [Verbose] > │ let v5 : int32 = method22(v3, v0, v4) │
00:00:53 #5184 [Verbose] > │ v3 │
00:00:53 #5185 [Verbose] > │ and method23 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:53 #5186 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:53 #5187 [Verbose] > │ v0 │
00:00:53 #5188 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:53 #5189 [Verbose] > │ []) * (float [])) [])) = │
00:00:53 #5190 [Verbose] > │ let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0() │
00:00:53 #5191 [Verbose] > │ let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03 │
00:00:53 #5192 [Verbose] > │ let v2 : (UH0 -> UH1) = closure3() │
00:00:53 #5193 [Verbose] > │ let v3 : (UH0 -> UH0) = v1 v2 │
00:00:53 #5194 [Verbose] > │ let v4 : UH4 = UH4_1 │
00:00:53 #5195 [Verbose] > │ let v5 : int32 = 0 │
00:00:53 #5196 [Verbose] > │ let v6 : UH4 = method9(v3, v4, v5) │
00:00:53 #5197 [Verbose] > │ let v7 : UH5 = UH5_1 │
00:00:53 #5198 [Verbose] > │ let v8 : UH5 = method12(v6, v7) │
00:00:53 #5199 [Verbose] > │ let v9 : UH6 = UH6_1 │
00:00:53 #5200 [Verbose] > │ let v10 : UH6 = UH6_1 │
00:00:53 #5201 [Verbose] > │ let struct (v11 : UH6, v12 : UH6) = method15(v8, v9, v10) │
00:00:53 #5202 [Verbose] > │ let v13 : UH6 = UH6_1 │
00:00:53 #5203 [Verbose] > │ let v14 : UH6 = method16(v11, v13) │
00:00:53 #5204 [Verbose] > │ let v15 : UH6 = UH6_1 │
00:00:53 #5205 [Verbose] > │ let v16 : UH6 = method16(v12, v15) │
00:00:53 #5206 [Verbose] > │ let v17 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure6() │
00:00:53 #5207 [Verbose] > │ let v18 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v17 0.03 │
00:00:53 #5208 [Verbose] > │ let v19 : (UH0 -> UH0) = v18 v2 │
00:00:53 #5209 [Verbose] > │ let v20 : UH4 = UH4_1 │
00:00:53 #5210 [Verbose] > │ let v21 : int32 = 0 │
00:00:53 #5211 [Verbose] > │ let v22 : UH4 = method9(v19, v20, v21) │
00:00:53 #5212 [Verbose] > │ let v23 : UH5 = UH5_1 │
00:00:53 #5213 [Verbose] > │ let v24 : UH5 = method19(v22, v23) │
00:00:53 #5214 [Verbose] > │ let v25 : UH6 = UH6_1 │
00:00:53 #5215 [Verbose] > │ let v26 : UH6 = UH6_1 │
00:00:53 #5216 [Verbose] > │ let struct (v27 : UH6, v28 : UH6) = method15(v24, v25, v26) │
00:00:53 #5217 [Verbose] > │ let v29 : UH6 = UH6_1 │
00:00:53 #5218 [Verbose] > │ let v30 : UH6 = method16(v27, v29) │
00:00:53 #5219 [Verbose] > │ let v31 : UH6 = UH6_1 │
00:00:53 #5220 [Verbose] > │ let v32 : UH6 = method16(v28, v31) │
00:00:53 #5221 [Verbose] > │ let v33 : (float []) = method20(v14) │
00:00:53 #5222 [Verbose] > │ let v34 : (float []) = method20(v16) │
00:00:53 #5223 [Verbose] > │ let v35 : (float []) = method20(v30) │
00:00:53 #5224 [Verbose] > │ let v36 : (float []) = method20(v32) │
00:00:53 #5225 [Verbose] > │ let v37 : string = "euler-cromer" │
00:00:53 #5226 [Verbose] > │ let v38 : string = "runge-kutta 4" │
00:00:53 #5227 [Verbose] > │ let v39 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:53 #5228 [Verbose] > │ (v37, v33, v34); struct (v38, v35, v36)|] │
00:00:53 #5229 [Verbose] > │ let v40 : (struct (string * (float []) * (float [])) []) = method23(v39) │
00:00:53 #5230 [Verbose] > │ let v41 : string = "system kinetic energy versus time" │
00:00:53 #5231 [Verbose] > │ let v42 : string = "time (s)" │
00:00:53 #5232 [Verbose] > │ let v43 : string = "system kinetic energy (j)" │
00:00:53 #5233 [Verbose] > │ struct (v41, v42, v43, v40) │
00:00:53 #5234 [Verbose] > │ method0() │
00:00:53 #5235 [Verbose] > │ │
00:00:53 #5236 [Verbose] > │ │
00:00:53 #5237 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 #5238 [Verbose] >
00:00:53 #5239 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 #5240 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 #5241 [Verbose] > │ ### wave 1 │
00:00:53 #5242 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 #5243 [Verbose] >
00:00:53 #5244 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 #5245 [Verbose] > // // test
00:00:53 #5246 [Verbose] >
00:00:53 #5247 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:00:53 #5248 [Verbose] > inl r1 = st1.pos_vec
00:00:53 #5249 [Verbose] > inl r2 = st2.pos_vec
00:00:53 #5250 [Verbose] > inl r21 = r2 ^-^ r1
00:00:53 #5251 [Verbose] > inl r21mag = magnitude r21
00:00:53 #5252 [Verbose] > -k * (r21mag - re) *^ r21 ^/ r21mag
00:00:53 #5253 [Verbose] >
00:00:53 #5254 [Verbose] > inl fixed_linear_spring k re r1 =
00:00:53 #5255 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:53 #5256 [Verbose] > linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:00:53 #5257 [Verbose] > r1 })
00:00:53 #5258 [Verbose] >
00:00:53 #5259 [Verbose] > inl forces_string () =
00:00:53 #5260 [Verbose] > [[
00:00:53 #5261 [Verbose] > ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:00:53 #5262 [Verbose] > ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:00:53 #5263 [Verbose] > ]] /@ (
00:00:53 #5264 [Verbose] > listm'.init_series 0 59 1
00:00:53 #5265 [Verbose] > |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:00:53 #5266 [Verbose] > )
00:00:53 #5267 [Verbose] >
00:00:53 #5268 [Verbose] > inl string_update dt =
00:00:53 #5269 [Verbose] > update_mps (runge_kutta_4 dt) (forces_string ())
00:00:53 #5270 [Verbose] >
00:00:53 #5271 [Verbose] > inl string_initial_overtone n =
00:00:53 #5272 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:53 #5273 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:53 #5274 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:53 #5275 [Verbose] > |> listm.map (fun x =>
00:00:53 #5276 [Verbose] > inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:00:53 #5277 [Verbose] > particle_state {
00:00:53 #5278 [Verbose] > default_particle_state' with
00:00:53 #5279 [Verbose] > mass = ball_mass
00:00:53 #5280 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:53 #5281 [Verbose] > velocity = zero_vec ()
00:00:53 #5282 [Verbose] > }
00:00:53 #5283 [Verbose] > )
00:00:53 #5284 [Verbose] > |> multi_particle_state
00:00:53 #5285 [Verbose] >
00:00:53 #5286 [Verbose] > inl string_initial_pluck () =
00:00:53 #5287 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:53 #5288 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:53 #5289 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:53 #5290 [Verbose] > |> listm.map (fun x =>
00:00:53 #5291 [Verbose] > inl y =
00:00:53 #5292 [Verbose] > inl n = if x <= 0.51 then 0 else 0.65
00:00:53 #5293 [Verbose] > 0.005 / (0.51 - n) * (x - n)
00:00:53 #5294 [Verbose] > particle_state {
00:00:53 #5295 [Verbose] > default_particle_state' with
00:00:53 #5296 [Verbose] > mass = ball_mass
00:00:53 #5297 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:53 #5298 [Verbose] > velocity = zero_vec ()
00:00:53 #5299 [Verbose] > }
00:00:53 #5300 [Verbose] > )
00:00:53 #5301 [Verbose] > |> multi_particle_state
00:00:53 #5302 [Verbose] >
00:00:53 #5303 [Verbose] > let main () =
00:00:53 #5304 [Verbose] > inl ~frames = listm'.init_series 0 9 1f64
00:00:53 #5305 [Verbose] > inl initial_state = string_initial_overtone 3i32
00:00:53 #5306 [Verbose] > inl frames =
00:00:53 #5307 [Verbose] > frames
00:00:53 #5308 [Verbose] > |> listm.map (fun n =>
00:00:53 #5309 [Verbose] > inl (multi_particle_state sts) =
00:00:53 #5310 [Verbose] > seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:00:53 #5311 [Verbose] > f 0f64
00:00:53 #5312 [Verbose] > inl rs =
00:00:53 #5313 [Verbose] > [[ zero_vec () ]]
00:00:53 #5314 [Verbose] > /@ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:00:53 #5315 [Verbose] > /@ [[ 0.65 *^ i_hat () ]]
00:00:53 #5316 [Verbose] > inl x, y =
00:00:53 #5317 [Verbose] > rs
00:00:53 #5318 [Verbose] > |> listm.map (fun r => r.x, r.y)
00:00:53 #5319 [Verbose] > |> listm'.unzip
00:00:53 #5320 [Verbose] > inl x : a i32 _ = x |> listm.toArray
00:00:53 #5321 [Verbose] > inl y : a i32 _ = y |> listm.toArray
00:00:53 #5322 [Verbose] > x, y
00:00:53 #5323 [Verbose] > )
00:00:53 #5324 [Verbose] > |> listm.toArray : a i32 _
00:00:53 #5325 [Verbose] >
00:00:53 #5326 [Verbose] > inl n = 0i32
00:00:53 #5327 [Verbose] >
00:00:53 #5328 [Verbose] > inl x, y = index frames n
00:00:53 #5329 [Verbose] >
00:00:53 #5330 [Verbose] > "wave",
00:00:53 #5331 [Verbose] > "position (m)",
00:00:53 #5332 [Verbose] > "displacement (m)",
00:00:53 #5333 [Verbose] > ;[[
00:00:53 #5334 [Verbose] > ($"$\"{!n}\"" : string), x, y
00:00:53 #5335 [Verbose] > ]]
00:00:54 #5336 [Verbose] >
00:00:54 #5337 [Verbose] > ╭─[ 1.04s - return value ]─────────────────────────────────────────────────────╮
00:00:54 #5338 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:54 #5339 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:54 #5340 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:54 #5341 [Verbose] > │ stroke="none"/> │
00:00:54 #5342 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:54 #5343 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:54 #5344 [Verbose] > │ fill="#FFFFFF"> │
00:00:54 #5345 [Verbose] > │ wave │
00:00:54 #5346 [Verbose] > │ </text> │
00:00:54 #5347 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:54 #5348 [Verbose] > │ y2="75"/> │
00:00:54 #5349 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:54 #5350 [Verbose] > │ y2="75"/> │
00:00:54 #5351 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:54 #5352 [Verbose] > │ y2="75"/> │
00:00:54 #5353 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:00:54 #5354 [Verbose] > │ y2="75"/> │
00:00:54 #5355 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:00:54 #5356 [Verbose] > │ y2... │
00:00:54 #5357 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 #5358 [Verbose] >
00:00:54 #5359 [Verbose] > ╭─[ 1.06s - stdout ]───────────────────────────────────────────────────────────╮
00:00:54 #5360 [Verbose] > │ type UH0 = │
00:00:54 #5361 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:54 #5362 [Verbose] > │ | UH0_1 │
00:00:54 #5363 [Verbose] > │ and UH1 = │
00:00:54 #5364 [Verbose] > │ | UH1_0 of (float []) * (float []) * UH1 │
00:00:54 #5365 [Verbose] > │ | UH1_1 │
00:00:54 #5366 [Verbose] > │ let rec method3 (v0 : UH0, v1 : int32) : int32 = │
00:00:54 #5367 [Verbose] > │ match v0 with │
00:00:54 #5368 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:54 #5369 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:54 #5370 [Verbose] > │ method3(v3, v4) │
00:00:54 #5371 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:54 #5372 [Verbose] > │ v1 │
00:00:54 #5373 [Verbose] > │ and method4 (v0 : (float []), v1 : UH0, v2 : int32) : int32 = │
00:00:54 #5374 [Verbose] > │ match v1 with │
00:00:54 #5375 [Verbose] > │ | UH0_0(v3, v4) -> (* Cons *) │
00:00:54 #5376 [Verbose] > │ v0.[int v2] <- v3 │
00:00:54 #5377 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:54 #5378 [Verbose] > │ method4(v0, v4, v5) │
00:00:54 #5379 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:54 #5380 [Verbose] > │ v2 │
00:00:54 #5381 [Verbose] > │ and method2 (v0 : UH0) : (float []) = │
00:00:54 #5382 [Verbose] > │ let v1 : int32 = 0 │
00:00:54 #5383 [Verbose] > │ let v2 : int32 = method3(v0, v1) │
00:00:54 #5384 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:54 #5385 [Verbose] > │ let v4 : int32 = 0 │
00:00:54 #5386 [Verbose] > │ let v5 : int32 = method4(v3, v0, v4) │
00:00:54 #5387 [Verbose] > │ v3 │
00:00:54 #5388 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:54 #5389 [Verbose] > │ match v0 with │
00:00:54 #5390 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:54 #5391 [Verbose] > │ let v4 : UH1 = method1(v3, v1) │
00:00:54 #5392 [Verbose] > │ let v5 : float = 0.0 │
00:00:54 #5393 [Verbose] > │ let v6 : float = 0.01 │
00:00:54 #5394 [Verbose] > │ let v7 : float = 0.02 │
00:00:54 #5395 [Verbose] > │ let v8 : float = 0.03 │
00:00:54 #5396 [Verbose] > │ let v9 : float = 0.04 │
00:00:54 #5397 [Verbose] > │ let v10 : float = 0.05 │
00:00:54 #5398 [Verbose] > │ let v11 : float = 0.060000000000000005 │
00:00:54 #5399 [Verbose] > │ let v12 : float = 0.06999999999999999 │
00:00:54 #5400 [Verbose] > │ let v13 : float = 0.08 │
00:00:54 #5401 [Verbose] > │ let v14 : float = 0.09 │
00:00:54 #5402 [Verbose] > │ let v15 : float = 0.09999999999999999 │
00:00:54 #5403 [Verbose] > │ let v16 : float = 0.11 │
00:00:54 #5404 [Verbose] > │ let v17 : float = 0.12 │
00:00:54 #5405 [Verbose] > │ let v18 : float = 0.13 │
00:00:54 #5406 [Verbose] > │ let v19 : float = 0.14 │
00:00:54 #5407 [Verbose] > │ let v20 : float = 0.15000000000000002 │
00:00:54 #5408 [Verbose] > │ let v21 : float = 0.16 │
00:00:54 #5409 [Verbose] > │ let v22 : float = 0.17 │
00:00:54 #5410 [Verbose] > │ let v23 : float = 0.18000000000000002 │
00:00:54 #5411 [Verbose] > │ let v24 : float = 0.19 │
00:00:54 #5412 [Verbose] > │ let v25 : float = 0.2 │
00:00:54 #5413 [Verbose] > │ let v26 : float = 0.21000000000000002 │
00:00:54 #5414 [Verbose] > │ let v27 : float = 0.22 │
00:00:54 #5415 [Verbose] > │ let v28 : float = 0.23 │
00:00:54 #5416 [Verbose] > │ let v29 : float = 0.24000000000000002 │
00:00:54 #5417 [Verbose] > │ let v30 : float = 0.25 │
00:00:54 #5418 [Verbose] > │ let v31 : float = 0.26 │
00:00:54 #5419 [Verbose] > │ let v32 : float = 0.27 │
00:00:54 #5420 [Verbose] > │ let v33 : float = 0.28 │
00:00:54 #5421 [Verbose] > │ let v34 : float = 0.29000000000000004 │
00:00:54 #5422 [Verbose] > │ let v35 : float = 0.3 │
00:00:54 #5423 [Verbose] > │ let v36 : float = 0.31 │
00:00:54 #5424 [Verbose] > │ let v37 : float = 0.32 │
00:00:54 #5425 [Verbose] > │ let v38 : float = 0.33 │
00:00:54 #5426 [Verbose] > │ let v39 : float = 0.34 │
00:00:54 #5427 [Verbose] > │ let v40 : float = 0.35000000000000003 │
00:00:54 #5428 [Verbose] > │ let v41 : float = 0.36000000000000004 │
00:00:54 #5429 [Verbose] > │ let v42 : float = 0.37 │
00:00:54 #5430 [Verbose] > │ let v43 : float = 0.38 │
00:00:54 #5431 [Verbose] > │ let v44 : float = 0.39 │
00:00:54 #5432 [Verbose] > │ let v45 : float = 0.4 │
00:00:54 #5433 [Verbose] > │ let v46 : float = 0.41000000000000003 │
00:00:54 #5434 [Verbose] > │ let v47 : float = 0.42000000000000004 │
00:00:54 #5435 [Verbose] > │ let v48 : float = 0.43 │
00:00:54 #5436 [Verbose] > │ let v49 : float = 0.44 │
00:00:54 #5437 [Verbose] > │ let v50 : float = 0.45 │
00:00:54 #5438 [Verbose] > │ let v51 : float = 0.46 │
00:00:54 #5439 [Verbose] > │ let v52 : float = 0.47000000000000003 │
00:00:54 #5440 [Verbose] > │ let v53 : float = 0.48000000000000004 │
00:00:54 #5441 [Verbose] > │ let v54 : float = 0.49 │
00:00:54 #5442 [Verbose] > │ let v55 : float = 0.5 │
00:00:54 #5443 [Verbose] > │ let v56 : float = 0.51 │
00:00:54 #5444 [Verbose] > │ let v57 : float = 0.52 │
00:00:54 #5445 [Verbose] > │ let v58 : float = 0.53 │
00:00:54 #5446 [Verbose] > │ let v59 : float = 0.54 │
00:00:54 #5447 [Verbose] > │ let v60 : float = 0.55 │
00:00:54 #5448 [Verbose] > │ let v61 : float = 0.56 │
00:00:54 #5449 [Verbose] > │ let v62 : float = 0.5700000000000001 │
00:00:54 #5450 [Verbose] > │ let v63 : float = 0.5800000000000001 │
00:00:54 #5451 [Verbose] > │ let v64 : float = 0.59 │
00:00:54 #5452 [Verbose] > │ let v65 : float = 0.6 │
00:00:54 #5453 [Verbose] > │ let v66 : float = 0.61 │
00:00:54 #5454 [Verbose] > │ let v67 : float = 0.62 │
00:00:54 #5455 [Verbose] > │ let v68 : float = 0.63 │
00:00:54 #5456 [Verbose] > │ let v69 : float = 0.64 │
00:00:54 #5457 [Verbose] > │ let v70 : float = 0.65 │
00:00:54 #5458 [Verbose] > │ let v71 : UH0 = UH0_1 │
00:00:54 #5459 [Verbose] > │ let v72 : UH0 = UH0_0(v70, v71) │
00:00:54 #5460 [Verbose] > │ let v73 : UH0 = UH0_0(v69, v72) │
00:00:54 #5461 [Verbose] > │ let v74 : UH0 = UH0_0(v68, v73) │
00:00:54 #5462 [Verbose] > │ let v75 : UH0 = UH0_0(v67, v74) │
00:00:54 #5463 [Verbose] > │ let v76 : UH0 = UH0_0(v66, v75) │
00:00:54 #5464 [Verbose] > │ let v77 : UH0 = UH0_0(v65, v76) │
00:00:54 #5465 [Verbose] > │ let v78 : UH0 = UH0_0(v64, v77) │
00:00:54 #5466 [Verbose] > │ let v79 : UH0 = UH0_0(v63, v78) │
00:00:54 #5467 [Verbose] > │ let v80 : UH0 = UH0_0(v62, v79) │
00:00:54 #5468 [Verbose] > │ let v81 : UH0 = UH0_0(v61, v80) │
00:00:54 #5469 [Verbose] > │ let v82 : UH0 = UH0_0(v60, v81) │
00:00:54 #5470 [Verbose] > │ let v83 : UH0 = UH0_0(v59, v82) │
00:00:54 #5471 [Verbose] > │ let v84 : UH0 = UH0_0(v58, v83) │
00:00:54 #5472 [Verbose] > │ let v85 : UH0 = UH0_0(v57, v84) │
00:00:54 #5473 [Verbose] > │ let v86 : UH0 = UH0_0(v56, v85) │
00:00:54 #5474 [Verbose] > │ let v87 : UH0 = UH0_0(v55, v86) │
00:00:54 #5475 [Verbose] > │ let v88 : UH0 = UH0_0(v54, v87) │
00:00:54 #5476 [Verbose] > │ let v89 : UH0 = UH0_0(v53, v88) │
00:00:54 #5477 [Verbose] > │ let v90 : UH0 = UH0_0(v52, v89) │
00:00:54 #5478 [Verbose] > │ let v91 : UH0 = UH0_0(v51, v90) │
00:00:54 #5479 [Verbose] > │ let v92 : UH0 = UH0_0(v50, v91) │
00:00:54 #5480 [Verbose] > │ let v93 : UH0 = UH0_0(v49, v92) │
00:00:54 #5481 [Verbose] > │ let v94 : UH0 = UH0_0(v48, v93) │
00:00:54 #5482 [Verbose] > │ let v95 : UH0 = UH0_0(v47, v94) │
00:00:54 #5483 [Verbose] > │ let v96 : UH0 = UH0_0(v46, v95) │
00:00:54 #5484 [Verbose] > │ let v97 : UH0 = UH0_0(v45, v96) │
00:00:54 #5485 [Verbose] > │ let v98 : UH0 = UH0_0(v44, v97) │
00:00:54 #5486 [Verbose] > │ let v99 : UH0 = UH0_0(v43, v98) │
00:00:54 #5487 [Verbose] > │ let v100 : UH0 = UH0_0(v42, v99) │
00:00:54 #5488 [Verbose] > │ let v101 : UH0 = UH0_0(v41, v100) │
00:00:54 #5489 [Verbose] > │ let v102 : UH0 = UH0_0(v40, v101) │
00:00:54 #5490 [Verbose] > │ let v103 : UH0 = UH0_0(v39, v102) │
00:00:54 #5491 [Verbose] > │ let v104 : UH0 = UH0_0(v38, v103) │
00:00:54 #5492 [Verbose] > │ let v105 : UH0 = UH0_0(v37, v104) │
00:00:54 #5493 [Verbose] > │ let v106 : UH0 = UH0_0(v36, v105) │
00:00:54 #5494 [Verbose] > │ let v107 : UH0 = UH0_0(v35, v106) │
00:00:54 #5495 [Verbose] > │ let v108 : UH0 = UH0_0(v34, v107) │
00:00:54 #5496 [Verbose] > │ let v109 : UH0 = UH0_0(v33, v108) │
00:00:54 #5497 [Verbose] > │ let v110 : UH0 = UH0_0(v32, v109) │
00:00:54 #5498 [Verbose] > │ let v111 : UH0 = UH0_0(v31, v110) │
00:00:54 #5499 [Verbose] > │ let v112 : UH0 = UH0_0(v30, v111) │
00:00:54 #5500 [Verbose] > │ let v113 : UH0 = UH0_0(v29, v112) │
00:00:54 #5501 [Verbose] > │ let v114 : UH0 = UH0_0(v28, v113) │
00:00:54 #5502 [Verbose] > │ let v115 : UH0 = UH0_0(v27, v114) │
00:00:54 #5503 [Verbose] > │ let v116 : UH0 = UH0_0(v26, v115) │
00:00:54 #5504 [Verbose] > │ let v117 : UH0 = UH0_0(v25, v116) │
00:00:54 #5505 [Verbose] > │ let v118 : UH0 = UH0_0(v24, v117) │
00:00:54 #5506 [Verbose] > │ let v119 : UH0 = UH0_0(v23, v118) │
00:00:54 #5507 [Verbose] > │ let v120 : UH0 = UH0_0(v22, v119) │
00:00:54 #5508 [Verbose] > │ let v121 : UH0 = UH0_0(v21, v120) │
00:00:54 #5509 [Verbose] > │ let v122 : UH0 = UH0_0(v20, v121) │
00:00:54 #5510 [Verbose] > │ let v123 : UH0 = UH0_0(v19, v122) │
00:00:54 #5511 [Verbose] > │ let v124 : UH0 = UH0_0(v18, v123) │
00:00:54 #5512 [Verbose] > │ let v125 : UH0 = UH0_0(v17, v124) │
00:00:54 #5513 [Verbose] > │ let v126 : UH0 = UH0_0(v16, v125) │
00:00:54 #5514 [Verbose] > │ let v127 : UH0 = UH0_0(v15, v126) │
00:00:54 #5515 [Verbose] > │ let v128 : UH0 = UH0_0(v14, v127) │
00:00:54 #5516 [Verbose] > │ let v129 : UH0 = UH0_0(v13, v128) │
00:00:54 #5517 [Verbose] > │ let v130 : UH0 = UH0_0(v12, v129) │
00:00:54 #5518 [Verbose] > │ let v131 : UH0 = UH0_0(v11, v130) │
00:00:54 #5519 [Verbose] > │ let v132 : UH0 = UH0_0(v10, v131) │
00:00:54 #5520 [Verbose] > │ let v133 : UH0 = UH0_0(v9, v132) │
00:00:54 #5521 [Verbose] > │ let v134 : UH0 = UH0_0(v8, v133) │
00:00:54 #5522 [Verbose] > │ let v135 : UH0 = UH0_0(v7, v134) │
00:00:54 #5523 [Verbose] > │ let v136 : UH0 = UH0_0(v6, v135) │
00:00:54 #5524 [Verbose] > │ let v137 : UH0 = UH0_0(v5, v136) │
00:00:54 #5525 [Verbose] > │ let v138 : (float []) = method2(v137) │
00:00:54 #5526 [Verbose] > │ let v139 : float = 0.0 │
00:00:54 #5527 [Verbose] > │ let v140 : float = 0.0007224452478461068 │
00:00:54 #5528 [Verbose] > │ let v141 : float = 0.0014297283919934465 │
00:00:54 #5529 [Verbose] > │ let v142 : float = 0.0021070055388626454 │
00:00:54 #5530 [Verbose] > │ let v143 : float = 0.00274006253677335 │
00:00:54 #5531 [Verbose] > │ let v144 : float = 0.0033156132912039757 │
00:00:54 #5532 [Verbose] > │ let v145 : float = 0.0038215786027292415 │
00:00:54 #5533 [Verbose] > │ let v146 : float = 0.004247339675607605 │
00:00:54 #5534 [Verbose] > │ let v147 : float = 0.004583960976582912 │
00:00:54 #5535 [Verbose] > │ let v148 : float = 0.004824377766717757 │
00:00:54 #5536 [Verbose] > │ let v149 : float = 0.00496354437049027 │
00:00:54 #5537 [Verbose] > │ let v150 : float = 0.004998540070400965 │
00:00:54 #5538 [Verbose] > │ let v151 : float = 0.004928630404658255 │
00:00:54 #5539 [Verbose] > │ let v152 : float = 0.004755282581475768 │
00:00:54 #5540 [Verbose] > │ let v153 : float = 0.004482134686478519 │
00:00:54 #5541 [Verbose] > │ let v154 : float = 0.0041149193294682815 │
00:00:54 #5542 [Verbose] > │ let v155 : float = 0.0036613433329888666 │
00:00:54 #5543 [Verbose] > │ let v156 : float = 0.0031309259876915697 │
00:00:54 #5544 [Verbose] > │ let v157 : float = 0.002534799269067951 │
00:00:54 #5545 [Verbose] > │ let v158 : float = 0.0018854742084416015 │
00:00:54 #5546 [Verbose] > │ let v159 : float = 0.0011965783214377905 │
00:00:54 #5547 [Verbose] > │ let v160 : float = 0.00048256960457257535 │
00:00:54 #5548 [Verbose] > │ let v161 : float = -0.00024156689762753317 │
00:00:54 #5549 [Verbose] > │ let v162 : float = -0.0009606335867685418 │
00:00:54 #5550 [Verbose] > │ let v163 : float = -0.001659539265642642 │
00:00:54 #5551 [Verbose] > │ let v164 : float = -0.002323615860218842 │
00:00:54 #5552 [Verbose] > │ let v165 : float = -0.0029389262614623636 │
00:00:54 #5553 [Verbose] > │ let v166 : float = -0.003492556826244686 │
00:00:54 #5554 [Verbose] > │ let v167 : float = -0.003972888398568771 │
00:00:54 #5555 [Verbose] > │ let v168 : float = -0.00436984016313259 │
00:00:54 #5556 [Verbose] > │ let v169 : float = -0.004675081213427074 │
00:00:54 #5557 [Verbose] > │ let v170 : float = -0.004882205394146359 │
00:00:54 #5558 [Verbose] > │ let v171 : float = -0.004986865748457456 │
00:00:54 #5559 [Verbose] > │ let v172 : float = -0.004986865748457456 │
00:00:54 #5560 [Verbose] > │ let v173 : float = -0.004882205394146361 │
00:00:54 #5561 [Verbose] > │ let v174 : float = -0.004675081213427074 │
00:00:54 #5562 [Verbose] > │ let v175 : float = -0.004369840163132589 │
00:00:54 #5563 [Verbose] > │ let v176 : float = -0.003972888398568774 │
00:00:54 #5564 [Verbose] > │ let v177 : float = -0.0034925568262446837 │
00:00:54 #5565 [Verbose] > │ let v178 : float = -0.002938926261462367 │
00:00:54 #5566 [Verbose] > │ let v179 : float = -0.002323615860218846 │
00:00:54 #5567 [Verbose] > │ let v180 : float = -0.0016595392656426435 │
00:00:54 #5568 [Verbose] > │ let v181 : float = -0.0009606335867685414 │
00:00:54 #5569 [Verbose] > │ let v182 : float = -0.00024156689762753724 │
00:00:54 #5570 [Verbose] > │ let v183 : float = 0.0004825696045725713 │
00:00:54 #5571 [Verbose] > │ let v184 : float = 0.0011965783214377866 │
00:00:54 #5572 [Verbose] > │ let v185 : float = 0.0018854742084416021 │
00:00:54 #5573 [Verbose] > │ let v186 : float = 0.002534799269067953 │
00:00:54 #5574 [Verbose] > │ let v187 : float = 0.003130925987691568 │
00:00:54 #5575 [Verbose] > │ let v188 : float = 0.0036613433329888622 │
00:00:54 #5576 [Verbose] > │ let v189 : float = 0.0041149193294682815 │
00:00:54 #5577 [Verbose] > │ let v190 : float = 0.0044821346864785195 │
00:00:54 #5578 [Verbose] > │ let v191 : float = 0.004755282581475766 │
00:00:54 #5579 [Verbose] > │ let v192 : float = 0.004928630404658255 │
00:00:54 #5580 [Verbose] > │ let v193 : float = 0.004998540070400965 │
00:00:54 #5581 [Verbose] > │ let v194 : float = 0.004963544370490271 │
00:00:54 #5582 [Verbose] > │ let v195 : float = 0.004824377766717758 │
00:00:54 #5583 [Verbose] > │ let v196 : float = 0.004583960976582912 │
00:00:54 #5584 [Verbose] > │ let v197 : float = 0.004247339675607605 │
00:00:54 #5585 [Verbose] > │ let v198 : float = 0.003821578602729245 │
00:00:54 #5586 [Verbose] > │ let v199 : float = 0.0033156132912039783 │
00:00:54 #5587 [Verbose] > │ let v200 : float = 0.0027400625367733585 │
00:00:54 #5588 [Verbose] > │ let v201 : float = 0.0021070055388626528 │
00:00:54 #5589 [Verbose] > │ let v202 : float = 0.001429728391993452 │
00:00:54 #5590 [Verbose] > │ let v203 : float = 0.0007224452478461016 │
00:00:54 #5591 [Verbose] > │ let v204 : float = 0.0 │
00:00:54 #5592 [Verbose] > │ let v205 : UH0 = UH0_1 │
00:00:54 #5593 [Verbose] > │ let v206 : UH0 = UH0_0(v204, v205) │
00:00:54 #5594 [Verbose] > │ let v207 : UH0 = UH0_0(v203, v206) │
00:00:54 #5595 [Verbose] > │ let v208 : UH0 = UH0_0(v202, v207) │
00:00:54 #5596 [Verbose] > │ let v209 : UH0 = UH0_0(v201, v208) │
00:00:54 #5597 [Verbose] > │ let v210 : UH0 = UH0_0(v200, v209) │
00:00:54 #5598 [Verbose] > │ let v211 : UH0 = UH0_0(v199, v210) │
00:00:54 #5599 [Verbose] > │ let v212 : UH0 = UH0_0(v198, v211) │
00:00:54 #5600 [Verbose] > │ let v213 : UH0 = UH0_0(v197, v212) │
00:00:54 #5601 [Verbose] > │ let v214 : UH0 = UH0_0(v196, v213) │
00:00:54 #5602 [Verbose] > │ let v215 : UH0 = UH0_0(v195, v214) │
00:00:54 #5603 [Verbose] > │ let v216 : UH0 = UH0_0(v194, v215) │
00:00:54 #5604 [Verbose] > │ let v217 : UH0 = UH0_0(v193, v216) │
00:00:54 #5605 [Verbose] > │ let v218 : UH0 = UH0_0(v192, v217) │
00:00:54 #5606 [Verbose] > │ let v219 : UH0 = UH0_0(v191, v218) │
00:00:54 #5607 [Verbose] > │ let v220 : UH0 = UH0_0(v190, v219) │
00:00:54 #5608 [Verbose] > │ let v221 : UH0 = UH0_0(v189, v220) │
00:00:54 #5609 [Verbose] > │ let v222 : UH0 = UH0_0(v188, v221) │
00:00:54 #5610 [Verbose] > │ let v223 : UH0 = UH0_0(v187, v222) │
00:00:54 #5611 [Verbose] > │ let v224 : UH0 = UH0_0(v186, v223) │
00:00:54 #5612 [Verbose] > │ let v225 : UH0 = UH0_0(v185, v224) │
00:00:54 #5613 [Verbose] > │ let v226 : UH0 = UH0_0(v184, v225) │
00:00:54 #5614 [Verbose] > │ let v227 : UH0 = UH0_0(v183, v226) │
00:00:54 #5615 [Verbose] > │ let v228 : UH0 = UH0_0(v182, v227) │
00:00:54 #5616 [Verbose] > │ let v229 : UH0 = UH0_0(v181, v228) │
00:00:54 #5617 [Verbose] > │ let v230 : UH0 = UH0_0(v180, v229) │
00:00:54 #5618 [Verbose] > │ let v231 : UH0 = UH0_0(v179, v230) │
00:00:54 #5619 [Verbose] > │ let v232 : UH0 = UH0_0(v178, v231) │
00:00:54 #5620 [Verbose] > │ let v233 : UH0 = UH0_0(v177, v232) │
00:00:54 #5621 [Verbose] > │ let v234 : UH0 = UH0_0(v176, v233) │
00:00:54 #5622 [Verbose] > │ let v235 : UH0 = UH0_0(v175, v234) │
00:00:54 #5623 [Verbose] > │ let v236 : UH0 = UH0_0(v174, v235) │
00:00:54 #5624 [Verbose] > │ let v237 : UH0 = UH0_0(v173, v236) │
00:00:54 #5625 [Verbose] > │ let v238 : UH0 = UH0_0(v172, v237) │
00:00:54 #5626 [Verbose] > │ let v239 : UH0 = UH0_0(v171, v238) │
00:00:54 #5627 [Verbose] > │ let v240 : UH0 = UH0_0(v170, v239) │
00:00:54 #5628 [Verbose] > │ let v241 : UH0 = UH0_0(v169, v240) │
00:00:54 #5629 [Verbose] > │ let v242 : UH0 = UH0_0(v168, v241) │
00:00:54 #5630 [Verbose] > │ let v243 : UH0 = UH0_0(v167, v242) │
00:00:54 #5631 [Verbose] > │ let v244 : UH0 = UH0_0(v166, v243) │
00:00:54 #5632 [Verbose] > │ let v245 : UH0 = UH0_0(v165, v244) │
00:00:54 #5633 [Verbose] > │ let v246 : UH0 = UH0_0(v164, v245) │
00:00:54 #5634 [Verbose] > │ let v247 : UH0 = UH0_0(v163, v246) │
00:00:54 #5635 [Verbose] > │ let v248 : UH0 = UH0_0(v162, v247) │
00:00:54 #5636 [Verbose] > │ let v249 : UH0 = UH0_0(v161, v248) │
00:00:54 #5637 [Verbose] > │ let v250 : UH0 = UH0_0(v160, v249) │
00:00:54 #5638 [Verbose] > │ let v251 : UH0 = UH0_0(v159, v250) │
00:00:54 #5639 [Verbose] > │ let v252 : UH0 = UH0_0(v158, v251) │
00:00:54 #5640 [Verbose] > │ let v253 : UH0 = UH0_0(v157, v252) │
00:00:54 #5641 [Verbose] > │ let v254 : UH0 = UH0_0(v156, v253) │
00:00:54 #5642 [Verbose] > │ let v255 : UH0 = UH0_0(v155, v254) │
00:00:54 #5643 [Verbose] > │ let v256 : UH0 = UH0_0(v154, v255) │
00:00:54 #5644 [Verbose] > │ let v257 : UH0 = UH0_0(v153, v256) │
00:00:54 #5645 [Verbose] > │ let v258 : UH0 = UH0_0(v152, v257) │
00:00:54 #5646 [Verbose] > │ let v259 : UH0 = UH0_0(v151, v258) │
00:00:54 #5647 [Verbose] > │ let v260 : UH0 = UH0_0(v150, v259) │
00:00:54 #5648 [Verbose] > │ let v261 : UH0 = UH0_0(v149, v260) │
00:00:54 #5649 [Verbose] > │ let v262 : UH0 = UH0_0(v148, v261) │
00:00:54 #5650 [Verbose] > │ let v263 : UH0 = UH0_0(v147, v262) │
00:00:54 #5651 [Verbose] > │ let v264 : UH0 = UH0_0(v146, v263) │
00:00:54 #5652 [Verbose] > │ let v265 : UH0 = UH0_0(v145, v264) │
00:00:54 #5653 [Verbose] > │ let v266 : UH0 = UH0_0(v144, v265) │
00:00:54 #5654 [Verbose] > │ let v267 : UH0 = UH0_0(v143, v266) │
00:00:54 #5655 [Verbose] > │ let v268 : UH0 = UH0_0(v142, v267) │
00:00:54 #5656 [Verbose] > │ let v269 : UH0 = UH0_0(v141, v268) │
00:00:54 #5657 [Verbose] > │ let v270 : UH0 = UH0_0(v140, v269) │
00:00:54 #5658 [Verbose] > │ let v271 : UH0 = UH0_0(v139, v270) │
00:00:54 #5659 [Verbose] > │ let v272 : (float []) = method2(v271) │
00:00:54 #5660 [Verbose] > │ UH1_0(v138, v272, v4) │
00:00:54 #5661 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:54 #5662 [Verbose] > │ v1 │
00:00:54 #5663 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 = │
00:00:54 #5664 [Verbose] > │ match v0 with │
00:00:54 #5665 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:54 #5666 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:54 #5667 [Verbose] > │ method6(v4, v5) │
00:00:54 #5668 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:54 #5669 [Verbose] > │ v1 │
00:00:54 #5670 [Verbose] > │ and method7 (v0 : (struct ((float []) * (float [])) []), v1 : UH1, v2 : │
00:00:54 #5671 [Verbose] > │ int32) : int32 = │
00:00:54 #5672 [Verbose] > │ match v1 with │
00:00:54 #5673 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:54 #5674 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:54 #5675 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:54 #5676 [Verbose] > │ method7(v0, v5, v6) │
00:00:54 #5677 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:54 #5678 [Verbose] > │ v2 │
00:00:54 #5679 [Verbose] > │ and method5 (v0 : UH1) : (struct ((float []) * (float [])) []) = │
00:00:54 #5680 [Verbose] > │ let v1 : int32 = 0 │
00:00:54 #5681 [Verbose] > │ let v2 : int32 = method6(v0, v1) │
00:00:54 #5682 [Verbose] > │ let v3 : (struct ((float []) * (float [])) []) = Array.zeroCreate<struct │
00:00:54 #5683 [Verbose] > │ ((float []) * (float []))> (v2) │
00:00:54 #5684 [Verbose] > │ let v4 : int32 = 0 │
00:00:54 #5685 [Verbose] > │ let v5 : int32 = method7(v3, v0, v4) │
00:00:54 #5686 [Verbose] > │ v3 │
00:00:54 #5687 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:54 #5688 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:54 #5689 [Verbose] > │ v0 │
00:00:54 #5690 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:54 #5691 [Verbose] > │ []) * (float [])) [])) = │
00:00:54 #5692 [Verbose] > │ let v0 : float = 0.0 │
00:00:54 #5693 [Verbose] > │ let v1 : float = 1.0 │
00:00:54 #5694 [Verbose] > │ let v2 : float = 2.0 │
00:00:54 #5695 [Verbose] > │ let v3 : float = 3.0 │
00:00:54 #5696 [Verbose] > │ let v4 : float = 4.0 │
00:00:54 #5697 [Verbose] > │ let v5 : float = 5.0 │
00:00:54 #5698 [Verbose] > │ let v6 : float = 6.0 │
00:00:54 #5699 [Verbose] > │ let v7 : float = 7.0 │
00:00:54 #5700 [Verbose] > │ let v8 : float = 8.0 │
00:00:54 #5701 [Verbose] > │ let v9 : float = 9.0 │
00:00:54 #5702 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:54 #5703 [Verbose] > │ let v11 : UH0 = UH0_0(v9, v10) │
00:00:54 #5704 [Verbose] > │ let v12 : UH0 = UH0_0(v8, v11) │
00:00:54 #5705 [Verbose] > │ let v13 : UH0 = UH0_0(v7, v12) │
00:00:54 #5706 [Verbose] > │ let v14 : UH0 = UH0_0(v6, v13) │
00:00:54 #5707 [Verbose] > │ let v15 : UH0 = UH0_0(v5, v14) │
00:00:54 #5708 [Verbose] > │ let v16 : UH0 = UH0_0(v4, v15) │
00:00:54 #5709 [Verbose] > │ let v17 : UH0 = UH0_0(v3, v16) │
00:00:54 #5710 [Verbose] > │ let v18 : UH0 = UH0_0(v2, v17) │
00:00:54 #5711 [Verbose] > │ let v19 : UH0 = UH0_0(v1, v18) │
00:00:54 #5712 [Verbose] > │ let v20 : UH0 = UH0_0(v0, v19) │
00:00:54 #5713 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:54 #5714 [Verbose] > │ let v22 : UH1 = method1(v20, v21) │
00:00:54 #5715 [Verbose] > │ let v23 : (struct ((float []) * (float [])) []) = method5(v22) │
00:00:54 #5716 [Verbose] > │ let struct (v24 : (float []), v25 : (float [])) = v23.[int 0] │
00:00:54 #5717 [Verbose] > │ let v26 : string = $"{0}" │
00:00:54 #5718 [Verbose] > │ let v27 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:54 #5719 [Verbose] > │ (v26, v24, v25)|] │
00:00:54 #5720 [Verbose] > │ let v28 : (struct (string * (float []) * (float [])) []) = method8(v27) │
00:00:54 #5721 [Verbose] > │ let v29 : string = "wave" │
00:00:54 #5722 [Verbose] > │ let v30 : string = "position (m)" │
00:00:54 #5723 [Verbose] > │ let v31 : string = "displacement (m)" │
00:00:54 #5724 [Verbose] > │ struct (v29, v30, v31, v28) │
00:00:54 #5725 [Verbose] > │ method0() │
00:00:54 #5726 [Verbose] > │ │
00:00:54 #5727 [Verbose] > │ │
00:00:54 #5728 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 #5729 [Verbose] >
00:00:54 #5730 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 #5731 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 #5732 [Verbose] > │ ### system kinetic energy versus time 2 │
00:00:54 #5733 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 #5734 [Verbose] >
00:00:54 #5735 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 #5736 [Verbose] > // // test
00:00:54 #5737 [Verbose] >
00:00:54 #5738 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =
00:00:54 #5739 [Verbose] > inl r1 = st1.pos_vec
00:00:54 #5740 [Verbose] > inl r2 = st2.pos_vec
00:00:54 #5741 [Verbose] > inl r21 = r2 ^-^ r1
00:00:54 #5742 [Verbose] > inl r21mag = magnitude r21
00:00:54 #5743 [Verbose] > f r21mag *^ r21 ^/ r21mag
00:00:54 #5744 [Verbose] >
00:00:54 #5745 [Verbose] > inl billiard_force k re =
00:00:54 #5746 [Verbose] > inl f r =
00:00:54 #5747 [Verbose] > if r >= re
00:00:54 #5748 [Verbose] > then 0
00:00:54 #5749 [Verbose] > else -k * (r - re)
00:00:54 #5750 [Verbose] > central_force f
00:00:54 #5751 [Verbose] >
00:00:54 #5752 [Verbose] > type force_vector = vec
00:00:54 #5753 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector
00:00:54 #5754 [Verbose] >
00:00:54 #5755 [Verbose] > union force t =
00:00:54 #5756 [Verbose] > | ExternalForce : t * one_body_force
00:00:54 #5757 [Verbose] > | InternalForce : t * t * two_body_force
00:00:54 #5758 [Verbose] >
00:00:54 #5759 [Verbose] > nominal multi_particle_state = stream.stream particle_state
00:00:54 #5760 [Verbose] >
00:00:54 #5761 [Verbose] > nominal d_multi_particle_state = stream.stream d_particle_state
00:00:54 #5762 [Verbose] >
00:00:54 #5763 [Verbose] > inl force_on n s force =
00:00:54 #5764 [Verbose] > match force with
00:00:54 #5765 [Verbose] > | ExternalForce (n0, f_one_body) =>
00:00:54 #5766 [Verbose] > if n = n0
00:00:54 #5767 [Verbose] > then f_one_body
00:00:54 #5768 [Verbose] > else fun _ => zero_vec ()
00:00:54 #5769 [Verbose] > | InternalForce (n0, n1, f_two_body) =>
00:00:54 #5770 [Verbose] > if n = n0
00:00:54 #5771 [Verbose] > then s |> stream.try_item n1 |> optionm.map f_two_body
00:00:54 #5772 [Verbose] > elif n = n1
00:00:54 #5773 [Verbose] > then s |> stream.try_item n0 |> optionm.map f_two_body
00:00:54 #5774 [Verbose] > else None
00:00:54 #5775 [Verbose] > |> optionm'.default_value (fun _ => zero_vec ())
00:00:54 #5776 [Verbose] >
00:00:54 #5777 [Verbose] > inl forces_on n (multi_particle_state sts) fs =
00:00:54 #5778 [Verbose] > fs
00:00:54 #5779 [Verbose] > |> listm.map (force_on n sts)
00:00:54 #5780 [Verbose] >
00:00:54 #5781 [Verbose] > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:00:54 #5782 [Verbose] > inl deriv (n, st) =
00:00:54 #5783 [Verbose] > newton_second_ps (forces_on n mpst fs) st
00:00:54 #5784 [Verbose] > sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:00:54 #5785 [Verbose] >
00:00:54 #5786 [Verbose] > instance (+++) d_multi_particle_state =
00:00:54 #5787 [Verbose] > fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:00:54 #5788 [Verbose] > (dsts1, dsts2)
00:00:54 #5789 [Verbose] > ||> stream.zip_with (+++)
00:00:54 #5790 [Verbose] > |> d_multi_particle_state
00:00:54 #5791 [Verbose] >
00:00:54 #5792 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:00:54 #5793 [Verbose] > dsts
00:00:54 #5794 [Verbose] > |> stream.map (scale w)
00:00:54 #5795 [Verbose] > |> d_multi_particle_state
00:00:54 #5796 [Verbose] >
00:00:54 #5797 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:00:54 #5798 [Verbose] > inl (d_multi_particle_state dsts) =
00:00:54 #5799 [Verbose] > real
00:00:54 #5800 [Verbose] > match dsts with
00:00:54 #5801 [Verbose] > | d_multi_particle_state _ => dsts
00:00:54 #5802 [Verbose] > (dsts, sts)
00:00:54 #5803 [Verbose] > ||> stream.zip_with (shift dt)
00:00:54 #5804 [Verbose] > |> stream.memoize
00:00:54 #5805 [Verbose] > |> fun x => x ()
00:00:54 #5806 [Verbose] > |> multi_particle_state
00:00:54 #5807 [Verbose] >
00:00:54 #5808 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:00:54 #5809 [Verbose] > d_multi_particle_state =
00:00:54 #5810 [Verbose] > fun deriv ((multi_particle_state sts0) as mpst0) =>
00:00:54 #5811 [Verbose] > inl (multi_particle_state sts1) = euler dt deriv mpst0
00:00:54 #5812 [Verbose] > (sts0, sts1)
00:00:54 #5813 [Verbose] > ||> stream.zip
00:00:54 #5814 [Verbose] > |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:00:54 #5815 [Verbose] > particle_state {
00:00:54 #5816 [Verbose] > st1 with
00:00:54 #5817 [Verbose] > pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:00:54 #5818 [Verbose] > }
00:00:54 #5819 [Verbose] > )
00:00:54 #5820 [Verbose] > |> multi_particle_state
00:00:54 #5821 [Verbose] >
00:00:54 #5822 [Verbose] > inl update_mps (method : numerical_method multi_particle_state
00:00:54 #5823 [Verbose] > d_multi_particle_state) =
00:00:54 #5824 [Verbose] > newton_second_mps >> method
00:00:54 #5825 [Verbose] >
00:00:54 #5826 [Verbose] > inl states_mps (method : numerical_method multi_particle_state
00:00:54 #5827 [Verbose] > d_multi_particle_state) =
00:00:54 #5828 [Verbose] > newton_second_mps
00:00:54 #5829 [Verbose] > >> method
00:00:54 #5830 [Verbose] > >> (fun x (multi_particle_state y) =>
00:00:54 #5831 [Verbose] > y
00:00:54 #5832 [Verbose] > |> stream.memoize
00:00:54 #5833 [Verbose] > |> (fun x => x ())
00:00:54 #5834 [Verbose] > |> multi_particle_state |> x
00:00:54 #5835 [Verbose] > )
00:00:54 #5836 [Verbose] > // >> stream.iterate
00:00:54 #5837 [Verbose] > >> seq.iterate'
00:00:54 #5838 [Verbose] >
00:00:54 #5839 [Verbose] > inl kinetic_energy (particle_state st) =
00:00:54 #5840 [Verbose] > inl m = st.mass
00:00:54 #5841 [Verbose] > inl v = magnitude st.velocity
00:00:54 #5842 [Verbose] > 0.5 * m * v ** 2
00:00:54 #5843 [Verbose] >
00:00:54 #5844 [Verbose] > inl system_ke (multi_particle_state sts) =
00:00:54 #5845 [Verbose] > sts
00:00:54 #5846 [Verbose] > |> stream.map kinetic_energy
00:00:54 #5847 [Verbose] > |> stream.sum
00:00:54 #5848 [Verbose] >
00:00:54 #5849 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:00:54 #5850 [Verbose] > inl r1 = st1.pos_vec
00:00:54 #5851 [Verbose] > inl r2 = st2.pos_vec
00:00:54 #5852 [Verbose] > inl r21 = r2 ^-^ r1
00:00:54 #5853 [Verbose] > inl r21mag = magnitude r21
00:00:54 #5854 [Verbose] > k * (r21mag - re) ** 2 / 2
00:00:54 #5855 [Verbose] >
00:00:54 #5856 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =
00:00:54 #5857 [Verbose] > inl g = 9.80665
00:00:54 #5858 [Verbose] > inl m = st.mass
00:00:54 #5859 [Verbose] > inl z = st.pos_vec.z
00:00:54 #5860 [Verbose] > m * g * z
00:00:54 #5861 [Verbose] >
00:00:54 #5862 [Verbose] > inl ball_radius () = 0.03
00:00:54 #5863 [Verbose] >
00:00:54 #5864 [Verbose] > inl billiard_forces k =
00:00:54 #5865 [Verbose] > [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:00:54 #5866 [Verbose] >
00:00:54 #5867 [Verbose] > inl billiard_initial () =
00:00:54 #5868 [Verbose] > inl ball_mass = 0.160
00:00:54 #5869 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:54 #5870 [Verbose] > [[
00:00:54 #5871 [Verbose] > particle_state {
00:00:54 #5872 [Verbose] > default_particle_state' with
00:00:54 #5873 [Verbose] > mass = ball_mass
00:00:54 #5874 [Verbose] > pos_vec = zero_vec ()
00:00:54 #5875 [Verbose] > velocity = 0.2 *^ i_hat ()
00:00:54 #5876 [Verbose] > }
00:00:54 #5877 [Verbose] > particle_state {
00:00:54 #5878 [Verbose] > default_particle_state' with
00:00:54 #5879 [Verbose] > mass = ball_mass
00:00:54 #5880 [Verbose] > pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:00:54 #5881 [Verbose] > velocity = zero_vec ()
00:00:54 #5882 [Verbose] > }
00:00:54 #5883 [Verbose] > ]]
00:00:54 #5884 [Verbose] > |> stream.from_list
00:00:54 #5885 [Verbose] > |> multi_particle_state
00:00:54 #5886 [Verbose] >
00:00:54 #5887 [Verbose] > inl billiard_states ~n_method k dt =
00:00:54 #5888 [Verbose] > states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:00:54 #5889 [Verbose] >
00:00:54 #5890 [Verbose] > inl billiard_states_finite n_method k dt =
00:00:54 #5891 [Verbose] > billiard_states n_method k dt
00:00:54 #5892 [Verbose] > >> Some
00:00:54 #5893 [Verbose] > |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:00:54 #5894 [Verbose] > match mpst |> stream.try_item 0i32 with
00:00:54 #5895 [Verbose] > | Some st =>
00:00:54 #5896 [Verbose] > st.time <= 10
00:00:54 #5897 [Verbose] > | None => false
00:00:54 #5898 [Verbose] > )
00:00:54 #5899 [Verbose] >
00:00:54 #5900 [Verbose] > inl momentum (particle_state st) =
00:00:54 #5901 [Verbose] > inl m = st.mass
00:00:54 #5902 [Verbose] > inl v = st.velocity
00:00:54 #5903 [Verbose] > m *^ v
00:00:54 #5904 [Verbose] >
00:00:54 #5905 [Verbose] > inl system_p (multi_particle_state sts) =
00:00:54 #5906 [Verbose] > sts
00:00:54 #5907 [Verbose] > |> stream.map momentum
00:00:54 #5908 [Verbose] > |> stream.fold (^+^) (zero_vec ())
00:00:54 #5909 [Verbose] >
00:00:54 #5910 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =
00:00:54 #5911 [Verbose] > billiard_states_finite euler_cromer_mps 30 0.03
00:00:54 #5912 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:54 #5913 [Verbose] > mpst |> stream.try_item 0i32
00:00:54 #5914 [Verbose] > |> optionm.map (fun st =>
00:00:54 #5915 [Verbose] > st.time, system_ke (multi_particle_state mpst)
00:00:54 #5916 [Verbose] > )
00:00:54 #5917 [Verbose] > )
00:00:54 #5918 [Verbose] > // |> stream.to_list
00:00:54 #5919 [Verbose] > |> listm'.choose id
00:00:54 #5920 [Verbose] > |> listm'.unzip
00:00:54 #5921 [Verbose] >
00:00:54 #5922 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =
00:00:54 #5923 [Verbose] > billiard_states_finite runge_kutta_4 30 0.03
00:00:54 #5924 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:54 #5925 [Verbose] > mpst |> stream.try_item 0i32
00:00:54 #5926 [Verbose] > |> optionm.map (fun st =>
00:00:54 #5927 [Verbose] > st.time, system_ke (multi_particle_state mpst)
00:00:54 #5928 [Verbose] > )
00:00:54 #5929 [Verbose] > )
00:00:54 #5930 [Verbose] > // |> stream.to_list
00:00:54 #5931 [Verbose] > |> listm'.choose id
00:00:54 #5932 [Verbose] > |> listm'.unzip
00:00:54 #5933 [Verbose] >
00:00:54 #5934 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray
00:00:54 #5935 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray
00:00:54 #5936 [Verbose] >
00:00:54 #5937 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray
00:00:54 #5938 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray
00:00:54 #5939 [Verbose] >
00:00:54 #5940 [Verbose] > "system kinetic energy versus time",
00:00:54 #5941 [Verbose] > "time (s)",
00:00:54 #5942 [Verbose] > "system kinetic energy (j)",
00:00:54 #5943 [Verbose] > ;[[
00:00:54 #5944 [Verbose] > "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:00:54 #5945 [Verbose] > "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:00:54 #5946 [Verbose] > ]]
00:00:57 #5947 [Verbose] >
00:00:57 #5948 [Verbose] > ╭─[ 3.20s - return value ]─────────────────────────────────────────────────────╮
00:00:57 #5949 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:57 #5950 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:57 #5951 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:57 #5952 [Verbose] > │ stroke="none"/> │
00:00:57 #5953 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:57 #5954 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:57 #5955 [Verbose] > │ fill="#FFFFFF"> │
00:00:57 #5956 [Verbose] > │ system kinetic energy versus time │
00:00:57 #5957 [Verbose] > │ </text> │
00:00:57 #5958 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:57 #5959 [Verbose] > │ y2="75"/> │
00:00:57 #5960 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:57 #5961 [Verbose] > │ y2="75"/> │
00:00:57 #5962 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:57 #5963 [Verbose] > │ y2="75"/> │
00:00:57 #5964 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:57 #5965 [Verbose] > │ y2="75"/> │
00:00:57 #5966 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1... │
00:00:57 #5967 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 #5968 [Verbose] >
00:00:57 #5969 [Verbose] > ╭─[ 3.22s - stdout ]───────────────────────────────────────────────────────────╮
00:00:57 #5970 [Verbose] > │ type UH0 = │
00:00:57 #5971 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:57 #5972 [Verbose] > │ * float * (unit -> UH0) │
00:00:57 #5973 [Verbose] > │ | UH0_1 │
00:00:57 #5974 [Verbose] > │ and UH1 = │
00:00:57 #5975 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:57 #5976 [Verbose] > │ * float * (unit -> UH1) │
00:00:57 #5977 [Verbose] > │ | UH1_1 │
00:00:57 #5978 [Verbose] > │ and [<Struct>] US0 = │
00:00:57 #5979 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:57 #5980 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:57 #5981 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:57 #5982 [Verbose] > │ and UH2 = │
00:00:57 #5983 [Verbose] > │ | UH2_0 of float * float * float * float * float * float * float * float │
00:00:57 #5984 [Verbose] > │ * float * float * float * float * float * float * float * float * float * │
00:00:57 #5985 [Verbose] > │ float * (unit -> UH2) │
00:00:57 #5986 [Verbose] > │ | UH2_1 │
00:00:57 #5987 [Verbose] > │ and UH3 = │
00:00:57 #5988 [Verbose] > │ | UH3_0 of int32 * float * float * float * float * float * float * float │
00:00:57 #5989 [Verbose] > │ * float * float * (unit -> UH3) │
00:00:57 #5990 [Verbose] > │ | UH3_1 │
00:00:57 #5991 [Verbose] > │ and [<Struct>] US1 = │
00:00:57 #5992 [Verbose] > │ | US1_0 │
00:00:57 #5993 [Verbose] > │ | US1_1 of f1_0 : (struct (float * float * float * float * float * float │
00:00:57 #5994 [Verbose] > │ * float * float * float) -> struct (float * float * float)) │
00:00:57 #5995 [Verbose] > │ and [<Struct>] US2 = │
00:00:57 #5996 [Verbose] > │ | US2_0 │
00:00:57 #5997 [Verbose] > │ | US2_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:57 #5998 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:57 #5999 [Verbose] > │ and UH4 = │
00:00:57 #6000 [Verbose] > │ | UH4_0 of UH0 * UH4 │
00:00:57 #6001 [Verbose] > │ | UH4_1 │
00:00:57 #6002 [Verbose] > │ and UH5 = │
00:00:57 #6003 [Verbose] > │ | UH5_0 of int32 * UH5 │
00:00:57 #6004 [Verbose] > │ | UH5_1 │
00:00:57 #6005 [Verbose] > │ and [<Struct>] US3 = │
00:00:57 #6006 [Verbose] > │ | US3_0 │
00:00:57 #6007 [Verbose] > │ | US3_1 of f1_0 : float * f1_1 : float │
00:00:57 #6008 [Verbose] > │ and UH6 = │
00:00:57 #6009 [Verbose] > │ | UH6_0 of US3 * UH6 │
00:00:57 #6010 [Verbose] > │ | UH6_1 │
00:00:57 #6011 [Verbose] > │ and UH7 = │
00:00:57 #6012 [Verbose] > │ | UH7_0 of float * (unit -> UH7) │
00:00:57 #6013 [Verbose] > │ | UH7_1 │
00:00:57 #6014 [Verbose] > │ and UH8 = │
00:00:57 #6015 [Verbose] > │ | UH8_0 of float * float * UH8 │
00:00:57 #6016 [Verbose] > │ | UH8_1 │
00:00:57 #6017 [Verbose] > │ and UH9 = │
00:00:57 #6018 [Verbose] > │ | UH9_0 of float * UH9 │
00:00:57 #6019 [Verbose] > │ | UH9_1 │
00:00:57 #6020 [Verbose] > │ let rec closure3 (v0 : float, v1 : (unit -> UH0), v2 : (unit -> UH1)) () : │
00:00:57 #6021 [Verbose] > │ UH0 = │
00:00:57 #6022 [Verbose] > │ let v3 : UH1 = v2 () │
00:00:57 #6023 [Verbose] > │ let v4 : UH0 = v1 () │
00:00:57 #6024 [Verbose] > │ match v3 with │
00:00:57 #6025 [Verbose] > │ | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* StreamCons *) │
00:00:57 #6026 [Verbose] > │ match v4 with │
00:00:57 #6027 [Verbose] > │ | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (* │
00:00:57 #6028 [Verbose] > │ StreamCons *) │
00:00:57 #6029 [Verbose] > │ let v25 : float = v10 * v0 │
00:00:57 #6030 [Verbose] > │ let v26 : float = v20 + v25 │
00:00:57 #6031 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:57 #6032 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:57 #6033 [Verbose] > │ let v29 : float = v0 * v9 │
00:00:57 #6034 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:57 #6035 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:57 #6036 [Verbose] > │ let v32 : float = v19 + v29 │
00:00:57 #6037 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:57 #6038 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:57 #6039 [Verbose] > │ let v35 : float = v0 * v13 │
00:00:57 #6040 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:57 #6041 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:57 #6042 [Verbose] > │ let v38 : float = v23 + v35 │
00:00:57 #6043 [Verbose] > │ let v39 : (unit -> UH0) = closure3(v0, v24, v14) │
00:00:57 #6044 [Verbose] > │ UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39) │
00:00:57 #6045 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6046 [Verbose] > │ UH0_1 │
00:00:57 #6047 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6048 [Verbose] > │ UH0_1 │
00:00:57 #6049 [Verbose] > │ and closure4 (v0 : UH0) () : UH0 = │
00:00:57 #6050 [Verbose] > │ v0 │
00:00:57 #6051 [Verbose] > │ and closure5 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:57 #6052 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:57 #6053 [Verbose] > │ match v2 with │
00:00:57 #6054 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:57 #6055 [Verbose] > │ v3 │
00:00:57 #6056 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:57 #6057 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:57 #6058 [Verbose] > │ let v20 : UH0 = │
00:00:57 #6059 [Verbose] > │ match v5 with │
00:00:57 #6060 [Verbose] > │ | UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (* │
00:00:57 #6061 [Verbose] > │ StreamCons *) │
00:00:57 #6062 [Verbose] > │ let v17 : (unit -> UH0) = method1(v0, v16) │
00:00:57 #6063 [Verbose] > │ UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17) │
00:00:57 #6064 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6065 [Verbose] > │ UH0_1 │
00:00:57 #6066 [Verbose] > │ let v21 : US0 = US0_0(v20) │
00:00:57 #6067 [Verbose] > │ v1.l0 <- v21 │
00:00:57 #6068 [Verbose] > │ v20 │
00:00:57 #6069 [Verbose] > │ and method1 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:57 #6070 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:57 #6071 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:57 #6072 [Verbose] > │ closure5(v0, v3) │
00:00:57 #6073 [Verbose] > │ and closure6 (v0 : (unit -> UH0), v1 : (unit -> UH0)) () : UH2 = │
00:00:57 #6074 [Verbose] > │ let v2 : UH0 = v1 () │
00:00:57 #6075 [Verbose] > │ let v3 : UH0 = v0 () │
00:00:57 #6076 [Verbose] > │ match v2 with │
00:00:57 #6077 [Verbose] > │ | UH0_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:57 #6078 [Verbose] > │ match v3 with │
00:00:57 #6079 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:57 #6080 [Verbose] > │ StreamCons *) │
00:00:57 #6081 [Verbose] > │ let v24 : (unit -> UH2) = closure6(v23, v13) │
00:00:57 #6082 [Verbose] > │ UH2_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v14, v15, v16, v17, │
00:00:57 #6083 [Verbose] > │ v18, v19, v20, v21, v22, v24) │
00:00:57 #6084 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6085 [Verbose] > │ UH2_1 │
00:00:57 #6086 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6087 [Verbose] > │ UH2_1 │
00:00:57 #6088 [Verbose] > │ and closure7 (v0 : UH0) () : UH0 = │
00:00:57 #6089 [Verbose] > │ v0 │
00:00:57 #6090 [Verbose] > │ and method2 (v0 : float, v1 : UH2, v2 : UH0) : UH0 = │
00:00:57 #6091 [Verbose] > │ match v1 with │
00:00:57 #6092 [Verbose] > │ | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, │
00:00:57 #6093 [Verbose] > │ v17, v18, v19, v20, v21) -> (* StreamCons *) │
00:00:57 #6094 [Verbose] > │ let v22 : UH2 = v21 () │
00:00:57 #6095 [Verbose] > │ let v23 : UH0 = method2(v0, v22, v2) │
00:00:57 #6096 [Verbose] > │ let v24 : float = v0 * v18 │
00:00:57 #6097 [Verbose] > │ let v25 : float = v0 * v19 │
00:00:57 #6098 [Verbose] > │ let v26 : float = v0 * v20 │
00:00:57 #6099 [Verbose] > │ let v27 : float = v5 + v24 │
00:00:57 #6100 [Verbose] > │ let v28 : float = v6 + v25 │
00:00:57 #6101 [Verbose] > │ let v29 : float = v7 + v26 │
00:00:57 #6102 [Verbose] > │ let v30 : (unit -> UH0) = closure7(v23) │
00:00:57 #6103 [Verbose] > │ UH0_0(v12, v13, v27, v28, v29, v17, v18, v19, v20, v30) │
00:00:57 #6104 [Verbose] > │ | UH2_1 -> (* StreamNil *) │
00:00:57 #6105 [Verbose] > │ v2 │
00:00:57 #6106 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:57 #6107 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:57 #6108 [Verbose] > │ let v45 : UH0 = │
00:00:57 #6109 [Verbose] > │ match v3 with │
00:00:57 #6110 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │
00:00:57 #6111 [Verbose] > │ *) │
00:00:57 #6112 [Verbose] > │ match v2 with │
00:00:57 #6113 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:57 #6114 [Verbose] > │ StreamCons *) │
00:00:57 #6115 [Verbose] > │ let v24 : float = v9 * v0 │
00:00:57 #6116 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:57 #6117 [Verbose] > │ let v26 : float = v0 * v6 │
00:00:57 #6118 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:57 #6119 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:57 #6120 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:57 #6121 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:57 #6122 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:57 #6123 [Verbose] > │ let v32 : float = v0 * v10 │
00:00:57 #6124 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:57 #6125 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:57 #6126 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:57 #6127 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:57 #6128 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:57 #6129 [Verbose] > │ let v38 : (unit -> UH0) = closure3(v0, v23, v13) │
00:00:57 #6130 [Verbose] > │ UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:57 #6131 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6132 [Verbose] > │ UH0_1 │
00:00:57 #6133 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6134 [Verbose] > │ UH0_1 │
00:00:57 #6135 [Verbose] > │ let v46 : (unit -> UH0) = closure4(v45) │
00:00:57 #6136 [Verbose] > │ let v47 : (unit -> UH0) = method1(v45, v46) │
00:00:57 #6137 [Verbose] > │ let v48 : UH0 = v47 () │
00:00:57 #6138 [Verbose] > │ let v76 : UH2 = │
00:00:57 #6139 [Verbose] > │ match v2 with │
00:00:57 #6140 [Verbose] > │ | UH0_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (* │
00:00:57 #6141 [Verbose] > │ StreamCons *) │
00:00:57 #6142 [Verbose] > │ match v48 with │
00:00:57 #6143 [Verbose] > │ | UH0_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (* │
00:00:57 #6144 [Verbose] > │ StreamCons *) │
00:00:57 #6145 [Verbose] > │ let v69 : (unit -> UH2) = closure6(v68, v58) │
00:00:57 #6146 [Verbose] > │ UH2_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v59, v60, │
00:00:57 #6147 [Verbose] > │ v61, v62, v63, v64, v65, v66, v67, v69) │
00:00:57 #6148 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6149 [Verbose] > │ UH2_1 │
00:00:57 #6150 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6151 [Verbose] > │ UH2_1 │
00:00:57 #6152 [Verbose] > │ let v77 : UH0 = UH0_1 │
00:00:57 #6153 [Verbose] > │ let v78 : UH0 = method2(v0, v76, v77) │
00:00:57 #6154 [Verbose] > │ v78 │
00:00:57 #6155 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:57 #6156 [Verbose] > │ closure2(v0, v1) │
00:00:57 #6157 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:57 #6158 [Verbose] > │ closure1(v0) │
00:00:57 #6159 [Verbose] > │ and closure9 (v0 : UH3) () : UH3 = │
00:00:57 #6160 [Verbose] > │ v0 │
00:00:57 #6161 [Verbose] > │ and method3 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) = │
00:00:57 #6162 [Verbose] > │ match v0 with │
00:00:57 #6163 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *) │
00:00:57 #6164 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:57 #6165 [Verbose] > │ let v14 : UH0 = v12 () │
00:00:57 #6166 [Verbose] > │ let v15 : (unit -> UH3) = closure9(v1) │
00:00:57 #6167 [Verbose] > │ let v16 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │
00:00:57 #6168 [Verbose] > │ method3(v14, v16, v13) │
00:00:57 #6169 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6170 [Verbose] > │ struct (v1, v2) │
00:00:57 #6171 [Verbose] > │ and closure10 (v0 : UH3) () : UH3 = │
00:00:57 #6172 [Verbose] > │ v0 │
00:00:57 #6173 [Verbose] > │ and method4 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:57 #6174 [Verbose] > │ match v0 with │
00:00:57 #6175 [Verbose] > │ | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:57 #6176 [Verbose] > │ *) │
00:00:57 #6177 [Verbose] > │ let v13 : UH3 = v12 () │
00:00:57 #6178 [Verbose] > │ let v14 : (unit -> UH3) = closure10(v1) │
00:00:57 #6179 [Verbose] > │ let v15 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │
00:00:57 #6180 [Verbose] > │ method4(v13, v15) │
00:00:57 #6181 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:57 #6182 [Verbose] > │ v1 │
00:00:57 #6183 [Verbose] > │ and method6 (v0 : int32, v1 : UH0) : US2 = │
00:00:57 #6184 [Verbose] > │ match v1 with │
00:00:57 #6185 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:57 #6186 [Verbose] > │ let v12 : bool = v0 <= 0 │
00:00:57 #6187 [Verbose] > │ if v12 then │
00:00:57 #6188 [Verbose] > │ US2_1(v2, v3, v4, v5, v6, v7, v8, v9, v10) │
00:00:57 #6189 [Verbose] > │ else │
00:00:57 #6190 [Verbose] > │ let v14 : int32 = v0 - 1 │
00:00:57 #6191 [Verbose] > │ let v15 : UH0 = v11 () │
00:00:57 #6192 [Verbose] > │ method6(v14, v15) │
00:00:57 #6193 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6194 [Verbose] > │ US2_0 │
00:00:57 #6195 [Verbose] > │ and closure11 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:57 #6196 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:57 #6197 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:57 #6198 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:57 #6199 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:57 #6200 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:57 #6201 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:57 #6202 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:57 #6203 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:57 #6204 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:57 #6205 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:57 #6206 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:57 #6207 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:57 #6208 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:57 #6209 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:57 #6210 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:57 #6211 [Verbose] > │ let v30 : bool = v29 >= 0.06 │
00:00:57 #6212 [Verbose] > │ let v33 : float = │
00:00:57 #6213 [Verbose] > │ if v30 then │
00:00:57 #6214 [Verbose] > │ 0.0 │
00:00:57 #6215 [Verbose] > │ else │
00:00:57 #6216 [Verbose] > │ let v31 : float = v29 - 0.06 │
00:00:57 #6217 [Verbose] > │ let v32 : float = -30.0 * v31 │
00:00:57 #6218 [Verbose] > │ v32 │
00:00:57 #6219 [Verbose] > │ let v34 : float = v33 * v21 │
00:00:57 #6220 [Verbose] > │ let v35 : float = v33 * v22 │
00:00:57 #6221 [Verbose] > │ let v36 : float = v33 * v23 │
00:00:57 #6222 [Verbose] > │ let v37 : float = v34 / v29 │
00:00:57 #6223 [Verbose] > │ let v38 : float = v35 / v29 │
00:00:57 #6224 [Verbose] > │ let v39 : float = v36 / v29 │
00:00:57 #6225 [Verbose] > │ struct (v37, v38, v39) │
00:00:57 #6226 [Verbose] > │ and closure12 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:57 #6227 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:57 #6228 [Verbose] > │ float * float) = │
00:00:57 #6229 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:57 #6230 [Verbose] > │ and closure13 (v0 : UH1) () : UH1 = │
00:00:57 #6231 [Verbose] > │ v0 │
00:00:57 #6232 [Verbose] > │ and method5 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 = │
00:00:57 #6233 [Verbose] > │ match v1 with │
00:00:57 #6234 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │
00:00:57 #6235 [Verbose] > │ *) │
00:00:57 #6236 [Verbose] > │ let v14 : UH3 = v13 () │
00:00:57 #6237 [Verbose] > │ let v15 : UH1 = method5(v0, v14, v2) │
00:00:57 #6238 [Verbose] > │ let v16 : bool = v3 = 0 │
00:00:57 #6239 [Verbose] > │ let v52 : US1 = │
00:00:57 #6240 [Verbose] > │ if v16 then │
00:00:57 #6241 [Verbose] > │ let v17 : int32 = 1 │
00:00:57 #6242 [Verbose] > │ let v18 : US2 = method6(v17, v0) │
00:00:57 #6243 [Verbose] > │ match v18 with │
00:00:57 #6244 [Verbose] > │ | US2_0 -> (* None *) │
00:00:57 #6245 [Verbose] > │ US1_0 │
00:00:57 #6246 [Verbose] > │ | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* │
00:00:57 #6247 [Verbose] > │ Some *) │
00:00:57 #6248 [Verbose] > │ let v28 : (struct (float * float * float * float * float │
00:00:57 #6249 [Verbose] > │ * float * float * float * float) -> struct (float * float * float)) = │
00:00:57 #6250 [Verbose] > │ closure11(v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:57 #6251 [Verbose] > │ US1_1(v28) │
00:00:57 #6252 [Verbose] > │ else │
00:00:57 #6253 [Verbose] > │ let v33 : bool = v3 = 1 │
00:00:57 #6254 [Verbose] > │ if v33 then │
00:00:57 #6255 [Verbose] > │ let v34 : int32 = 0 │
00:00:57 #6256 [Verbose] > │ let v35 : US2 = method6(v34, v0) │
00:00:57 #6257 [Verbose] > │ match v35 with │
00:00:57 #6258 [Verbose] > │ | US2_0 -> (* None *) │
00:00:57 #6259 [Verbose] > │ US1_0 │
00:00:57 #6260 [Verbose] > │ | US2_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> │
00:00:57 #6261 [Verbose] > │ (* Some *) │
00:00:57 #6262 [Verbose] > │ let v45 : (struct (float * float * float * float * │
00:00:57 #6263 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float)) = │
00:00:57 #6264 [Verbose] > │ closure11(v36, v37, v38, v39, v40, v41, v42, v43, v44) │
00:00:57 #6265 [Verbose] > │ US1_1(v45) │
00:00:57 #6266 [Verbose] > │ else │
00:00:57 #6267 [Verbose] > │ US1_0 │
00:00:57 #6268 [Verbose] > │ let v56 : (struct (float * float * float * float * float * float * │
00:00:57 #6269 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:57 #6270 [Verbose] > │ match v52 with │
00:00:57 #6271 [Verbose] > │ | US1_0 -> (* None *) │
00:00:57 #6272 [Verbose] > │ closure12() │
00:00:57 #6273 [Verbose] > │ | US1_1(v53) -> (* Some *) │
00:00:57 #6274 [Verbose] > │ v53 │
00:00:57 #6275 [Verbose] > │ let struct (v57 : float, v58 : float, v59 : float) = v56 struct (v4, │
00:00:57 #6276 [Verbose] > │ v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:57 #6277 [Verbose] > │ let v60 : float = v57 / v5 │
00:00:57 #6278 [Verbose] > │ let v61 : float = v58 / v5 │
00:00:57 #6279 [Verbose] > │ let v62 : float = v59 / v5 │
00:00:57 #6280 [Verbose] > │ let v63 : (unit -> UH1) = closure13(v15) │
00:00:57 #6281 [Verbose] > │ UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v60, v61, v62, v63) │
00:00:57 #6282 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:57 #6283 [Verbose] > │ v2 │
00:00:57 #6284 [Verbose] > │ and closure8 () (v0 : UH0) : UH1 = │
00:00:57 #6285 [Verbose] > │ let v1 : UH3 = UH3_1 │
00:00:57 #6286 [Verbose] > │ let v2 : int32 = 0 │
00:00:57 #6287 [Verbose] > │ let struct (v3 : UH3, v4 : int32) = method3(v0, v1, v2) │
00:00:57 #6288 [Verbose] > │ let v5 : UH3 = UH3_1 │
00:00:57 #6289 [Verbose] > │ let v6 : UH3 = method4(v3, v5) │
00:00:57 #6290 [Verbose] > │ let v7 : UH1 = UH1_1 │
00:00:57 #6291 [Verbose] > │ let v8 : UH1 = method5(v0, v6, v7) │
00:00:57 #6292 [Verbose] > │ v8 │
00:00:57 #6293 [Verbose] > │ and method8 (v0 : int32, v1 : int32) : UH5 = │
00:00:57 #6294 [Verbose] > │ let v2 : bool = v1 < v0 │
00:00:57 #6295 [Verbose] > │ if v2 then │
00:00:57 #6296 [Verbose] > │ let v3 : int32 = v1 + 1 │
00:00:57 #6297 [Verbose] > │ let v4 : UH5 = method8(v0, v3) │
00:00:57 #6298 [Verbose] > │ UH5_0(v1, v4) │
00:00:57 #6299 [Verbose] > │ else │
00:00:57 #6300 [Verbose] > │ UH5_1 │
00:00:57 #6301 [Verbose] > │ and closure15 () () : UH0 = │
00:00:57 #6302 [Verbose] > │ UH0_1 │
00:00:57 #6303 [Verbose] > │ and closure14 () () : UH0 = │
00:00:57 #6304 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:57 #6305 [Verbose] > │ UH0_0(0.0, 0.16, 1.0, 0.02, 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:57 #6306 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH5, v2 : UH0) : UH0 = │
00:00:57 #6307 [Verbose] > │ match v1 with │
00:00:57 #6308 [Verbose] > │ | UH5_0(v3, v4) -> (* Cons *) │
00:00:57 #6309 [Verbose] > │ let v5 : (unit -> UH0) = closure4(v2) │
00:00:57 #6310 [Verbose] > │ let v6 : (unit -> UH0) = method1(v2, v5) │
00:00:57 #6311 [Verbose] > │ let v7 : UH0 = v6 () │
00:00:57 #6312 [Verbose] > │ let v8 : UH0 = v0 v7 │
00:00:57 #6313 [Verbose] > │ method9(v0, v4, v8) │
00:00:57 #6314 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:57 #6315 [Verbose] > │ v2 │
00:00:57 #6316 [Verbose] > │ and method10 (v0 : UH4, v1 : UH4) : UH4 = │
00:00:57 #6317 [Verbose] > │ match v0 with │
00:00:57 #6318 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:57 #6319 [Verbose] > │ let v4 : UH4 = UH4_0(v2, v1) │
00:00:57 #6320 [Verbose] > │ method10(v3, v4) │
00:00:57 #6321 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:57 #6322 [Verbose] > │ v1 │
00:00:57 #6323 [Verbose] > │ and method7 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 = │
00:00:57 #6324 [Verbose] > │ let v3 : int32 = 0 │
00:00:57 #6325 [Verbose] > │ let v4 : UH5 = method8(v2, v3) │
00:00:57 #6326 [Verbose] > │ let v5 : float = 0.0 │
00:00:57 #6327 [Verbose] > │ let v6 : float = 0.16 │
00:00:57 #6328 [Verbose] > │ let v7 : float = 0.0 │
00:00:57 #6329 [Verbose] > │ let v8 : float = 0.0 │
00:00:57 #6330 [Verbose] > │ let v9 : float = 0.0 │
00:00:57 #6331 [Verbose] > │ let v10 : float = 0.0 │
00:00:57 #6332 [Verbose] > │ let v11 : float = 0.2 │
00:00:57 #6333 [Verbose] > │ let v12 : float = 0.0 │
00:00:57 #6334 [Verbose] > │ let v13 : float = 0.0 │
00:00:57 #6335 [Verbose] > │ let v14 : (unit -> UH0) = closure14() │
00:00:57 #6336 [Verbose] > │ let v15 : UH0 = UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) │
00:00:57 #6337 [Verbose] > │ let v16 : UH0 = method9(v0, v4, v15) │
00:00:57 #6338 [Verbose] > │ let v17 : int32 = 0 │
00:00:57 #6339 [Verbose] > │ let v18 : US2 = method6(v17, v16) │
00:00:57 #6340 [Verbose] > │ let v30 : bool = │
00:00:57 #6341 [Verbose] > │ match v18 with │
00:00:57 #6342 [Verbose] > │ | US2_0 -> (* None *) │
00:00:57 #6343 [Verbose] > │ false │
00:00:57 #6344 [Verbose] > │ | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some *) │
00:00:57 #6345 [Verbose] > │ let v28 : bool = v24 <= 10.0 │
00:00:57 #6346 [Verbose] > │ v28 │
00:00:57 #6347 [Verbose] > │ if v30 then │
00:00:57 #6348 [Verbose] > │ let v31 : UH4 = UH4_0(v16, v1) │
00:00:57 #6349 [Verbose] > │ let v32 : int32 = v2 + 1 │
00:00:57 #6350 [Verbose] > │ method7(v0, v31, v32) │
00:00:57 #6351 [Verbose] > │ else │
00:00:57 #6352 [Verbose] > │ let v34 : UH4 = UH4_1 │
00:00:57 #6353 [Verbose] > │ method10(v1, v34) │
00:00:57 #6354 [Verbose] > │ and closure16 (v0 : UH7) () : UH7 = │
00:00:57 #6355 [Verbose] > │ v0 │
00:00:57 #6356 [Verbose] > │ and method12 (v0 : UH0, v1 : UH7) : UH7 = │
00:00:57 #6357 [Verbose] > │ match v0 with │
00:00:57 #6358 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:57 #6359 [Verbose] > │ let v12 : UH0 = v11 () │
00:00:57 #6360 [Verbose] > │ let v13 : UH7 = method12(v12, v1) │
00:00:57 #6361 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:57 #6362 [Verbose] > │ let v15 : float = v9 * v9 │
00:00:57 #6363 [Verbose] > │ let v16 : float = v14 + v15 │
00:00:57 #6364 [Verbose] > │ let v17 : float = v10 * v10 │
00:00:57 #6365 [Verbose] > │ let v18 : float = v16 + v17 │
00:00:57 #6366 [Verbose] > │ let v19 : float = sqrt v18 │
00:00:57 #6367 [Verbose] > │ let v20 : float = 0.5 * v3 │
00:00:57 #6368 [Verbose] > │ let v21 : float = v19 ** 2.0 │
00:00:57 #6369 [Verbose] > │ let v22 : float = v20 * v21 │
00:00:57 #6370 [Verbose] > │ let v23 : (unit -> UH7) = closure16(v13) │
00:00:57 #6371 [Verbose] > │ UH7_0(v22, v23) │
00:00:57 #6372 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6373 [Verbose] > │ v1 │
00:00:57 #6374 [Verbose] > │ and method13 (v0 : UH7, v1 : float) : float = │
00:00:57 #6375 [Verbose] > │ match v0 with │
00:00:57 #6376 [Verbose] > │ | UH7_0(v2, v3) -> (* StreamCons *) │
00:00:57 #6377 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:57 #6378 [Verbose] > │ let v5 : UH7 = v3 () │
00:00:57 #6379 [Verbose] > │ method13(v5, v4) │
00:00:57 #6380 [Verbose] > │ | UH7_1 -> (* StreamNil *) │
00:00:57 #6381 [Verbose] > │ v1 │
00:00:57 #6382 [Verbose] > │ and method11 (v0 : UH4, v1 : UH6) : UH6 = │
00:00:57 #6383 [Verbose] > │ match v0 with │
00:00:57 #6384 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:57 #6385 [Verbose] > │ let v4 : UH6 = method11(v3, v1) │
00:00:57 #6386 [Verbose] > │ let v5 : int32 = 0 │
00:00:57 #6387 [Verbose] > │ let v6 : US2 = method6(v5, v2) │
00:00:57 #6388 [Verbose] > │ let v23 : US3 = │
00:00:57 #6389 [Verbose] > │ match v6 with │
00:00:57 #6390 [Verbose] > │ | US2_0 -> (* None *) │
00:00:57 #6391 [Verbose] > │ US3_0 │
00:00:57 #6392 [Verbose] > │ | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *) │
00:00:57 #6393 [Verbose] > │ let v16 : UH7 = UH7_1 │
00:00:57 #6394 [Verbose] > │ let v17 : UH7 = method12(v2, v16) │
00:00:57 #6395 [Verbose] > │ let v18 : float = 0.0 │
00:00:57 #6396 [Verbose] > │ let v19 : float = method13(v17, v18) │
00:00:57 #6397 [Verbose] > │ US3_1(v12, v19) │
00:00:57 #6398 [Verbose] > │ UH6_0(v23, v4) │
00:00:57 #6399 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:57 #6400 [Verbose] > │ v1 │
00:00:57 #6401 [Verbose] > │ and method14 (v0 : UH6, v1 : UH8) : UH8 = │
00:00:57 #6402 [Verbose] > │ match v0 with │
00:00:57 #6403 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:57 #6404 [Verbose] > │ let v4 : UH8 = method14(v3, v1) │
00:00:57 #6405 [Verbose] > │ match v2 with │
00:00:57 #6406 [Verbose] > │ | US3_0 -> (* None *) │
00:00:57 #6407 [Verbose] > │ v4 │
00:00:57 #6408 [Verbose] > │ | US3_1(v5, v6) -> (* Some *) │
00:00:57 #6409 [Verbose] > │ UH8_0(v5, v6, v4) │
00:00:57 #6410 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:57 #6411 [Verbose] > │ v1 │
00:00:57 #6412 [Verbose] > │ and method15 (v0 : UH8, v1 : UH9, v2 : UH9) : struct (UH9 * UH9) = │
00:00:57 #6413 [Verbose] > │ match v0 with │
00:00:57 #6414 [Verbose] > │ | UH8_0(v3, v4, v5) -> (* Cons *) │
00:00:57 #6415 [Verbose] > │ let v6 : UH9 = UH9_0(v3, v1) │
00:00:57 #6416 [Verbose] > │ let v7 : UH9 = UH9_0(v4, v2) │
00:00:57 #6417 [Verbose] > │ method15(v5, v6, v7) │
00:00:57 #6418 [Verbose] > │ | UH8_1 -> (* Nil *) │
00:00:57 #6419 [Verbose] > │ struct (v1, v2) │
00:00:57 #6420 [Verbose] > │ and method16 (v0 : UH9, v1 : UH9) : UH9 = │
00:00:57 #6421 [Verbose] > │ match v0 with │
00:00:57 #6422 [Verbose] > │ | UH9_0(v2, v3) -> (* Cons *) │
00:00:57 #6423 [Verbose] > │ let v4 : UH9 = UH9_0(v2, v1) │
00:00:57 #6424 [Verbose] > │ method16(v3, v4) │
00:00:57 #6425 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:57 #6426 [Verbose] > │ v1 │
00:00:57 #6427 [Verbose] > │ and closure20 (v0 : (unit -> UH1), v1 : (unit -> UH1)) () : UH1 = │
00:00:57 #6428 [Verbose] > │ let v2 : UH1 = v1 () │
00:00:57 #6429 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:57 #6430 [Verbose] > │ match v2 with │
00:00:57 #6431 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:57 #6432 [Verbose] > │ match v3 with │
00:00:57 #6433 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:57 #6434 [Verbose] > │ StreamCons *) │
00:00:57 #6435 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:57 #6436 [Verbose] > │ let v25 : float = v5 + v15 │
00:00:57 #6437 [Verbose] > │ let v26 : float = v9 + v19 │
00:00:57 #6438 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:57 #6439 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:57 #6440 [Verbose] > │ let v29 : float = v8 + v18 │
00:00:57 #6441 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:57 #6442 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:57 #6443 [Verbose] > │ let v32 : float = v12 + v22 │
00:00:57 #6444 [Verbose] > │ let v33 : (unit -> UH1) = closure20(v23, v13) │
00:00:57 #6445 [Verbose] > │ UH1_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33) │
00:00:57 #6446 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6447 [Verbose] > │ UH1_1 │
00:00:57 #6448 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6449 [Verbose] > │ UH1_1 │
00:00:57 #6450 [Verbose] > │ and closure19 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:57 #6451 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:57 #6452 [Verbose] > │ let v4 : float = v0 / 2.0 │
00:00:57 #6453 [Verbose] > │ let v46 : UH0 = │
00:00:57 #6454 [Verbose] > │ match v3 with │
00:00:57 #6455 [Verbose] > │ | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* │
00:00:57 #6456 [Verbose] > │ StreamCons *) │
00:00:57 #6457 [Verbose] > │ match v2 with │
00:00:57 #6458 [Verbose] > │ | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (* │
00:00:57 #6459 [Verbose] > │ StreamCons *) │
00:00:57 #6460 [Verbose] > │ let v25 : float = v10 * v4 │
00:00:57 #6461 [Verbose] > │ let v26 : float = v20 + v25 │
00:00:57 #6462 [Verbose] > │ let v27 : float = v4 * v7 │
00:00:57 #6463 [Verbose] > │ let v28 : float = v4 * v8 │
00:00:57 #6464 [Verbose] > │ let v29 : float = v4 * v9 │
00:00:57 #6465 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:57 #6466 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:57 #6467 [Verbose] > │ let v32 : float = v19 + v29 │
00:00:57 #6468 [Verbose] > │ let v33 : float = v4 * v11 │
00:00:57 #6469 [Verbose] > │ let v34 : float = v4 * v12 │
00:00:57 #6470 [Verbose] > │ let v35 : float = v4 * v13 │
00:00:57 #6471 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:57 #6472 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:57 #6473 [Verbose] > │ let v38 : float = v23 + v35 │
00:00:57 #6474 [Verbose] > │ let v39 : (unit -> UH0) = closure3(v4, v24, v14) │
00:00:57 #6475 [Verbose] > │ UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39) │
00:00:57 #6476 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6477 [Verbose] > │ UH0_1 │
00:00:57 #6478 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6479 [Verbose] > │ UH0_1 │
00:00:57 #6480 [Verbose] > │ let v47 : (unit -> UH0) = closure4(v46) │
00:00:57 #6481 [Verbose] > │ let v48 : (unit -> UH0) = method1(v46, v47) │
00:00:57 #6482 [Verbose] > │ let v49 : UH0 = v48 () │
00:00:57 #6483 [Verbose] > │ let v50 : UH1 = v1 v49 │
00:00:57 #6484 [Verbose] > │ let v92 : UH0 = │
00:00:57 #6485 [Verbose] > │ match v50 with │
00:00:57 #6486 [Verbose] > │ | UH1_0(v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) -> (* │
00:00:57 #6487 [Verbose] > │ StreamCons *) │
00:00:57 #6488 [Verbose] > │ match v2 with │
00:00:57 #6489 [Verbose] > │ | UH0_0(v61, v62, v63, v64, v65, v66, v67, v68, v69, v70) -> (* │
00:00:57 #6490 [Verbose] > │ StreamCons *) │
00:00:57 #6491 [Verbose] > │ let v71 : float = v56 * v4 │
00:00:57 #6492 [Verbose] > │ let v72 : float = v66 + v71 │
00:00:57 #6493 [Verbose] > │ let v73 : float = v4 * v53 │
00:00:57 #6494 [Verbose] > │ let v74 : float = v4 * v54 │
00:00:57 #6495 [Verbose] > │ let v75 : float = v4 * v55 │
00:00:57 #6496 [Verbose] > │ let v76 : float = v63 + v73 │
00:00:57 #6497 [Verbose] > │ let v77 : float = v64 + v74 │
00:00:57 #6498 [Verbose] > │ let v78 : float = v65 + v75 │
00:00:57 #6499 [Verbose] > │ let v79 : float = v4 * v57 │
00:00:57 #6500 [Verbose] > │ let v80 : float = v4 * v58 │
00:00:57 #6501 [Verbose] > │ let v81 : float = v4 * v59 │
00:00:57 #6502 [Verbose] > │ let v82 : float = v67 + v79 │
00:00:57 #6503 [Verbose] > │ let v83 : float = v68 + v80 │
00:00:57 #6504 [Verbose] > │ let v84 : float = v69 + v81 │
00:00:57 #6505 [Verbose] > │ let v85 : (unit -> UH0) = closure3(v4, v70, v60) │
00:00:57 #6506 [Verbose] > │ UH0_0(v61, v62, v76, v77, v78, v72, v82, v83, v84, v85) │
00:00:57 #6507 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6508 [Verbose] > │ UH0_1 │
00:00:57 #6509 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6510 [Verbose] > │ UH0_1 │
00:00:57 #6511 [Verbose] > │ let v93 : (unit -> UH0) = closure4(v92) │
00:00:57 #6512 [Verbose] > │ let v94 : (unit -> UH0) = method1(v92, v93) │
00:00:57 #6513 [Verbose] > │ let v95 : UH0 = v94 () │
00:00:57 #6514 [Verbose] > │ let v96 : UH1 = v1 v95 │
00:00:57 #6515 [Verbose] > │ let v138 : UH0 = │
00:00:57 #6516 [Verbose] > │ match v96 with │
00:00:57 #6517 [Verbose] > │ | UH1_0(v97, v98, v99, v100, v101, v102, v103, v104, v105, v106) -> │
00:00:57 #6518 [Verbose] > │ (* StreamCons *) │
00:00:57 #6519 [Verbose] > │ match v2 with │
00:00:57 #6520 [Verbose] > │ | UH0_0(v107, v108, v109, v110, v111, v112, v113, v114, v115, │
00:00:57 #6521 [Verbose] > │ v116) -> (* StreamCons *) │
00:00:57 #6522 [Verbose] > │ let v117 : float = v102 * v0 │
00:00:57 #6523 [Verbose] > │ let v118 : float = v112 + v117 │
00:00:57 #6524 [Verbose] > │ let v119 : float = v0 * v99 │
00:00:57 #6525 [Verbose] > │ let v120 : float = v0 * v100 │
00:00:57 #6526 [Verbose] > │ let v121 : float = v0 * v101 │
00:00:57 #6527 [Verbose] > │ let v122 : float = v109 + v119 │
00:00:57 #6528 [Verbose] > │ let v123 : float = v110 + v120 │
00:00:57 #6529 [Verbose] > │ let v124 : float = v111 + v121 │
00:00:57 #6530 [Verbose] > │ let v125 : float = v0 * v103 │
00:00:57 #6531 [Verbose] > │ let v126 : float = v0 * v104 │
00:00:57 #6532 [Verbose] > │ let v127 : float = v0 * v105 │
00:00:57 #6533 [Verbose] > │ let v128 : float = v113 + v125 │
00:00:57 #6534 [Verbose] > │ let v129 : float = v114 + v126 │
00:00:57 #6535 [Verbose] > │ let v130 : float = v115 + v127 │
00:00:57 #6536 [Verbose] > │ let v131 : (unit -> UH0) = closure3(v0, v116, v106) │
00:00:57 #6537 [Verbose] > │ UH0_0(v107, v108, v122, v123, v124, v118, v128, v129, v130, │
00:00:57 #6538 [Verbose] > │ v131) │
00:00:57 #6539 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:57 #6540 [Verbose] > │ UH0_1 │
00:00:57 #6541 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6542 [Verbose] > │ UH0_1 │
00:00:57 #6543 [Verbose] > │ let v139 : (unit -> UH0) = closure4(v138) │
00:00:57 #6544 [Verbose] > │ let v140 : (unit -> UH0) = method1(v138, v139) │
00:00:57 #6545 [Verbose] > │ let v141 : UH0 = v140 () │
00:00:57 #6546 [Verbose] > │ let v142 : UH1 = v1 v141 │
00:00:57 #6547 [Verbose] > │ let v143 : float = v0 / 6.0 │
00:00:57 #6548 [Verbose] > │ let v180 : UH1 = │
00:00:57 #6549 [Verbose] > │ match v3 with │
00:00:57 #6550 [Verbose] > │ | UH1_0(v144, v145, v146, v147, v148, v149, v150, v151, v152, v153) │
00:00:57 #6551 [Verbose] > │ -> (* StreamCons *) │
00:00:57 #6552 [Verbose] > │ match v50 with │
00:00:57 #6553 [Verbose] > │ | UH1_0(v154, v155, v156, v157, v158, v159, v160, v161, v162, │
00:00:57 #6554 [Verbose] > │ v163) -> (* StreamCons *) │
00:00:57 #6555 [Verbose] > │ let v164 : float = v144 + v154 │
00:00:57 #6556 [Verbose] > │ let v165 : float = v145 + v155 │
00:00:57 #6557 [Verbose] > │ let v166 : float = v149 + v159 │
00:00:57 #6558 [Verbose] > │ let v167 : float = v146 + v156 │
00:00:57 #6559 [Verbose] > │ let v168 : float = v147 + v157 │
00:00:57 #6560 [Verbose] > │ let v169 : float = v148 + v158 │
00:00:57 #6561 [Verbose] > │ let v170 : float = v150 + v160 │
00:00:57 #6562 [Verbose] > │ let v171 : float = v151 + v161 │
00:00:57 #6563 [Verbose] > │ let v172 : float = v152 + v162 │
00:00:57 #6564 [Verbose] > │ let v173 : (unit -> UH1) = closure20(v163, v153) │
00:00:57 #6565 [Verbose] > │ UH1_0(v164, v165, v167, v168, v169, v166, v170, v171, v172, │
00:00:57 #6566 [Verbose] > │ v173) │
00:00:57 #6567 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6568 [Verbose] > │ UH1_1 │
00:00:57 #6569 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:57 #6570 [Verbose] > │ UH1_1 │
00:00:57 #6571 [Verbose] > │ let v217 : UH1 = │
00:00:57 #6572 [Verbose] > │ match v180 with │
00:00:57 #6573 [Verbose] > │ | UH1_0(v181, v182, v183, v184, v185, v186, v187, v188, v189, v190) │
00:00:57 #6574 [Verbose] > │ -> (* StreamCons *) │
00:00:57 #6575 [Verbose] > │ match v50 with │
00:00:57 #6576 [Verbose] > │ | UH1_0(v191, v192, v193, v194, v195, v196, v197, v198, v199, │
00:00:57 #6577 [Verbose] > │ v200) -> (* StreamCons *) │
00:00:57 #6578 [Verbose] > │ let v201 : float = v181 + v191 │
00:00:57 #6579 [Verbose] > │ let v202 : float = v182 + v192 │
00:00:57 #6580 [Verbose] > │ let v203 : float = v186 + v196 │
00:00:57 #6581 [Verbose] > │ let v204 : float = v183 + v193 │
00:00:57 #6582 [Verbose] > │ let v205 : float = v184 + v194 │
00:00:57 #6583 [Verbose] > │ let v206 : float = v185 + v195 │
00:00:57 #6584 [Verbose] > │ let v207 : float = v187 + v197 │
00:00:57 #6585 [Verbose] > │ let v208 : float = v188 + v198 │
00:00:57 #6586 [Verbose] > │ let v209 : float = v189 + v199 │
00:00:58 #6587 [Verbose] > │ let v210 : (unit -> UH1) = closure20(v200, v190) │
00:00:58 #6588 [Verbose] > │ UH1_0(v201, v202, v204, v205, v206, v203, v207, v208, v209, │
00:00:58 #6589 [Verbose] > │ v210) │
00:00:58 #6590 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6591 [Verbose] > │ UH1_1 │
00:00:58 #6592 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6593 [Verbose] > │ UH1_1 │
00:00:58 #6594 [Verbose] > │ let v254 : UH1 = │
00:00:58 #6595 [Verbose] > │ match v217 with │
00:00:58 #6596 [Verbose] > │ | UH1_0(v218, v219, v220, v221, v222, v223, v224, v225, v226, v227) │
00:00:58 #6597 [Verbose] > │ -> (* StreamCons *) │
00:00:58 #6598 [Verbose] > │ match v96 with │
00:00:58 #6599 [Verbose] > │ | UH1_0(v228, v229, v230, v231, v232, v233, v234, v235, v236, │
00:00:58 #6600 [Verbose] > │ v237) -> (* StreamCons *) │
00:00:58 #6601 [Verbose] > │ let v238 : float = v218 + v228 │
00:00:58 #6602 [Verbose] > │ let v239 : float = v219 + v229 │
00:00:58 #6603 [Verbose] > │ let v240 : float = v223 + v233 │
00:00:58 #6604 [Verbose] > │ let v241 : float = v220 + v230 │
00:00:58 #6605 [Verbose] > │ let v242 : float = v221 + v231 │
00:00:58 #6606 [Verbose] > │ let v243 : float = v222 + v232 │
00:00:58 #6607 [Verbose] > │ let v244 : float = v224 + v234 │
00:00:58 #6608 [Verbose] > │ let v245 : float = v225 + v235 │
00:00:58 #6609 [Verbose] > │ let v246 : float = v226 + v236 │
00:00:58 #6610 [Verbose] > │ let v247 : (unit -> UH1) = closure20(v237, v227) │
00:00:58 #6611 [Verbose] > │ UH1_0(v238, v239, v241, v242, v243, v240, v244, v245, v246, │
00:00:58 #6612 [Verbose] > │ v247) │
00:00:58 #6613 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6614 [Verbose] > │ UH1_1 │
00:00:58 #6615 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6616 [Verbose] > │ UH1_1 │
00:00:58 #6617 [Verbose] > │ let v291 : UH1 = │
00:00:58 #6618 [Verbose] > │ match v254 with │
00:00:58 #6619 [Verbose] > │ | UH1_0(v255, v256, v257, v258, v259, v260, v261, v262, v263, v264) │
00:00:58 #6620 [Verbose] > │ -> (* StreamCons *) │
00:00:58 #6621 [Verbose] > │ match v96 with │
00:00:58 #6622 [Verbose] > │ | UH1_0(v265, v266, v267, v268, v269, v270, v271, v272, v273, │
00:00:58 #6623 [Verbose] > │ v274) -> (* StreamCons *) │
00:00:58 #6624 [Verbose] > │ let v275 : float = v255 + v265 │
00:00:58 #6625 [Verbose] > │ let v276 : float = v256 + v266 │
00:00:58 #6626 [Verbose] > │ let v277 : float = v260 + v270 │
00:00:58 #6627 [Verbose] > │ let v278 : float = v257 + v267 │
00:00:58 #6628 [Verbose] > │ let v279 : float = v258 + v268 │
00:00:58 #6629 [Verbose] > │ let v280 : float = v259 + v269 │
00:00:58 #6630 [Verbose] > │ let v281 : float = v261 + v271 │
00:00:58 #6631 [Verbose] > │ let v282 : float = v262 + v272 │
00:00:58 #6632 [Verbose] > │ let v283 : float = v263 + v273 │
00:00:58 #6633 [Verbose] > │ let v284 : (unit -> UH1) = closure20(v274, v264) │
00:00:58 #6634 [Verbose] > │ UH1_0(v275, v276, v278, v279, v280, v277, v281, v282, v283, │
00:00:58 #6635 [Verbose] > │ v284) │
00:00:58 #6636 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6637 [Verbose] > │ UH1_1 │
00:00:58 #6638 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6639 [Verbose] > │ UH1_1 │
00:00:58 #6640 [Verbose] > │ let v328 : UH1 = │
00:00:58 #6641 [Verbose] > │ match v291 with │
00:00:58 #6642 [Verbose] > │ | UH1_0(v292, v293, v294, v295, v296, v297, v298, v299, v300, v301) │
00:00:58 #6643 [Verbose] > │ -> (* StreamCons *) │
00:00:58 #6644 [Verbose] > │ match v142 with │
00:00:58 #6645 [Verbose] > │ | UH1_0(v302, v303, v304, v305, v306, v307, v308, v309, v310, │
00:00:58 #6646 [Verbose] > │ v311) -> (* StreamCons *) │
00:00:58 #6647 [Verbose] > │ let v312 : float = v292 + v302 │
00:00:58 #6648 [Verbose] > │ let v313 : float = v293 + v303 │
00:00:58 #6649 [Verbose] > │ let v314 : float = v297 + v307 │
00:00:58 #6650 [Verbose] > │ let v315 : float = v294 + v304 │
00:00:58 #6651 [Verbose] > │ let v316 : float = v295 + v305 │
00:00:58 #6652 [Verbose] > │ let v317 : float = v296 + v306 │
00:00:58 #6653 [Verbose] > │ let v318 : float = v298 + v308 │
00:00:58 #6654 [Verbose] > │ let v319 : float = v299 + v309 │
00:00:58 #6655 [Verbose] > │ let v320 : float = v300 + v310 │
00:00:58 #6656 [Verbose] > │ let v321 : (unit -> UH1) = closure20(v311, v301) │
00:00:58 #6657 [Verbose] > │ UH1_0(v312, v313, v315, v316, v317, v314, v318, v319, v320, │
00:00:58 #6658 [Verbose] > │ v321) │
00:00:58 #6659 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6660 [Verbose] > │ UH1_1 │
00:00:58 #6661 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6662 [Verbose] > │ UH1_1 │
00:00:58 #6663 [Verbose] > │ let v370 : UH0 = │
00:00:58 #6664 [Verbose] > │ match v328 with │
00:00:58 #6665 [Verbose] > │ | UH1_0(v329, v330, v331, v332, v333, v334, v335, v336, v337, v338) │
00:00:58 #6666 [Verbose] > │ -> (* StreamCons *) │
00:00:58 #6667 [Verbose] > │ match v2 with │
00:00:58 #6668 [Verbose] > │ | UH0_0(v339, v340, v341, v342, v343, v344, v345, v346, v347, │
00:00:58 #6669 [Verbose] > │ v348) -> (* StreamCons *) │
00:00:58 #6670 [Verbose] > │ let v349 : float = v334 * v143 │
00:00:58 #6671 [Verbose] > │ let v350 : float = v344 + v349 │
00:00:58 #6672 [Verbose] > │ let v351 : float = v143 * v331 │
00:00:58 #6673 [Verbose] > │ let v352 : float = v143 * v332 │
00:00:58 #6674 [Verbose] > │ let v353 : float = v143 * v333 │
00:00:58 #6675 [Verbose] > │ let v354 : float = v341 + v351 │
00:00:58 #6676 [Verbose] > │ let v355 : float = v342 + v352 │
00:00:58 #6677 [Verbose] > │ let v356 : float = v343 + v353 │
00:00:58 #6678 [Verbose] > │ let v357 : float = v143 * v335 │
00:00:58 #6679 [Verbose] > │ let v358 : float = v143 * v336 │
00:00:58 #6680 [Verbose] > │ let v359 : float = v143 * v337 │
00:00:58 #6681 [Verbose] > │ let v360 : float = v345 + v357 │
00:00:58 #6682 [Verbose] > │ let v361 : float = v346 + v358 │
00:00:58 #6683 [Verbose] > │ let v362 : float = v347 + v359 │
00:00:58 #6684 [Verbose] > │ let v363 : (unit -> UH0) = closure3(v143, v348, v338) │
00:00:58 #6685 [Verbose] > │ UH0_0(v339, v340, v354, v355, v356, v350, v360, v361, v362, │
00:00:58 #6686 [Verbose] > │ v363) │
00:00:58 #6687 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:58 #6688 [Verbose] > │ UH0_1 │
00:00:58 #6689 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:58 #6690 [Verbose] > │ UH0_1 │
00:00:58 #6691 [Verbose] > │ let v371 : (unit -> UH0) = closure4(v370) │
00:00:58 #6692 [Verbose] > │ let v372 : (unit -> UH0) = method1(v370, v371) │
00:00:58 #6693 [Verbose] > │ let v373 : UH0 = v372 () │
00:00:58 #6694 [Verbose] > │ v373 │
00:00:58 #6695 [Verbose] > │ and closure18 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:58 #6696 [Verbose] > │ closure19(v0, v1) │
00:00:58 #6697 [Verbose] > │ and closure17 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:58 #6698 [Verbose] > │ closure18(v0) │
00:00:58 #6699 [Verbose] > │ and method17 (v0 : UH4, v1 : UH6) : UH6 = │
00:00:58 #6700 [Verbose] > │ match v0 with │
00:00:58 #6701 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:58 #6702 [Verbose] > │ let v4 : UH6 = method17(v3, v1) │
00:00:58 #6703 [Verbose] > │ let v5 : int32 = 0 │
00:00:58 #6704 [Verbose] > │ let v6 : US2 = method6(v5, v2) │
00:00:58 #6705 [Verbose] > │ let v23 : US3 = │
00:00:58 #6706 [Verbose] > │ match v6 with │
00:00:58 #6707 [Verbose] > │ | US2_0 -> (* None *) │
00:00:58 #6708 [Verbose] > │ US3_0 │
00:00:58 #6709 [Verbose] > │ | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *) │
00:00:58 #6710 [Verbose] > │ let v16 : UH7 = UH7_1 │
00:00:58 #6711 [Verbose] > │ let v17 : UH7 = method12(v2, v16) │
00:00:58 #6712 [Verbose] > │ let v18 : float = 0.0 │
00:00:58 #6713 [Verbose] > │ let v19 : float = method13(v17, v18) │
00:00:58 #6714 [Verbose] > │ US3_1(v12, v19) │
00:00:58 #6715 [Verbose] > │ UH6_0(v23, v4) │
00:00:58 #6716 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:58 #6717 [Verbose] > │ v1 │
00:00:58 #6718 [Verbose] > │ and method19 (v0 : UH9, v1 : int32) : int32 = │
00:00:58 #6719 [Verbose] > │ match v0 with │
00:00:58 #6720 [Verbose] > │ | UH9_0(v2, v3) -> (* Cons *) │
00:00:58 #6721 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:58 #6722 [Verbose] > │ method19(v3, v4) │
00:00:58 #6723 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:58 #6724 [Verbose] > │ v1 │
00:00:58 #6725 [Verbose] > │ and method20 (v0 : (float []), v1 : UH9, v2 : int32) : int32 = │
00:00:58 #6726 [Verbose] > │ match v1 with │
00:00:58 #6727 [Verbose] > │ | UH9_0(v3, v4) -> (* Cons *) │
00:00:58 #6728 [Verbose] > │ v0.[int v2] <- v3 │
00:00:58 #6729 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:58 #6730 [Verbose] > │ method20(v0, v4, v5) │
00:00:58 #6731 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:58 #6732 [Verbose] > │ v2 │
00:00:58 #6733 [Verbose] > │ and method18 (v0 : UH9) : (float []) = │
00:00:58 #6734 [Verbose] > │ let v1 : int32 = 0 │
00:00:58 #6735 [Verbose] > │ let v2 : int32 = method19(v0, v1) │
00:00:58 #6736 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:58 #6737 [Verbose] > │ let v4 : int32 = 0 │
00:00:58 #6738 [Verbose] > │ let v5 : int32 = method20(v3, v0, v4) │
00:00:58 #6739 [Verbose] > │ v3 │
00:00:58 #6740 [Verbose] > │ and method21 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:58 #6741 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:58 #6742 [Verbose] > │ v0 │
00:00:58 #6743 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:58 #6744 [Verbose] > │ []) * (float [])) [])) = │
00:00:58 #6745 [Verbose] > │ let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0() │
00:00:58 #6746 [Verbose] > │ let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03 │
00:00:58 #6747 [Verbose] > │ let v2 : (UH0 -> UH1) = closure8() │
00:00:58 #6748 [Verbose] > │ let v3 : (UH0 -> UH0) = v1 v2 │
00:00:58 #6749 [Verbose] > │ let v4 : UH4 = UH4_1 │
00:00:58 #6750 [Verbose] > │ let v5 : int32 = 0 │
00:00:58 #6751 [Verbose] > │ let v6 : UH4 = method7(v3, v4, v5) │
00:00:58 #6752 [Verbose] > │ let v7 : UH6 = UH6_1 │
00:00:58 #6753 [Verbose] > │ let v8 : UH6 = method11(v6, v7) │
00:00:58 #6754 [Verbose] > │ let v9 : UH8 = UH8_1 │
00:00:58 #6755 [Verbose] > │ let v10 : UH8 = method14(v8, v9) │
00:00:58 #6756 [Verbose] > │ let v11 : UH9 = UH9_1 │
00:00:58 #6757 [Verbose] > │ let v12 : UH9 = UH9_1 │
00:00:58 #6758 [Verbose] > │ let struct (v13 : UH9, v14 : UH9) = method15(v10, v11, v12) │
00:00:58 #6759 [Verbose] > │ let v15 : UH9 = UH9_1 │
00:00:58 #6760 [Verbose] > │ let v16 : UH9 = method16(v13, v15) │
00:00:58 #6761 [Verbose] > │ let v17 : UH9 = UH9_1 │
00:00:58 #6762 [Verbose] > │ let v18 : UH9 = method16(v14, v17) │
00:00:58 #6763 [Verbose] > │ let v19 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure17() │
00:00:58 #6764 [Verbose] > │ let v20 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v19 0.03 │
00:00:58 #6765 [Verbose] > │ let v21 : (UH0 -> UH0) = v20 v2 │
00:00:58 #6766 [Verbose] > │ let v22 : UH4 = UH4_1 │
00:00:58 #6767 [Verbose] > │ let v23 : int32 = 0 │
00:00:58 #6768 [Verbose] > │ let v24 : UH4 = method7(v21, v22, v23) │
00:00:58 #6769 [Verbose] > │ let v25 : UH6 = UH6_1 │
00:00:58 #6770 [Verbose] > │ let v26 : UH6 = method17(v24, v25) │
00:00:58 #6771 [Verbose] > │ let v27 : UH8 = UH8_1 │
00:00:58 #6772 [Verbose] > │ let v28 : UH8 = method14(v26, v27) │
00:00:58 #6773 [Verbose] > │ let v29 : UH9 = UH9_1 │
00:00:58 #6774 [Verbose] > │ let v30 : UH9 = UH9_1 │
00:00:58 #6775 [Verbose] > │ let struct (v31 : UH9, v32 : UH9) = method15(v28, v29, v30) │
00:00:58 #6776 [Verbose] > │ let v33 : UH9 = UH9_1 │
00:00:58 #6777 [Verbose] > │ let v34 : UH9 = method16(v31, v33) │
00:00:58 #6778 [Verbose] > │ let v35 : UH9 = UH9_1 │
00:00:58 #6779 [Verbose] > │ let v36 : UH9 = method16(v32, v35) │
00:00:58 #6780 [Verbose] > │ let v37 : (float []) = method18(v16) │
00:00:58 #6781 [Verbose] > │ let v38 : (float []) = method18(v18) │
00:00:58 #6782 [Verbose] > │ let v39 : (float []) = method18(v34) │
00:00:58 #6783 [Verbose] > │ let v40 : (float []) = method18(v36) │
00:00:58 #6784 [Verbose] > │ let v41 : string = "euler-cromer" │
00:00:58 #6785 [Verbose] > │ let v42 : string = "runge-kutta 4" │
00:00:58 #6786 [Verbose] > │ let v43 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:58 #6787 [Verbose] > │ (v41, v37, v38); struct (v42, v39, v40)|] │
00:00:58 #6788 [Verbose] > │ let v44 : (struct (string * (float []) * (float [])) []) = method21(v43) │
00:00:58 #6789 [Verbose] > │ let v45 : string = "system kinetic energy versus time" │
00:00:58 #6790 [Verbose] > │ let v46 : string = "time (s)" │
00:00:58 #6791 [Verbose] > │ let v47 : string = "system kinetic energy (j)" │
00:00:58 #6792 [Verbose] > │ struct (v45, v46, v47, v44) │
00:00:58 #6793 [Verbose] > │ method0() │
00:00:58 #6794 [Verbose] > │ │
00:00:58 #6795 [Verbose] > │ │
00:00:58 #6796 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 #6797 [Verbose] >
00:00:58 #6798 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 #6799 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 #6800 [Verbose] > │ ### wave 2 │
00:00:58 #6801 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 #6802 [Verbose] >
00:00:58 #6803 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 #6804 [Verbose] > // // test
00:00:58 #6805 [Verbose] >
00:00:58 #6806 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:00:58 #6807 [Verbose] > inl r1 = st1.pos_vec
00:00:58 #6808 [Verbose] > inl r2 = st2.pos_vec
00:00:58 #6809 [Verbose] > inl r21 = r2 ^-^ r1
00:00:58 #6810 [Verbose] > inl r21mag = magnitude r21
00:00:58 #6811 [Verbose] > -k * (r21mag - re) *^ r21 ^/ r21mag
00:00:58 #6812 [Verbose] >
00:00:58 #6813 [Verbose] > inl fixed_linear_spring k re r1 =
00:00:58 #6814 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:58 #6815 [Verbose] > linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:00:58 #6816 [Verbose] > r1 })
00:00:58 #6817 [Verbose] >
00:00:58 #6818 [Verbose] > inl forces_string () =
00:00:58 #6819 [Verbose] > [[
00:00:58 #6820 [Verbose] > ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:00:58 #6821 [Verbose] > ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:00:58 #6822 [Verbose] > ]] /@ (
00:00:58 #6823 [Verbose] > listm'.init_series 0 59 1
00:00:58 #6824 [Verbose] > |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:00:58 #6825 [Verbose] > )
00:00:58 #6826 [Verbose] >
00:00:58 #6827 [Verbose] > inl string_update dt =
00:00:58 #6828 [Verbose] > update_mps (join runge_kutta_4 dt) (join forces_string ())
00:00:58 #6829 [Verbose] >
00:00:58 #6830 [Verbose] > inl string_initial_overtone n =
00:00:58 #6831 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:58 #6832 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:58 #6833 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:58 #6834 [Verbose] > |> listm.map (fun x =>
00:00:58 #6835 [Verbose] > inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:00:58 #6836 [Verbose] > particle_state {
00:00:58 #6837 [Verbose] > default_particle_state' with
00:00:58 #6838 [Verbose] > mass = ball_mass
00:00:58 #6839 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:58 #6840 [Verbose] > velocity = zero_vec ()
00:00:58 #6841 [Verbose] > }
00:00:58 #6842 [Verbose] > )
00:00:58 #6843 [Verbose] > |> stream.from_list
00:00:58 #6844 [Verbose] > |> multi_particle_state
00:00:58 #6845 [Verbose] >
00:00:58 #6846 [Verbose] > let main () =
00:00:58 #6847 [Verbose] > inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:00:58 #6848 [Verbose] > inl ~initial_state = string_initial_overtone 3i32
00:00:58 #6849 [Verbose] > inl frames =
00:00:58 #6850 [Verbose] > frames
00:00:58 #6851 [Verbose] > |> stream.map (fun n =>
00:00:58 #6852 [Verbose] > inl (multi_particle_state sts) =
00:00:58 #6853 [Verbose] > stream.iterate (string_update 0.000025) initial_state |>
00:00:58 #6854 [Verbose] > stream.item n
00:00:58 #6855 [Verbose] > inl x, y =
00:00:58 #6856 [Verbose] > [[ zero_vec () ]]
00:00:58 #6857 [Verbose] > /@ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:00:58 #6858 [Verbose] > stream.to_list)
00:00:58 #6859 [Verbose] > /@ [[ 0.65 *^ i_hat () ]]
00:00:58 #6860 [Verbose] > |> listm.map (fun r => r.x, r.y)
00:00:58 #6861 [Verbose] > |> stream.from_list
00:00:58 #6862 [Verbose] > |> stream.unzip
00:00:58 #6863 [Verbose] > inl x : a i32 _ = x |> stream.to_list |> listm.toArray
00:00:58 #6864 [Verbose] > inl y : a i32 _ = y |> stream.to_list |> listm.toArray
00:00:58 #6865 [Verbose] > x, y
00:00:58 #6866 [Verbose] > )
00:00:58 #6867 [Verbose] >
00:00:58 #6868 [Verbose] > inl plots =
00:00:58 #6869 [Verbose] > frames
00:00:58 #6870 [Verbose] > |> stream.indexed
00:00:58 #6871 [Verbose] > |> stream.map (fun ((n : i32), (x, y)) =>
00:00:58 #6872 [Verbose] > "wave",
00:00:58 #6873 [Verbose] > "position (m)",
00:00:58 #6874 [Verbose] > "displacement (m)",
00:00:58 #6875 [Verbose] > ;[[
00:00:58 #6876 [Verbose] > ($"$\"{!n}\"" : string), x, y
00:00:58 #6877 [Verbose] > ]]
00:00:58 #6878 [Verbose] > )
00:00:58 #6879 [Verbose] >
00:00:58 #6880 [Verbose] > plots |> stream.to_list |> listm.toArray : a i32 _
00:01:06 #6881 [Verbose] >
00:01:06 #6882 [Verbose] > ╭─[ 8.47s - return value ]─────────────────────────────────────────────────────╮
00:01:06 #6883 [Verbose] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:01:06 #6884 [Verbose] > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480" │
00:01:06 #6885 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:01:06 #6886 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:01:06 #6887 [Verbose] > │ stroke="none"/> │
00:01:06 #6888 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:01:06 #6889 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:01:06 #6890 [Verbose] > │ fill="#FFFFFF"> │
00:01:06 #6891 [Verbose] > │ wave │
00:01:06 #6892 [Verbose] > │ </text> │
00:01:06 #6893 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:01:06 #6894 [Verbose] > │ y2="75"/> │
00:01:06 #6895 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:01:06 #6896 [Verbose] > │ y2="75"/> │
00:01:06 #6897 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:01:06 #6898 [Verbose] > │ y2="75"/> │
00:01:06 #6899 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" │
00:01:06 #6900 [Verbose] > │ x2="85... │
00:01:06 #6901 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 #6902 [Verbose] >
00:01:06 #6903 [Verbose] > ╭─[ 8.52s - stdout ]───────────────────────────────────────────────────────────╮
00:01:06 #6904 [Verbose] > │ type UH0 = │
00:01:06 #6905 [Verbose] > │ | UH0_0 of float * (unit -> UH0) │
00:01:06 #6906 [Verbose] > │ | UH0_1 │
00:01:06 #6907 [Verbose] > │ and UH1 = │
00:01:06 #6908 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:01:06 #6909 [Verbose] > │ * float * (unit -> UH1) │
00:01:06 #6910 [Verbose] > │ | UH1_1 │
00:01:06 #6911 [Verbose] > │ and UH2 = │
00:01:06 #6912 [Verbose] > │ | UH2_0 of (float []) * (float []) * (unit -> UH2) │
00:01:06 #6913 [Verbose] > │ | UH2_1 │
00:01:06 #6914 [Verbose] > │ and UH3 = │
00:01:06 #6915 [Verbose] > │ | UH3_0 of float * float * float * float * float * float * float * float │
00:01:06 #6916 [Verbose] > │ * float * (unit -> UH3) │
00:01:06 #6917 [Verbose] > │ | UH3_1 │
00:01:06 #6918 [Verbose] > │ and [<Struct>] US0 = │
00:01:06 #6919 [Verbose] > │ | US0_0 of f0_0 : UH1 │
00:01:06 #6920 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH1) │
00:01:06 #6921 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:01:06 #6922 [Verbose] > │ and [<Struct>] US1 = │
00:01:06 #6923 [Verbose] > │ | US1_0 of f0_0 : int32 * f0_1 : (struct (float * float * float * float │
00:01:06 #6924 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float)) │
00:01:06 #6925 [Verbose] > │ | US1_1 of f1_0 : int32 * f1_1 : int32 * f1_2 : (struct (float * float * │
00:01:06 #6926 [Verbose] > │ float * float * float * float * float * float * float) -> (struct (float * │
00:01:06 #6927 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct │
00:01:06 #6928 [Verbose] > │ (float * float * float))) │
00:01:06 #6929 [Verbose] > │ and UH4 = │
00:01:06 #6930 [Verbose] > │ | UH4_0 of US1 * UH4 │
00:01:06 #6931 [Verbose] > │ | UH4_1 │
00:01:06 #6932 [Verbose] > │ and UH5 = │
00:01:06 #6933 [Verbose] > │ | UH5_0 of int32 * float * float * float * float * float * float * float │
00:01:06 #6934 [Verbose] > │ * float * float * (unit -> UH5) │
00:01:06 #6935 [Verbose] > │ | UH5_1 │
00:01:06 #6936 [Verbose] > │ and UH6 = │
00:01:06 #6937 [Verbose] > │ | UH6_0 of (struct (float * float * float * float * float * float * │
00:01:06 #6938 [Verbose] > │ float * float * float) -> struct (float * float * float)) * UH6 │
00:01:06 #6939 [Verbose] > │ | UH6_1 │
00:01:06 #6940 [Verbose] > │ and [<Struct>] US2 = │
00:01:06 #6941 [Verbose] > │ | US2_0 │
00:01:06 #6942 [Verbose] > │ | US2_1 of f1_0 : (struct (float * float * float * float * float * float │
00:01:06 #6943 [Verbose] > │ * float * float * float) -> struct (float * float * float)) │
00:01:06 #6944 [Verbose] > │ and [<Struct>] US3 = │
00:01:06 #6945 [Verbose] > │ | US3_0 │
00:01:06 #6946 [Verbose] > │ | US3_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:01:06 #6947 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:01:06 #6948 [Verbose] > │ and UH7 = │
00:01:06 #6949 [Verbose] > │ | UH7_0 of float * float * float * UH7 │
00:01:06 #6950 [Verbose] > │ | UH7_1 │
00:01:06 #6951 [Verbose] > │ and UH8 = │
00:01:06 #6952 [Verbose] > │ | UH8_0 of UH1 * (unit -> UH8) │
00:01:06 #6953 [Verbose] > │ | UH8_1 │
00:01:06 #6954 [Verbose] > │ and [<Struct>] US4 = │
00:01:06 #6955 [Verbose] > │ | US4_0 │
00:01:06 #6956 [Verbose] > │ | US4_1 of f1_0 : UH1 │
00:01:06 #6957 [Verbose] > │ and UH9 = │
00:01:06 #6958 [Verbose] > │ | UH9_0 of float * float * float * (unit -> UH9) │
00:01:06 #6959 [Verbose] > │ | UH9_1 │
00:01:06 #6960 [Verbose] > │ and UH10 = │
00:01:06 #6961 [Verbose] > │ | UH10_0 of float * float * UH10 │
00:01:06 #6962 [Verbose] > │ | UH10_1 │
00:01:06 #6963 [Verbose] > │ and UH11 = │
00:01:06 #6964 [Verbose] > │ | UH11_0 of float * float * (unit -> UH11) │
00:01:06 #6965 [Verbose] > │ | UH11_1 │
00:01:06 #6966 [Verbose] > │ and UH12 = │
00:01:06 #6967 [Verbose] > │ | UH12_0 of float * UH12 │
00:01:06 #6968 [Verbose] > │ | UH12_1 │
00:01:06 #6969 [Verbose] > │ and UH13 = │
00:01:06 #6970 [Verbose] > │ | UH13_0 of int32 * (float []) * (float []) * (unit -> UH13) │
00:01:06 #6971 [Verbose] > │ | UH13_1 │
00:01:06 #6972 [Verbose] > │ and UH14 = │
00:01:06 #6973 [Verbose] > │ | UH14_0 of string * string * string * (struct (string * (float []) * │
00:01:06 #6974 [Verbose] > │ (float [])) []) * (unit -> UH14) │
00:01:06 #6975 [Verbose] > │ | UH14_1 │
00:01:06 #6976 [Verbose] > │ and UH15 = │
00:01:06 #6977 [Verbose] > │ | UH15_0 of string * string * string * (struct (string * (float []) * │
00:01:06 #6978 [Verbose] > │ (float [])) []) * UH15 │
00:01:06 #6979 [Verbose] > │ | UH15_1 │
00:01:06 #6980 [Verbose] > │ let rec closure65 () () : UH0 = │
00:01:06 #6981 [Verbose] > │ UH0_1 │
00:01:06 #6982 [Verbose] > │ and closure64 () () : UH0 = │
00:01:06 #6983 [Verbose] > │ let v0 : (unit -> UH0) = closure65() │
00:01:06 #6984 [Verbose] > │ UH0_0(65.0, v0) │
00:01:06 #6985 [Verbose] > │ and closure63 () () : UH0 = │
00:01:06 #6986 [Verbose] > │ let v0 : (unit -> UH0) = closure64() │
00:01:06 #6987 [Verbose] > │ UH0_0(64.0, v0) │
00:01:06 #6988 [Verbose] > │ and closure62 () () : UH0 = │
00:01:06 #6989 [Verbose] > │ let v0 : (unit -> UH0) = closure63() │
00:01:06 #6990 [Verbose] > │ UH0_0(63.0, v0) │
00:01:06 #6991 [Verbose] > │ and closure61 () () : UH0 = │
00:01:06 #6992 [Verbose] > │ let v0 : (unit -> UH0) = closure62() │
00:01:06 #6993 [Verbose] > │ UH0_0(62.0, v0) │
00:01:06 #6994 [Verbose] > │ and closure60 () () : UH0 = │
00:01:06 #6995 [Verbose] > │ let v0 : (unit -> UH0) = closure61() │
00:01:06 #6996 [Verbose] > │ UH0_0(61.0, v0) │
00:01:06 #6997 [Verbose] > │ and closure59 () () : UH0 = │
00:01:06 #6998 [Verbose] > │ let v0 : (unit -> UH0) = closure60() │
00:01:06 #6999 [Verbose] > │ UH0_0(60.0, v0) │
00:01:06 #7000 [Verbose] > │ and closure58 () () : UH0 = │
00:01:06 #7001 [Verbose] > │ let v0 : (unit -> UH0) = closure59() │
00:01:06 #7002 [Verbose] > │ UH0_0(59.0, v0) │
00:01:06 #7003 [Verbose] > │ and closure57 () () : UH0 = │
00:01:06 #7004 [Verbose] > │ let v0 : (unit -> UH0) = closure58() │
00:01:06 #7005 [Verbose] > │ UH0_0(58.0, v0) │
00:01:06 #7006 [Verbose] > │ and closure56 () () : UH0 = │
00:01:06 #7007 [Verbose] > │ let v0 : (unit -> UH0) = closure57() │
00:01:06 #7008 [Verbose] > │ UH0_0(57.0, v0) │
00:01:06 #7009 [Verbose] > │ and closure55 () () : UH0 = │
00:01:06 #7010 [Verbose] > │ let v0 : (unit -> UH0) = closure56() │
00:01:06 #7011 [Verbose] > │ UH0_0(56.0, v0) │
00:01:06 #7012 [Verbose] > │ and closure54 () () : UH0 = │
00:01:06 #7013 [Verbose] > │ let v0 : (unit -> UH0) = closure55() │
00:01:06 #7014 [Verbose] > │ UH0_0(55.0, v0) │
00:01:06 #7015 [Verbose] > │ and closure53 () () : UH0 = │
00:01:06 #7016 [Verbose] > │ let v0 : (unit -> UH0) = closure54() │
00:01:06 #7017 [Verbose] > │ UH0_0(54.0, v0) │
00:01:06 #7018 [Verbose] > │ and closure52 () () : UH0 = │
00:01:06 #7019 [Verbose] > │ let v0 : (unit -> UH0) = closure53() │
00:01:06 #7020 [Verbose] > │ UH0_0(53.0, v0) │
00:01:06 #7021 [Verbose] > │ and closure51 () () : UH0 = │
00:01:06 #7022 [Verbose] > │ let v0 : (unit -> UH0) = closure52() │
00:01:06 #7023 [Verbose] > │ UH0_0(52.0, v0) │
00:01:06 #7024 [Verbose] > │ and closure50 () () : UH0 = │
00:01:06 #7025 [Verbose] > │ let v0 : (unit -> UH0) = closure51() │
00:01:06 #7026 [Verbose] > │ UH0_0(51.0, v0) │
00:01:06 #7027 [Verbose] > │ and closure49 () () : UH0 = │
00:01:06 #7028 [Verbose] > │ let v0 : (unit -> UH0) = closure50() │
00:01:06 #7029 [Verbose] > │ UH0_0(50.0, v0) │
00:01:06 #7030 [Verbose] > │ and closure48 () () : UH0 = │
00:01:06 #7031 [Verbose] > │ let v0 : (unit -> UH0) = closure49() │
00:01:06 #7032 [Verbose] > │ UH0_0(49.0, v0) │
00:01:06 #7033 [Verbose] > │ and closure47 () () : UH0 = │
00:01:06 #7034 [Verbose] > │ let v0 : (unit -> UH0) = closure48() │
00:01:06 #7035 [Verbose] > │ UH0_0(48.0, v0) │
00:01:06 #7036 [Verbose] > │ and closure46 () () : UH0 = │
00:01:06 #7037 [Verbose] > │ let v0 : (unit -> UH0) = closure47() │
00:01:06 #7038 [Verbose] > │ UH0_0(47.0, v0) │
00:01:06 #7039 [Verbose] > │ and closure45 () () : UH0 = │
00:01:06 #7040 [Verbose] > │ let v0 : (unit -> UH0) = closure46() │
00:01:06 #7041 [Verbose] > │ UH0_0(46.0, v0) │
00:01:06 #7042 [Verbose] > │ and closure44 () () : UH0 = │
00:01:06 #7043 [Verbose] > │ let v0 : (unit -> UH0) = closure45() │
00:01:06 #7044 [Verbose] > │ UH0_0(45.0, v0) │
00:01:06 #7045 [Verbose] > │ and closure43 () () : UH0 = │
00:01:06 #7046 [Verbose] > │ let v0 : (unit -> UH0) = closure44() │
00:01:06 #7047 [Verbose] > │ UH0_0(44.0, v0) │
00:01:06 #7048 [Verbose] > │ and closure42 () () : UH0 = │
00:01:06 #7049 [Verbose] > │ let v0 : (unit -> UH0) = closure43() │
00:01:06 #7050 [Verbose] > │ UH0_0(43.0, v0) │
00:01:06 #7051 [Verbose] > │ and closure41 () () : UH0 = │
00:01:06 #7052 [Verbose] > │ let v0 : (unit -> UH0) = closure42() │
00:01:06 #7053 [Verbose] > │ UH0_0(42.0, v0) │
00:01:06 #7054 [Verbose] > │ and closure40 () () : UH0 = │
00:01:06 #7055 [Verbose] > │ let v0 : (unit -> UH0) = closure41() │
00:01:06 #7056 [Verbose] > │ UH0_0(41.0, v0) │
00:01:06 #7057 [Verbose] > │ and closure39 () () : UH0 = │
00:01:06 #7058 [Verbose] > │ let v0 : (unit -> UH0) = closure40() │
00:01:06 #7059 [Verbose] > │ UH0_0(40.0, v0) │
00:01:06 #7060 [Verbose] > │ and closure38 () () : UH0 = │
00:01:06 #7061 [Verbose] > │ let v0 : (unit -> UH0) = closure39() │
00:01:06 #7062 [Verbose] > │ UH0_0(39.0, v0) │
00:01:06 #7063 [Verbose] > │ and closure37 () () : UH0 = │
00:01:06 #7064 [Verbose] > │ let v0 : (unit -> UH0) = closure38() │
00:01:06 #7065 [Verbose] > │ UH0_0(38.0, v0) │
00:01:06 #7066 [Verbose] > │ and closure36 () () : UH0 = │
00:01:06 #7067 [Verbose] > │ let v0 : (unit -> UH0) = closure37() │
00:01:06 #7068 [Verbose] > │ UH0_0(37.0, v0) │
00:01:06 #7069 [Verbose] > │ and closure35 () () : UH0 = │
00:01:06 #7070 [Verbose] > │ let v0 : (unit -> UH0) = closure36() │
00:01:06 #7071 [Verbose] > │ UH0_0(36.0, v0) │
00:01:06 #7072 [Verbose] > │ and closure34 () () : UH0 = │
00:01:06 #7073 [Verbose] > │ let v0 : (unit -> UH0) = closure35() │
00:01:06 #7074 [Verbose] > │ UH0_0(35.0, v0) │
00:01:06 #7075 [Verbose] > │ and closure33 () () : UH0 = │
00:01:06 #7076 [Verbose] > │ let v0 : (unit -> UH0) = closure34() │
00:01:06 #7077 [Verbose] > │ UH0_0(34.0, v0) │
00:01:06 #7078 [Verbose] > │ and closure32 () () : UH0 = │
00:01:06 #7079 [Verbose] > │ let v0 : (unit -> UH0) = closure33() │
00:01:06 #7080 [Verbose] > │ UH0_0(33.0, v0) │
00:01:06 #7081 [Verbose] > │ and closure31 () () : UH0 = │
00:01:06 #7082 [Verbose] > │ let v0 : (unit -> UH0) = closure32() │
00:01:06 #7083 [Verbose] > │ UH0_0(32.0, v0) │
00:01:06 #7084 [Verbose] > │ and closure30 () () : UH0 = │
00:01:06 #7085 [Verbose] > │ let v0 : (unit -> UH0) = closure31() │
00:01:06 #7086 [Verbose] > │ UH0_0(31.0, v0) │
00:01:06 #7087 [Verbose] > │ and closure29 () () : UH0 = │
00:01:06 #7088 [Verbose] > │ let v0 : (unit -> UH0) = closure30() │
00:01:06 #7089 [Verbose] > │ UH0_0(30.0, v0) │
00:01:06 #7090 [Verbose] > │ and closure28 () () : UH0 = │
00:01:06 #7091 [Verbose] > │ let v0 : (unit -> UH0) = closure29() │
00:01:06 #7092 [Verbose] > │ UH0_0(29.0, v0) │
00:01:06 #7093 [Verbose] > │ and closure27 () () : UH0 = │
00:01:06 #7094 [Verbose] > │ let v0 : (unit -> UH0) = closure28() │
00:01:06 #7095 [Verbose] > │ UH0_0(28.0, v0) │
00:01:06 #7096 [Verbose] > │ and closure26 () () : UH0 = │
00:01:06 #7097 [Verbose] > │ let v0 : (unit -> UH0) = closure27() │
00:01:06 #7098 [Verbose] > │ UH0_0(27.0, v0) │
00:01:06 #7099 [Verbose] > │ and closure25 () () : UH0 = │
00:01:06 #7100 [Verbose] > │ let v0 : (unit -> UH0) = closure26() │
00:01:06 #7101 [Verbose] > │ UH0_0(26.0, v0) │
00:01:06 #7102 [Verbose] > │ and closure24 () () : UH0 = │
00:01:06 #7103 [Verbose] > │ let v0 : (unit -> UH0) = closure25() │
00:01:06 #7104 [Verbose] > │ UH0_0(25.0, v0) │
00:01:06 #7105 [Verbose] > │ and closure23 () () : UH0 = │
00:01:06 #7106 [Verbose] > │ let v0 : (unit -> UH0) = closure24() │
00:01:06 #7107 [Verbose] > │ UH0_0(24.0, v0) │
00:01:06 #7108 [Verbose] > │ and closure22 () () : UH0 = │
00:01:06 #7109 [Verbose] > │ let v0 : (unit -> UH0) = closure23() │
00:01:06 #7110 [Verbose] > │ UH0_0(23.0, v0) │
00:01:06 #7111 [Verbose] > │ and closure21 () () : UH0 = │
00:01:06 #7112 [Verbose] > │ let v0 : (unit -> UH0) = closure22() │
00:01:06 #7113 [Verbose] > │ UH0_0(22.0, v0) │
00:01:06 #7114 [Verbose] > │ and closure20 () () : UH0 = │
00:01:06 #7115 [Verbose] > │ let v0 : (unit -> UH0) = closure21() │
00:01:06 #7116 [Verbose] > │ UH0_0(21.0, v0) │
00:01:06 #7117 [Verbose] > │ and closure19 () () : UH0 = │
00:01:06 #7118 [Verbose] > │ let v0 : (unit -> UH0) = closure20() │
00:01:06 #7119 [Verbose] > │ UH0_0(20.0, v0) │
00:01:06 #7120 [Verbose] > │ and closure18 () () : UH0 = │
00:01:06 #7121 [Verbose] > │ let v0 : (unit -> UH0) = closure19() │
00:01:06 #7122 [Verbose] > │ UH0_0(19.0, v0) │
00:01:06 #7123 [Verbose] > │ and closure17 () () : UH0 = │
00:01:06 #7124 [Verbose] > │ let v0 : (unit -> UH0) = closure18() │
00:01:06 #7125 [Verbose] > │ UH0_0(18.0, v0) │
00:01:06 #7126 [Verbose] > │ and closure16 () () : UH0 = │
00:01:06 #7127 [Verbose] > │ let v0 : (unit -> UH0) = closure17() │
00:01:06 #7128 [Verbose] > │ UH0_0(17.0, v0) │
00:01:06 #7129 [Verbose] > │ and closure15 () () : UH0 = │
00:01:06 #7130 [Verbose] > │ let v0 : (unit -> UH0) = closure16() │
00:01:06 #7131 [Verbose] > │ UH0_0(16.0, v0) │
00:01:06 #7132 [Verbose] > │ and closure14 () () : UH0 = │
00:01:06 #7133 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:01:06 #7134 [Verbose] > │ UH0_0(15.0, v0) │
00:01:06 #7135 [Verbose] > │ and closure13 () () : UH0 = │
00:01:06 #7136 [Verbose] > │ let v0 : (unit -> UH0) = closure14() │
00:01:06 #7137 [Verbose] > │ UH0_0(14.0, v0) │
00:01:06 #7138 [Verbose] > │ and closure12 () () : UH0 = │
00:01:06 #7139 [Verbose] > │ let v0 : (unit -> UH0) = closure13() │
00:01:06 #7140 [Verbose] > │ UH0_0(13.0, v0) │
00:01:06 #7141 [Verbose] > │ and closure11 () () : UH0 = │
00:01:06 #7142 [Verbose] > │ let v0 : (unit -> UH0) = closure12() │
00:01:06 #7143 [Verbose] > │ UH0_0(12.0, v0) │
00:01:06 #7144 [Verbose] > │ and closure10 () () : UH0 = │
00:01:06 #7145 [Verbose] > │ let v0 : (unit -> UH0) = closure11() │
00:01:06 #7146 [Verbose] > │ UH0_0(11.0, v0) │
00:01:06 #7147 [Verbose] > │ and closure9 () () : UH0 = │
00:01:06 #7148 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:01:06 #7149 [Verbose] > │ UH0_0(10.0, v0) │
00:01:06 #7150 [Verbose] > │ and closure8 () () : UH0 = │
00:01:06 #7151 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:01:06 #7152 [Verbose] > │ UH0_0(9.0, v0) │
00:01:06 #7153 [Verbose] > │ and closure7 () () : UH0 = │
00:01:06 #7154 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:01:06 #7155 [Verbose] > │ UH0_0(8.0, v0) │
00:01:06 #7156 [Verbose] > │ and closure6 () () : UH0 = │
00:01:06 #7157 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:01:06 #7158 [Verbose] > │ UH0_0(7.0, v0) │
00:01:06 #7159 [Verbose] > │ and closure5 () () : UH0 = │
00:01:06 #7160 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:01:06 #7161 [Verbose] > │ UH0_0(6.0, v0) │
00:01:06 #7162 [Verbose] > │ and closure4 () () : UH0 = │
00:01:06 #7163 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:01:06 #7164 [Verbose] > │ UH0_0(5.0, v0) │
00:01:06 #7165 [Verbose] > │ and closure3 () () : UH0 = │
00:01:06 #7166 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:01:06 #7167 [Verbose] > │ UH0_0(4.0, v0) │
00:01:06 #7168 [Verbose] > │ and closure2 () () : UH0 = │
00:01:06 #7169 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:01:06 #7170 [Verbose] > │ UH0_0(3.0, v0) │
00:01:06 #7171 [Verbose] > │ and closure1 () () : UH0 = │
00:01:06 #7172 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:01:06 #7173 [Verbose] > │ UH0_0(2.0, v0) │
00:01:06 #7174 [Verbose] > │ and closure0 () () : UH0 = │
00:01:06 #7175 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:01:06 #7176 [Verbose] > │ UH0_0(1.0, v0) │
00:01:06 #7177 [Verbose] > │ and closure129 () () : UH1 = │
00:01:06 #7178 [Verbose] > │ UH1_1 │
00:01:06 #7179 [Verbose] > │ and closure128 () () : UH1 = │
00:01:06 #7180 [Verbose] > │ let v0 : (unit -> UH1) = closure129() │
00:01:06 #7181 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.64, 0.0007224452478461016, 0.0, 0.0, 0.0, │
00:01:06 #7182 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7183 [Verbose] > │ and closure127 () () : UH1 = │
00:01:06 #7184 [Verbose] > │ let v0 : (unit -> UH1) = closure128() │
00:01:06 #7185 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.63, 0.001429728391993452, 0.0, 0.0, 0.0, │
00:01:06 #7186 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7187 [Verbose] > │ and closure126 () () : UH1 = │
00:01:06 #7188 [Verbose] > │ let v0 : (unit -> UH1) = closure127() │
00:01:06 #7189 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.62, 0.0021070055388626528, 0.0, 0.0, 0.0, │
00:01:06 #7190 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7191 [Verbose] > │ and closure125 () () : UH1 = │
00:01:06 #7192 [Verbose] > │ let v0 : (unit -> UH1) = closure126() │
00:01:06 #7193 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.61, 0.0027400625367733585, 0.0, 0.0, 0.0, │
00:01:06 #7194 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7195 [Verbose] > │ and closure124 () () : UH1 = │
00:01:06 #7196 [Verbose] > │ let v0 : (unit -> UH1) = closure125() │
00:01:06 #7197 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.6, 0.0033156132912039783, 0.0, 0.0, 0.0, │
00:01:06 #7198 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7199 [Verbose] > │ and closure123 () () : UH1 = │
00:01:06 #7200 [Verbose] > │ let v0 : (unit -> UH1) = closure124() │
00:01:06 #7201 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.59, 0.003821578602729245, 0.0, 0.0, 0.0, │
00:01:06 #7202 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7203 [Verbose] > │ and closure122 () () : UH1 = │
00:01:06 #7204 [Verbose] > │ let v0 : (unit -> UH1) = closure123() │
00:01:06 #7205 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5800000000000001, 0.004247339675607605, │
00:01:06 #7206 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7207 [Verbose] > │ and closure121 () () : UH1 = │
00:01:06 #7208 [Verbose] > │ let v0 : (unit -> UH1) = closure122() │
00:01:06 #7209 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5700000000000001, 0.004583960976582912, │
00:01:06 #7210 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7211 [Verbose] > │ and closure120 () () : UH1 = │
00:01:06 #7212 [Verbose] > │ let v0 : (unit -> UH1) = closure121() │
00:01:06 #7213 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.56, 0.004824377766717758, 0.0, 0.0, 0.0, │
00:01:06 #7214 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7215 [Verbose] > │ and closure119 () () : UH1 = │
00:01:06 #7216 [Verbose] > │ let v0 : (unit -> UH1) = closure120() │
00:01:06 #7217 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.55, 0.004963544370490271, 0.0, 0.0, 0.0, │
00:01:06 #7218 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7219 [Verbose] > │ and closure118 () () : UH1 = │
00:01:06 #7220 [Verbose] > │ let v0 : (unit -> UH1) = closure119() │
00:01:06 #7221 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.54, 0.004998540070400965, 0.0, 0.0, 0.0, │
00:01:06 #7222 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7223 [Verbose] > │ and closure117 () () : UH1 = │
00:01:06 #7224 [Verbose] > │ let v0 : (unit -> UH1) = closure118() │
00:01:06 #7225 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.53, 0.004928630404658255, 0.0, 0.0, 0.0, │
00:01:06 #7226 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7227 [Verbose] > │ and closure116 () () : UH1 = │
00:01:06 #7228 [Verbose] > │ let v0 : (unit -> UH1) = closure117() │
00:01:06 #7229 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.52, 0.004755282581475766, 0.0, 0.0, 0.0, │
00:01:06 #7230 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7231 [Verbose] > │ and closure115 () () : UH1 = │
00:01:06 #7232 [Verbose] > │ let v0 : (unit -> UH1) = closure116() │
00:01:06 #7233 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.51, 0.0044821346864785195, 0.0, 0.0, 0.0, │
00:01:06 #7234 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7235 [Verbose] > │ and closure114 () () : UH1 = │
00:01:06 #7236 [Verbose] > │ let v0 : (unit -> UH1) = closure115() │
00:01:06 #7237 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5, 0.0041149193294682815, 0.0, 0.0, 0.0, │
00:01:06 #7238 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7239 [Verbose] > │ and closure113 () () : UH1 = │
00:01:06 #7240 [Verbose] > │ let v0 : (unit -> UH1) = closure114() │
00:01:06 #7241 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.49, 0.0036613433329888622, 0.0, 0.0, 0.0, │
00:01:06 #7242 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7243 [Verbose] > │ and closure112 () () : UH1 = │
00:01:06 #7244 [Verbose] > │ let v0 : (unit -> UH1) = closure113() │
00:01:06 #7245 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.48000000000000004, 0.003130925987691568, │
00:01:06 #7246 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7247 [Verbose] > │ and closure111 () () : UH1 = │
00:01:06 #7248 [Verbose] > │ let v0 : (unit -> UH1) = closure112() │
00:01:06 #7249 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.47000000000000003, 0.002534799269067953, │
00:01:06 #7250 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7251 [Verbose] > │ and closure110 () () : UH1 = │
00:01:06 #7252 [Verbose] > │ let v0 : (unit -> UH1) = closure111() │
00:01:06 #7253 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.46, 0.0018854742084416021, 0.0, 0.0, 0.0, │
00:01:06 #7254 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7255 [Verbose] > │ and closure109 () () : UH1 = │
00:01:06 #7256 [Verbose] > │ let v0 : (unit -> UH1) = closure110() │
00:01:06 #7257 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.45, 0.0011965783214377866, 0.0, 0.0, 0.0, │
00:01:06 #7258 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7259 [Verbose] > │ and closure108 () () : UH1 = │
00:01:06 #7260 [Verbose] > │ let v0 : (unit -> UH1) = closure109() │
00:01:06 #7261 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.44, 0.0004825696045725713, 0.0, 0.0, 0.0, │
00:01:06 #7262 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7263 [Verbose] > │ and closure107 () () : UH1 = │
00:01:06 #7264 [Verbose] > │ let v0 : (unit -> UH1) = closure108() │
00:01:06 #7265 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.43, -0.00024156689762753724, 0.0, 0.0, │
00:01:06 #7266 [Verbose] > │ 0.0, 0.0, 0.0, v0) │
00:01:06 #7267 [Verbose] > │ and closure106 () () : UH1 = │
00:01:06 #7268 [Verbose] > │ let v0 : (unit -> UH1) = closure107() │
00:01:06 #7269 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.42000000000000004, -0.0009606335867685414, │
00:01:06 #7270 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7271 [Verbose] > │ and closure105 () () : UH1 = │
00:01:06 #7272 [Verbose] > │ let v0 : (unit -> UH1) = closure106() │
00:01:06 #7273 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.41000000000000003, -0.0016595392656426435, │
00:01:06 #7274 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7275 [Verbose] > │ and closure104 () () : UH1 = │
00:01:06 #7276 [Verbose] > │ let v0 : (unit -> UH1) = closure105() │
00:01:06 #7277 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.4, -0.002323615860218846, 0.0, 0.0, 0.0, │
00:01:06 #7278 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7279 [Verbose] > │ and closure103 () () : UH1 = │
00:01:06 #7280 [Verbose] > │ let v0 : (unit -> UH1) = closure104() │
00:01:06 #7281 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.39, -0.002938926261462367, 0.0, 0.0, 0.0, │
00:01:06 #7282 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7283 [Verbose] > │ and closure102 () () : UH1 = │
00:01:06 #7284 [Verbose] > │ let v0 : (unit -> UH1) = closure103() │
00:01:06 #7285 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.38, -0.0034925568262446837, 0.0, 0.0, 0.0, │
00:01:06 #7286 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7287 [Verbose] > │ and closure101 () () : UH1 = │
00:01:06 #7288 [Verbose] > │ let v0 : (unit -> UH1) = closure102() │
00:01:06 #7289 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.37, -0.003972888398568774, 0.0, 0.0, 0.0, │
00:01:06 #7290 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7291 [Verbose] > │ and closure100 () () : UH1 = │
00:01:06 #7292 [Verbose] > │ let v0 : (unit -> UH1) = closure101() │
00:01:06 #7293 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.36000000000000004, -0.004369840163132589, │
00:01:06 #7294 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7295 [Verbose] > │ and closure99 () () : UH1 = │
00:01:06 #7296 [Verbose] > │ let v0 : (unit -> UH1) = closure100() │
00:01:06 #7297 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.35000000000000003, -0.004675081213427074, │
00:01:06 #7298 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7299 [Verbose] > │ and closure98 () () : UH1 = │
00:01:06 #7300 [Verbose] > │ let v0 : (unit -> UH1) = closure99() │
00:01:06 #7301 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.34, -0.004882205394146361, 0.0, 0.0, 0.0, │
00:01:06 #7302 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7303 [Verbose] > │ and closure97 () () : UH1 = │
00:01:06 #7304 [Verbose] > │ let v0 : (unit -> UH1) = closure98() │
00:01:06 #7305 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.33, -0.004986865748457456, 0.0, 0.0, 0.0, │
00:01:06 #7306 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7307 [Verbose] > │ and closure96 () () : UH1 = │
00:01:06 #7308 [Verbose] > │ let v0 : (unit -> UH1) = closure97() │
00:01:06 #7309 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.32, -0.004986865748457456, 0.0, 0.0, 0.0, │
00:01:06 #7310 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7311 [Verbose] > │ and closure95 () () : UH1 = │
00:01:06 #7312 [Verbose] > │ let v0 : (unit -> UH1) = closure96() │
00:01:06 #7313 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.31, -0.004882205394146359, 0.0, 0.0, 0.0, │
00:01:06 #7314 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7315 [Verbose] > │ and closure94 () () : UH1 = │
00:01:06 #7316 [Verbose] > │ let v0 : (unit -> UH1) = closure95() │
00:01:06 #7317 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.3, -0.004675081213427074, 0.0, 0.0, 0.0, │
00:01:06 #7318 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7319 [Verbose] > │ and closure93 () () : UH1 = │
00:01:06 #7320 [Verbose] > │ let v0 : (unit -> UH1) = closure94() │
00:01:06 #7321 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.29000000000000004, -0.00436984016313259, │
00:01:06 #7322 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7323 [Verbose] > │ and closure92 () () : UH1 = │
00:01:06 #7324 [Verbose] > │ let v0 : (unit -> UH1) = closure93() │
00:01:06 #7325 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.28, -0.003972888398568771, 0.0, 0.0, 0.0, │
00:01:06 #7326 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7327 [Verbose] > │ and closure91 () () : UH1 = │
00:01:06 #7328 [Verbose] > │ let v0 : (unit -> UH1) = closure92() │
00:01:06 #7329 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.27, -0.003492556826244686, 0.0, 0.0, 0.0, │
00:01:06 #7330 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7331 [Verbose] > │ and closure90 () () : UH1 = │
00:01:06 #7332 [Verbose] > │ let v0 : (unit -> UH1) = closure91() │
00:01:06 #7333 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.26, -0.0029389262614623636, 0.0, 0.0, 0.0, │
00:01:06 #7334 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7335 [Verbose] > │ and closure89 () () : UH1 = │
00:01:06 #7336 [Verbose] > │ let v0 : (unit -> UH1) = closure90() │
00:01:06 #7337 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.25, -0.002323615860218842, 0.0, 0.0, 0.0, │
00:01:06 #7338 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7339 [Verbose] > │ and closure88 () () : UH1 = │
00:01:06 #7340 [Verbose] > │ let v0 : (unit -> UH1) = closure89() │
00:01:06 #7341 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.24000000000000002, -0.001659539265642642, │
00:01:06 #7342 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7343 [Verbose] > │ and closure87 () () : UH1 = │
00:01:06 #7344 [Verbose] > │ let v0 : (unit -> UH1) = closure88() │
00:01:06 #7345 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.23, -0.0009606335867685418, 0.0, 0.0, 0.0, │
00:01:06 #7346 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7347 [Verbose] > │ and closure86 () () : UH1 = │
00:01:06 #7348 [Verbose] > │ let v0 : (unit -> UH1) = closure87() │
00:01:06 #7349 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.22, -0.00024156689762753317, 0.0, 0.0, │
00:01:06 #7350 [Verbose] > │ 0.0, 0.0, 0.0, v0) │
00:01:06 #7351 [Verbose] > │ and closure85 () () : UH1 = │
00:01:06 #7352 [Verbose] > │ let v0 : (unit -> UH1) = closure86() │
00:01:06 #7353 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.21000000000000002, 0.00048256960457257535, │
00:01:06 #7354 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7355 [Verbose] > │ and closure84 () () : UH1 = │
00:01:06 #7356 [Verbose] > │ let v0 : (unit -> UH1) = closure85() │
00:01:06 #7357 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.2, 0.0011965783214377905, 0.0, 0.0, 0.0, │
00:01:06 #7358 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7359 [Verbose] > │ and closure83 () () : UH1 = │
00:01:06 #7360 [Verbose] > │ let v0 : (unit -> UH1) = closure84() │
00:01:06 #7361 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.19, 0.0018854742084416015, 0.0, 0.0, 0.0, │
00:01:06 #7362 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7363 [Verbose] > │ and closure82 () () : UH1 = │
00:01:06 #7364 [Verbose] > │ let v0 : (unit -> UH1) = closure83() │
00:01:06 #7365 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.18000000000000002, 0.002534799269067951, │
00:01:06 #7366 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7367 [Verbose] > │ and closure81 () () : UH1 = │
00:01:06 #7368 [Verbose] > │ let v0 : (unit -> UH1) = closure82() │
00:01:06 #7369 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.17, 0.0031309259876915697, 0.0, 0.0, 0.0, │
00:01:06 #7370 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7371 [Verbose] > │ and closure80 () () : UH1 = │
00:01:06 #7372 [Verbose] > │ let v0 : (unit -> UH1) = closure81() │
00:01:06 #7373 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.16, 0.0036613433329888666, 0.0, 0.0, 0.0, │
00:01:06 #7374 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7375 [Verbose] > │ and closure79 () () : UH1 = │
00:01:06 #7376 [Verbose] > │ let v0 : (unit -> UH1) = closure80() │
00:01:06 #7377 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.15000000000000002, 0.0041149193294682815, │
00:01:06 #7378 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7379 [Verbose] > │ and closure78 () () : UH1 = │
00:01:06 #7380 [Verbose] > │ let v0 : (unit -> UH1) = closure79() │
00:01:06 #7381 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.14, 0.004482134686478519, 0.0, 0.0, 0.0, │
00:01:06 #7382 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7383 [Verbose] > │ and closure77 () () : UH1 = │
00:01:06 #7384 [Verbose] > │ let v0 : (unit -> UH1) = closure78() │
00:01:06 #7385 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.13, 0.004755282581475768, 0.0, 0.0, 0.0, │
00:01:06 #7386 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7387 [Verbose] > │ and closure76 () () : UH1 = │
00:01:06 #7388 [Verbose] > │ let v0 : (unit -> UH1) = closure77() │
00:01:06 #7389 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.12, 0.004928630404658255, 0.0, 0.0, 0.0, │
00:01:06 #7390 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7391 [Verbose] > │ and closure75 () () : UH1 = │
00:01:06 #7392 [Verbose] > │ let v0 : (unit -> UH1) = closure76() │
00:01:06 #7393 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.11, 0.004998540070400965, 0.0, 0.0, 0.0, │
00:01:06 #7394 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7395 [Verbose] > │ and closure74 () () : UH1 = │
00:01:06 #7396 [Verbose] > │ let v0 : (unit -> UH1) = closure75() │
00:01:06 #7397 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.09999999999999999, 0.00496354437049027, │
00:01:06 #7398 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7399 [Verbose] > │ and closure73 () () : UH1 = │
00:01:06 #7400 [Verbose] > │ let v0 : (unit -> UH1) = closure74() │
00:01:06 #7401 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.09, 0.004824377766717757, 0.0, 0.0, 0.0, │
00:01:06 #7402 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7403 [Verbose] > │ and closure72 () () : UH1 = │
00:01:06 #7404 [Verbose] > │ let v0 : (unit -> UH1) = closure73() │
00:01:06 #7405 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.08, 0.004583960976582912, 0.0, 0.0, 0.0, │
00:01:06 #7406 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7407 [Verbose] > │ and closure71 () () : UH1 = │
00:01:06 #7408 [Verbose] > │ let v0 : (unit -> UH1) = closure72() │
00:01:06 #7409 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.06999999999999999, 0.004247339675607605, │
00:01:06 #7410 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7411 [Verbose] > │ and closure70 () () : UH1 = │
00:01:06 #7412 [Verbose] > │ let v0 : (unit -> UH1) = closure71() │
00:01:06 #7413 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.060000000000000005, 0.0038215786027292415, │
00:01:06 #7414 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:01:06 #7415 [Verbose] > │ and closure69 () () : UH1 = │
00:01:06 #7416 [Verbose] > │ let v0 : (unit -> UH1) = closure70() │
00:01:06 #7417 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.05, 0.0033156132912039757, 0.0, 0.0, 0.0, │
00:01:06 #7418 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7419 [Verbose] > │ and closure68 () () : UH1 = │
00:01:06 #7420 [Verbose] > │ let v0 : (unit -> UH1) = closure69() │
00:01:06 #7421 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.04, 0.00274006253677335, 0.0, 0.0, 0.0, │
00:01:06 #7422 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7423 [Verbose] > │ and closure67 () () : UH1 = │
00:01:06 #7424 [Verbose] > │ let v0 : (unit -> UH1) = closure68() │
00:01:06 #7425 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.03, 0.0021070055388626454, 0.0, 0.0, 0.0, │
00:01:06 #7426 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7427 [Verbose] > │ and closure66 () () : UH1 = │
00:01:06 #7428 [Verbose] > │ let v0 : (unit -> UH1) = closure67() │
00:01:06 #7429 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.02, 0.0014297283919934465, 0.0, 0.0, 0.0, │
00:01:06 #7430 [Verbose] > │ 0.0, 0.0, v0) │
00:01:06 #7431 [Verbose] > │ and closure132 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:01:06 #7432 [Verbose] > │ let v2 : UH3 = v1 () │
00:01:06 #7433 [Verbose] > │ let v3 : UH1 = v0 () │
00:01:06 #7434 [Verbose] > │ match v2 with │
00:01:06 #7435 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:01:06 #7436 [Verbose] > │ match v3 with │
00:01:06 #7437 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:01:06 #7438 [Verbose] > │ StreamCons *) │
00:01:06 #7439 [Verbose] > │ let v24 : float = v9 * 1.25E-05 │
00:01:06 #7440 [Verbose] > │ let v25 : float = v19 + v24 │
00:01:06 #7441 [Verbose] > │ let v26 : float = 1.25E-05 * v6 │
00:01:06 #7442 [Verbose] > │ let v27 : float = 1.25E-05 * v7 │
00:01:06 #7443 [Verbose] > │ let v28 : float = 1.25E-05 * v8 │
00:01:06 #7444 [Verbose] > │ let v29 : float = v16 + v26 │
00:01:06 #7445 [Verbose] > │ let v30 : float = v17 + v27 │
00:01:06 #7446 [Verbose] > │ let v31 : float = v18 + v28 │
00:01:06 #7447 [Verbose] > │ let v32 : float = 1.25E-05 * v10 │
00:01:06 #7448 [Verbose] > │ let v33 : float = 1.25E-05 * v11 │
00:01:06 #7449 [Verbose] > │ let v34 : float = 1.25E-05 * v12 │
00:01:06 #7450 [Verbose] > │ let v35 : float = v20 + v32 │
00:01:06 #7451 [Verbose] > │ let v36 : float = v21 + v33 │
00:01:06 #7452 [Verbose] > │ let v37 : float = v22 + v34 │
00:01:06 #7453 [Verbose] > │ let v38 : (unit -> UH1) = closure132(v23, v13) │
00:01:06 #7454 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:01:06 #7455 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:06 #7456 [Verbose] > │ UH1_1 │
00:01:06 #7457 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:06 #7458 [Verbose] > │ UH1_1 │
00:01:06 #7459 [Verbose] > │ and closure133 (v0 : UH1) () : UH1 = │
00:01:06 #7460 [Verbose] > │ v0 │
00:01:06 #7461 [Verbose] > │ and closure134 (v0 : UH1, v1 : Mut0) () : UH1 = │
00:01:06 #7462 [Verbose] > │ let v2 : US0 = v1.l0 │
00:01:06 #7463 [Verbose] > │ match v2 with │
00:01:06 #7464 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:01:06 #7465 [Verbose] > │ v3 │
00:01:06 #7466 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:01:06 #7467 [Verbose] > │ let v5 : UH1 = v4 () │
00:01:06 #7468 [Verbose] > │ let v20 : UH1 = │
00:01:06 #7469 [Verbose] > │ match v5 with │
00:01:06 #7470 [Verbose] > │ | UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (* │
00:01:06 #7471 [Verbose] > │ StreamCons *) │
00:01:06 #7472 [Verbose] > │ let v17 : (unit -> UH1) = method3(v0, v16) │
00:01:06 #7473 [Verbose] > │ UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17) │
00:01:06 #7474 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:06 #7475 [Verbose] > │ UH1_1 │
00:01:06 #7476 [Verbose] > │ let v21 : US0 = US0_0(v20) │
00:01:06 #7477 [Verbose] > │ v1.l0 <- v21 │
00:01:06 #7478 [Verbose] > │ v20 │
00:01:06 #7479 [Verbose] > │ and method3 (v0 : UH1, v1 : (unit -> UH1)) : (unit -> UH1) = │
00:01:06 #7480 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:01:06 #7481 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:01:06 #7482 [Verbose] > │ closure134(v0, v3) │
00:01:06 #7483 [Verbose] > │ and closure135 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:01:06 #7484 [Verbose] > │ let v2 : UH3 = v1 () │
00:01:06 #7485 [Verbose] > │ let v3 : UH1 = v0 () │
00:01:06 #7486 [Verbose] > │ match v2 with │
00:01:06 #7487 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:01:06 #7488 [Verbose] > │ match v3 with │
00:01:06 #7489 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:01:06 #7490 [Verbose] > │ StreamCons *) │
00:01:06 #7491 [Verbose] > │ let v24 : float = v9 * 2.5E-05 │
00:01:06 #7492 [Verbose] > │ let v25 : float = v19 + v24 │
00:01:06 #7493 [Verbose] > │ let v26 : float = 2.5E-05 * v6 │
00:01:06 #7494 [Verbose] > │ let v27 : float = 2.5E-05 * v7 │
00:01:06 #7495 [Verbose] > │ let v28 : float = 2.5E-05 * v8 │
00:01:06 #7496 [Verbose] > │ let v29 : float = v16 + v26 │
00:01:06 #7497 [Verbose] > │ let v30 : float = v17 + v27 │
00:01:06 #7498 [Verbose] > │ let v31 : float = v18 + v28 │
00:01:06 #7499 [Verbose] > │ let v32 : float = 2.5E-05 * v10 │
00:01:06 #7500 [Verbose] > │ let v33 : float = 2.5E-05 * v11 │
00:01:06 #7501 [Verbose] > │ let v34 : float = 2.5E-05 * v12 │
00:01:06 #7502 [Verbose] > │ let v35 : float = v20 + v32 │
00:01:06 #7503 [Verbose] > │ let v36 : float = v21 + v33 │
00:01:06 #7504 [Verbose] > │ let v37 : float = v22 + v34 │
00:01:06 #7505 [Verbose] > │ let v38 : (unit -> UH1) = closure135(v23, v13) │
00:01:06 #7506 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:01:06 #7507 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:06 #7508 [Verbose] > │ UH1_1 │
00:01:06 #7509 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:06 #7510 [Verbose] > │ UH1_1 │
00:01:06 #7511 [Verbose] > │ and closure136 (v0 : (unit -> UH3), v1 : (unit -> UH3)) () : UH3 = │
00:01:06 #7512 [Verbose] > │ let v2 : UH3 = v1 () │
00:01:06 #7513 [Verbose] > │ let v3 : UH3 = v0 () │
00:01:06 #7514 [Verbose] > │ match v2 with │
00:01:06 #7515 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:01:06 #7516 [Verbose] > │ match v3 with │
00:01:06 #7517 [Verbose] > │ | UH3_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:01:06 #7518 [Verbose] > │ StreamCons *) │
00:01:06 #7519 [Verbose] > │ let v24 : float = v4 + v14 │
00:01:06 #7520 [Verbose] > │ let v25 : float = v5 + v15 │
00:01:06 #7521 [Verbose] > │ let v26 : float = v9 + v19 │
00:01:06 #7522 [Verbose] > │ let v27 : float = v6 + v16 │
00:01:06 #7523 [Verbose] > │ let v28 : float = v7 + v17 │
00:01:06 #7524 [Verbose] > │ let v29 : float = v8 + v18 │
00:01:06 #7525 [Verbose] > │ let v30 : float = v10 + v20 │
00:01:06 #7526 [Verbose] > │ let v31 : float = v11 + v21 │
00:01:06 #7527 [Verbose] > │ let v32 : float = v12 + v22 │
00:01:06 #7528 [Verbose] > │ let v33 : (unit -> UH3) = closure136(v23, v13) │
00:01:06 #7529 [Verbose] > │ UH3_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33) │
00:01:06 #7530 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:06 #7531 [Verbose] > │ UH3_1 │
00:01:06 #7532 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:06 #7533 [Verbose] > │ UH3_1 │
00:01:06 #7534 [Verbose] > │ and closure137 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:01:06 #7535 [Verbose] > │ let v2 : UH3 = v1 () │
00:01:06 #7536 [Verbose] > │ let v3 : UH1 = v0 () │
00:01:06 #7537 [Verbose] > │ match v2 with │
00:01:06 #7538 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:01:06 #7539 [Verbose] > │ match v3 with │
00:01:06 #7540 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:01:06 #7541 [Verbose] > │ StreamCons *) │
00:01:06 #7542 [Verbose] > │ let v24 : float = v9 * 4.166666666666667E-06 │
00:01:06 #7543 [Verbose] > │ let v25 : float = v19 + v24 │
00:01:06 #7544 [Verbose] > │ let v26 : float = 4.166666666666667E-06 * v6 │
00:01:06 #7545 [Verbose] > │ let v27 : float = 4.166666666666667E-06 * v7 │
00:01:06 #7546 [Verbose] > │ let v28 : float = 4.166666666666667E-06 * v8 │
00:01:06 #7547 [Verbose] > │ let v29 : float = v16 + v26 │
00:01:06 #7548 [Verbose] > │ let v30 : float = v17 + v27 │
00:01:06 #7549 [Verbose] > │ let v31 : float = v18 + v28 │
00:01:06 #7550 [Verbose] > │ let v32 : float = 4.166666666666667E-06 * v10 │
00:01:06 #7551 [Verbose] > │ let v33 : float = 4.166666666666667E-06 * v11 │
00:01:06 #7552 [Verbose] > │ let v34 : float = 4.166666666666667E-06 * v12 │
00:01:06 #7553 [Verbose] > │ let v35 : float = v20 + v32 │
00:01:06 #7554 [Verbose] > │ let v36 : float = v21 + v33 │
00:01:06 #7555 [Verbose] > │ let v37 : float = v22 + v34 │
00:01:06 #7556 [Verbose] > │ let v38 : (unit -> UH1) = closure137(v23, v13) │
00:01:06 #7557 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:01:06 #7558 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:06 #7559 [Verbose] > │ UH1_1 │
00:01:06 #7560 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:06 #7561 [Verbose] > │ UH1_1 │
00:01:06 #7562 [Verbose] > │ and closure131 (v0 : (UH1 -> UH3)) (v1 : UH1) : UH1 = │
00:01:06 #7563 [Verbose] > │ let v2 : UH3 = v0 v1 │
00:01:06 #7564 [Verbose] > │ let v44 : UH1 = │
00:01:06 #7565 [Verbose] > │ match v2 with │
00:01:06 #7566 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:01:06 #7567 [Verbose] > │ *) │
00:01:06 #7568 [Verbose] > │ match v1 with │
00:01:06 #7569 [Verbose] > │ | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* │
00:01:06 #7570 [Verbose] > │ StreamCons *) │
00:01:06 #7571 [Verbose] > │ let v23 : float = v8 * 1.25E-05 │
00:01:06 #7572 [Verbose] > │ let v24 : float = v18 + v23 │
00:01:06 #7573 [Verbose] > │ let v25 : float = 1.25E-05 * v5 │
00:01:06 #7574 [Verbose] > │ let v26 : float = 1.25E-05 * v6 │
00:01:06 #7575 [Verbose] > │ let v27 : float = 1.25E-05 * v7 │
00:01:06 #7576 [Verbose] > │ let v28 : float = v15 + v25 │
00:01:06 #7577 [Verbose] > │ let v29 : float = v16 + v26 │
00:01:06 #7578 [Verbose] > │ let v30 : float = v17 + v27 │
00:01:06 #7579 [Verbose] > │ let v31 : float = 1.25E-05 * v9 │
00:01:06 #7580 [Verbose] > │ let v32 : float = 1.25E-05 * v10 │
00:01:06 #7581 [Verbose] > │ let v33 : float = 1.25E-05 * v11 │
00:01:06 #7582 [Verbose] > │ let v34 : float = v19 + v31 │
00:01:06 #7583 [Verbose] > │ let v35 : float = v20 + v32 │
00:01:06 #7584 [Verbose] > │ let v36 : float = v21 + v33 │
00:01:06 #7585 [Verbose] > │ let v37 : (unit -> UH1) = closure132(v22, v12) │
00:01:06 #7586 [Verbose] > │ UH1_0(v13, v14, v28, v29, v30, v24, v34, v35, v36, v37) │
00:01:06 #7587 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:06 #7588 [Verbose] > │ UH1_1 │
00:01:06 #7589 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:06 #7590 [Verbose] > │ UH1_1 │
00:01:06 #7591 [Verbose] > │ let v45 : (unit -> UH1) = closure133(v44) │
00:01:06 #7592 [Verbose] > │ let v46 : (unit -> UH1) = method3(v44, v45) │
00:01:06 #7593 [Verbose] > │ let v47 : UH1 = v46 () │
00:01:06 #7594 [Verbose] > │ let v48 : UH3 = v0 v47 │
00:01:06 #7595 [Verbose] > │ let v90 : UH1 = │
00:01:06 #7596 [Verbose] > │ match v48 with │
00:01:06 #7597 [Verbose] > │ | UH3_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (* │
00:01:06 #7598 [Verbose] > │ StreamCons *) │
00:01:06 #7599 [Verbose] > │ match v1 with │
00:01:06 #7600 [Verbose] > │ | UH1_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (* │
00:01:06 #7601 [Verbose] > │ StreamCons *) │
00:01:06 #7602 [Verbose] > │ let v69 : float = v54 * 1.25E-05 │
00:01:06 #7603 [Verbose] > │ let v70 : float = v64 + v69 │
00:01:07 #7604 [Verbose] > │ let v71 : float = 1.25E-05 * v51 │
00:01:07 #7605 [Verbose] > │ let v72 : float = 1.25E-05 * v52 │
00:01:07 #7606 [Verbose] > │ let v73 : float = 1.25E-05 * v53 │
00:01:07 #7607 [Verbose] > │ let v74 : float = v61 + v71 │
00:01:07 #7608 [Verbose] > │ let v75 : float = v62 + v72 │
00:01:07 #7609 [Verbose] > │ let v76 : float = v63 + v73 │
00:01:07 #7610 [Verbose] > │ let v77 : float = 1.25E-05 * v55 │
00:01:07 #7611 [Verbose] > │ let v78 : float = 1.25E-05 * v56 │
00:01:07 #7612 [Verbose] > │ let v79 : float = 1.25E-05 * v57 │
00:01:07 #7613 [Verbose] > │ let v80 : float = v65 + v77 │
00:01:07 #7614 [Verbose] > │ let v81 : float = v66 + v78 │
00:01:07 #7615 [Verbose] > │ let v82 : float = v67 + v79 │
00:01:07 #7616 [Verbose] > │ let v83 : (unit -> UH1) = closure132(v68, v58) │
00:01:07 #7617 [Verbose] > │ UH1_0(v59, v60, v74, v75, v76, v70, v80, v81, v82, v83) │
00:01:07 #7618 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:07 #7619 [Verbose] > │ UH1_1 │
00:01:07 #7620 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7621 [Verbose] > │ UH1_1 │
00:01:07 #7622 [Verbose] > │ let v91 : (unit -> UH1) = closure133(v90) │
00:01:07 #7623 [Verbose] > │ let v92 : (unit -> UH1) = method3(v90, v91) │
00:01:07 #7624 [Verbose] > │ let v93 : UH1 = v92 () │
00:01:07 #7625 [Verbose] > │ let v94 : UH3 = v0 v93 │
00:01:07 #7626 [Verbose] > │ let v136 : UH1 = │
00:01:07 #7627 [Verbose] > │ match v94 with │
00:01:07 #7628 [Verbose] > │ | UH3_0(v95, v96, v97, v98, v99, v100, v101, v102, v103, v104) -> (* │
00:01:07 #7629 [Verbose] > │ StreamCons *) │
00:01:07 #7630 [Verbose] > │ match v1 with │
00:01:07 #7631 [Verbose] > │ | UH1_0(v105, v106, v107, v108, v109, v110, v111, v112, v113, │
00:01:07 #7632 [Verbose] > │ v114) -> (* StreamCons *) │
00:01:07 #7633 [Verbose] > │ let v115 : float = v100 * 2.5E-05 │
00:01:07 #7634 [Verbose] > │ let v116 : float = v110 + v115 │
00:01:07 #7635 [Verbose] > │ let v117 : float = 2.5E-05 * v97 │
00:01:07 #7636 [Verbose] > │ let v118 : float = 2.5E-05 * v98 │
00:01:07 #7637 [Verbose] > │ let v119 : float = 2.5E-05 * v99 │
00:01:07 #7638 [Verbose] > │ let v120 : float = v107 + v117 │
00:01:07 #7639 [Verbose] > │ let v121 : float = v108 + v118 │
00:01:07 #7640 [Verbose] > │ let v122 : float = v109 + v119 │
00:01:07 #7641 [Verbose] > │ let v123 : float = 2.5E-05 * v101 │
00:01:07 #7642 [Verbose] > │ let v124 : float = 2.5E-05 * v102 │
00:01:07 #7643 [Verbose] > │ let v125 : float = 2.5E-05 * v103 │
00:01:07 #7644 [Verbose] > │ let v126 : float = v111 + v123 │
00:01:07 #7645 [Verbose] > │ let v127 : float = v112 + v124 │
00:01:07 #7646 [Verbose] > │ let v128 : float = v113 + v125 │
00:01:07 #7647 [Verbose] > │ let v129 : (unit -> UH1) = closure135(v114, v104) │
00:01:07 #7648 [Verbose] > │ UH1_0(v105, v106, v120, v121, v122, v116, v126, v127, v128, │
00:01:07 #7649 [Verbose] > │ v129) │
00:01:07 #7650 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:07 #7651 [Verbose] > │ UH1_1 │
00:01:07 #7652 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7653 [Verbose] > │ UH1_1 │
00:01:07 #7654 [Verbose] > │ let v137 : (unit -> UH1) = closure133(v136) │
00:01:07 #7655 [Verbose] > │ let v138 : (unit -> UH1) = method3(v136, v137) │
00:01:07 #7656 [Verbose] > │ let v139 : UH1 = v138 () │
00:01:07 #7657 [Verbose] > │ let v140 : UH3 = v0 v139 │
00:01:07 #7658 [Verbose] > │ let v177 : UH3 = │
00:01:07 #7659 [Verbose] > │ match v2 with │
00:01:07 #7660 [Verbose] > │ | UH3_0(v141, v142, v143, v144, v145, v146, v147, v148, v149, v150) │
00:01:07 #7661 [Verbose] > │ -> (* StreamCons *) │
00:01:07 #7662 [Verbose] > │ match v48 with │
00:01:07 #7663 [Verbose] > │ | UH3_0(v151, v152, v153, v154, v155, v156, v157, v158, v159, │
00:01:07 #7664 [Verbose] > │ v160) -> (* StreamCons *) │
00:01:07 #7665 [Verbose] > │ let v161 : float = v141 + v151 │
00:01:07 #7666 [Verbose] > │ let v162 : float = v142 + v152 │
00:01:07 #7667 [Verbose] > │ let v163 : float = v146 + v156 │
00:01:07 #7668 [Verbose] > │ let v164 : float = v143 + v153 │
00:01:07 #7669 [Verbose] > │ let v165 : float = v144 + v154 │
00:01:07 #7670 [Verbose] > │ let v166 : float = v145 + v155 │
00:01:07 #7671 [Verbose] > │ let v167 : float = v147 + v157 │
00:01:07 #7672 [Verbose] > │ let v168 : float = v148 + v158 │
00:01:07 #7673 [Verbose] > │ let v169 : float = v149 + v159 │
00:01:07 #7674 [Verbose] > │ let v170 : (unit -> UH3) = closure136(v160, v150) │
00:01:07 #7675 [Verbose] > │ UH3_0(v161, v162, v164, v165, v166, v163, v167, v168, v169, │
00:01:07 #7676 [Verbose] > │ v170) │
00:01:07 #7677 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7678 [Verbose] > │ UH3_1 │
00:01:07 #7679 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7680 [Verbose] > │ UH3_1 │
00:01:07 #7681 [Verbose] > │ let v214 : UH3 = │
00:01:07 #7682 [Verbose] > │ match v177 with │
00:01:07 #7683 [Verbose] > │ | UH3_0(v178, v179, v180, v181, v182, v183, v184, v185, v186, v187) │
00:01:07 #7684 [Verbose] > │ -> (* StreamCons *) │
00:01:07 #7685 [Verbose] > │ match v48 with │
00:01:07 #7686 [Verbose] > │ | UH3_0(v188, v189, v190, v191, v192, v193, v194, v195, v196, │
00:01:07 #7687 [Verbose] > │ v197) -> (* StreamCons *) │
00:01:07 #7688 [Verbose] > │ let v198 : float = v178 + v188 │
00:01:07 #7689 [Verbose] > │ let v199 : float = v179 + v189 │
00:01:07 #7690 [Verbose] > │ let v200 : float = v183 + v193 │
00:01:07 #7691 [Verbose] > │ let v201 : float = v180 + v190 │
00:01:07 #7692 [Verbose] > │ let v202 : float = v181 + v191 │
00:01:07 #7693 [Verbose] > │ let v203 : float = v182 + v192 │
00:01:07 #7694 [Verbose] > │ let v204 : float = v184 + v194 │
00:01:07 #7695 [Verbose] > │ let v205 : float = v185 + v195 │
00:01:07 #7696 [Verbose] > │ let v206 : float = v186 + v196 │
00:01:07 #7697 [Verbose] > │ let v207 : (unit -> UH3) = closure136(v197, v187) │
00:01:07 #7698 [Verbose] > │ UH3_0(v198, v199, v201, v202, v203, v200, v204, v205, v206, │
00:01:07 #7699 [Verbose] > │ v207) │
00:01:07 #7700 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7701 [Verbose] > │ UH3_1 │
00:01:07 #7702 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7703 [Verbose] > │ UH3_1 │
00:01:07 #7704 [Verbose] > │ let v251 : UH3 = │
00:01:07 #7705 [Verbose] > │ match v214 with │
00:01:07 #7706 [Verbose] > │ | UH3_0(v215, v216, v217, v218, v219, v220, v221, v222, v223, v224) │
00:01:07 #7707 [Verbose] > │ -> (* StreamCons *) │
00:01:07 #7708 [Verbose] > │ match v94 with │
00:01:07 #7709 [Verbose] > │ | UH3_0(v225, v226, v227, v228, v229, v230, v231, v232, v233, │
00:01:07 #7710 [Verbose] > │ v234) -> (* StreamCons *) │
00:01:07 #7711 [Verbose] > │ let v235 : float = v215 + v225 │
00:01:07 #7712 [Verbose] > │ let v236 : float = v216 + v226 │
00:01:07 #7713 [Verbose] > │ let v237 : float = v220 + v230 │
00:01:07 #7714 [Verbose] > │ let v238 : float = v217 + v227 │
00:01:07 #7715 [Verbose] > │ let v239 : float = v218 + v228 │
00:01:07 #7716 [Verbose] > │ let v240 : float = v219 + v229 │
00:01:07 #7717 [Verbose] > │ let v241 : float = v221 + v231 │
00:01:07 #7718 [Verbose] > │ let v242 : float = v222 + v232 │
00:01:07 #7719 [Verbose] > │ let v243 : float = v223 + v233 │
00:01:07 #7720 [Verbose] > │ let v244 : (unit -> UH3) = closure136(v234, v224) │
00:01:07 #7721 [Verbose] > │ UH3_0(v235, v236, v238, v239, v240, v237, v241, v242, v243, │
00:01:07 #7722 [Verbose] > │ v244) │
00:01:07 #7723 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7724 [Verbose] > │ UH3_1 │
00:01:07 #7725 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7726 [Verbose] > │ UH3_1 │
00:01:07 #7727 [Verbose] > │ let v288 : UH3 = │
00:01:07 #7728 [Verbose] > │ match v251 with │
00:01:07 #7729 [Verbose] > │ | UH3_0(v252, v253, v254, v255, v256, v257, v258, v259, v260, v261) │
00:01:07 #7730 [Verbose] > │ -> (* StreamCons *) │
00:01:07 #7731 [Verbose] > │ match v94 with │
00:01:07 #7732 [Verbose] > │ | UH3_0(v262, v263, v264, v265, v266, v267, v268, v269, v270, │
00:01:07 #7733 [Verbose] > │ v271) -> (* StreamCons *) │
00:01:07 #7734 [Verbose] > │ let v272 : float = v252 + v262 │
00:01:07 #7735 [Verbose] > │ let v273 : float = v253 + v263 │
00:01:07 #7736 [Verbose] > │ let v274 : float = v257 + v267 │
00:01:07 #7737 [Verbose] > │ let v275 : float = v254 + v264 │
00:01:07 #7738 [Verbose] > │ let v276 : float = v255 + v265 │
00:01:07 #7739 [Verbose] > │ let v277 : float = v256 + v266 │
00:01:07 #7740 [Verbose] > │ let v278 : float = v258 + v268 │
00:01:07 #7741 [Verbose] > │ let v279 : float = v259 + v269 │
00:01:07 #7742 [Verbose] > │ let v280 : float = v260 + v270 │
00:01:07 #7743 [Verbose] > │ let v281 : (unit -> UH3) = closure136(v271, v261) │
00:01:07 #7744 [Verbose] > │ UH3_0(v272, v273, v275, v276, v277, v274, v278, v279, v280, │
00:01:07 #7745 [Verbose] > │ v281) │
00:01:07 #7746 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7747 [Verbose] > │ UH3_1 │
00:01:07 #7748 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7749 [Verbose] > │ UH3_1 │
00:01:07 #7750 [Verbose] > │ let v325 : UH3 = │
00:01:07 #7751 [Verbose] > │ match v288 with │
00:01:07 #7752 [Verbose] > │ | UH3_0(v289, v290, v291, v292, v293, v294, v295, v296, v297, v298) │
00:01:07 #7753 [Verbose] > │ -> (* StreamCons *) │
00:01:07 #7754 [Verbose] > │ match v140 with │
00:01:07 #7755 [Verbose] > │ | UH3_0(v299, v300, v301, v302, v303, v304, v305, v306, v307, │
00:01:07 #7756 [Verbose] > │ v308) -> (* StreamCons *) │
00:01:07 #7757 [Verbose] > │ let v309 : float = v289 + v299 │
00:01:07 #7758 [Verbose] > │ let v310 : float = v290 + v300 │
00:01:07 #7759 [Verbose] > │ let v311 : float = v294 + v304 │
00:01:07 #7760 [Verbose] > │ let v312 : float = v291 + v301 │
00:01:07 #7761 [Verbose] > │ let v313 : float = v292 + v302 │
00:01:07 #7762 [Verbose] > │ let v314 : float = v293 + v303 │
00:01:07 #7763 [Verbose] > │ let v315 : float = v295 + v305 │
00:01:07 #7764 [Verbose] > │ let v316 : float = v296 + v306 │
00:01:07 #7765 [Verbose] > │ let v317 : float = v297 + v307 │
00:01:07 #7766 [Verbose] > │ let v318 : (unit -> UH3) = closure136(v308, v298) │
00:01:07 #7767 [Verbose] > │ UH3_0(v309, v310, v312, v313, v314, v311, v315, v316, v317, │
00:01:07 #7768 [Verbose] > │ v318) │
00:01:07 #7769 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7770 [Verbose] > │ UH3_1 │
00:01:07 #7771 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7772 [Verbose] > │ UH3_1 │
00:01:07 #7773 [Verbose] > │ let v367 : UH1 = │
00:01:07 #7774 [Verbose] > │ match v325 with │
00:01:07 #7775 [Verbose] > │ | UH3_0(v326, v327, v328, v329, v330, v331, v332, v333, v334, v335) │
00:01:07 #7776 [Verbose] > │ -> (* StreamCons *) │
00:01:07 #7777 [Verbose] > │ match v1 with │
00:01:07 #7778 [Verbose] > │ | UH1_0(v336, v337, v338, v339, v340, v341, v342, v343, v344, │
00:01:07 #7779 [Verbose] > │ v345) -> (* StreamCons *) │
00:01:07 #7780 [Verbose] > │ let v346 : float = v331 * 4.166666666666667E-06 │
00:01:07 #7781 [Verbose] > │ let v347 : float = v341 + v346 │
00:01:07 #7782 [Verbose] > │ let v348 : float = 4.166666666666667E-06 * v328 │
00:01:07 #7783 [Verbose] > │ let v349 : float = 4.166666666666667E-06 * v329 │
00:01:07 #7784 [Verbose] > │ let v350 : float = 4.166666666666667E-06 * v330 │
00:01:07 #7785 [Verbose] > │ let v351 : float = v338 + v348 │
00:01:07 #7786 [Verbose] > │ let v352 : float = v339 + v349 │
00:01:07 #7787 [Verbose] > │ let v353 : float = v340 + v350 │
00:01:07 #7788 [Verbose] > │ let v354 : float = 4.166666666666667E-06 * v332 │
00:01:07 #7789 [Verbose] > │ let v355 : float = 4.166666666666667E-06 * v333 │
00:01:07 #7790 [Verbose] > │ let v356 : float = 4.166666666666667E-06 * v334 │
00:01:07 #7791 [Verbose] > │ let v357 : float = v342 + v354 │
00:01:07 #7792 [Verbose] > │ let v358 : float = v343 + v355 │
00:01:07 #7793 [Verbose] > │ let v359 : float = v344 + v356 │
00:01:07 #7794 [Verbose] > │ let v360 : (unit -> UH1) = closure137(v345, v335) │
00:01:07 #7795 [Verbose] > │ UH1_0(v336, v337, v351, v352, v353, v347, v357, v358, v359, │
00:01:07 #7796 [Verbose] > │ v360) │
00:01:07 #7797 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:07 #7798 [Verbose] > │ UH1_1 │
00:01:07 #7799 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:01:07 #7800 [Verbose] > │ UH1_1 │
00:01:07 #7801 [Verbose] > │ let v368 : (unit -> UH1) = closure133(v367) │
00:01:07 #7802 [Verbose] > │ let v369 : (unit -> UH1) = method3(v367, v368) │
00:01:07 #7803 [Verbose] > │ let v370 : UH1 = v369 () │
00:01:07 #7804 [Verbose] > │ v370 │
00:01:07 #7805 [Verbose] > │ and closure130 () (v0 : (UH1 -> UH3)) : (UH1 -> UH1) = │
00:01:07 #7806 [Verbose] > │ closure131(v0) │
00:01:07 #7807 [Verbose] > │ and method2 () : ((UH1 -> UH3) -> (UH1 -> UH1)) = │
00:01:07 #7808 [Verbose] > │ closure130() │
00:01:07 #7809 [Verbose] > │ and closure138 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:01:07 #7810 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:01:07 #7811 [Verbose] > │ float * float) = │
00:01:07 #7812 [Verbose] > │ let v9 : float = v2 * v2 │
00:01:07 #7813 [Verbose] > │ let v10 : float = v3 * v3 │
00:01:07 #7814 [Verbose] > │ let v11 : float = v9 + v10 │
00:01:07 #7815 [Verbose] > │ let v12 : float = v4 * v4 │
00:01:07 #7816 [Verbose] > │ let v13 : float = v11 + v12 │
00:01:07 #7817 [Verbose] > │ let v14 : float = sqrt v13 │
00:01:07 #7818 [Verbose] > │ let v15 : float = -5384.0 * v14 │
00:01:07 #7819 [Verbose] > │ let v16 : float = v15 * v2 │
00:01:07 #7820 [Verbose] > │ let v17 : float = v15 * v3 │
00:01:07 #7821 [Verbose] > │ let v18 : float = v15 * v4 │
00:01:07 #7822 [Verbose] > │ let v19 : float = v16 / v14 │
00:01:07 #7823 [Verbose] > │ let v20 : float = v17 / v14 │
00:01:07 #7824 [Verbose] > │ let v21 : float = v18 / v14 │
00:01:07 #7825 [Verbose] > │ struct (v19, v20, v21) │
00:01:07 #7826 [Verbose] > │ and closure139 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:01:07 #7827 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:01:07 #7828 [Verbose] > │ float * float) = │
00:01:07 #7829 [Verbose] > │ let v9 : float = v2 + -0.65 │
00:01:07 #7830 [Verbose] > │ let v10 : float = v9 * v9 │
00:01:07 #7831 [Verbose] > │ let v11 : float = v3 * v3 │
00:01:07 #7832 [Verbose] > │ let v12 : float = v10 + v11 │
00:01:07 #7833 [Verbose] > │ let v13 : float = v4 * v4 │
00:01:07 #7834 [Verbose] > │ let v14 : float = v12 + v13 │
00:01:07 #7835 [Verbose] > │ let v15 : float = sqrt v14 │
00:01:07 #7836 [Verbose] > │ let v16 : float = -5384.0 * v15 │
00:01:07 #7837 [Verbose] > │ let v17 : float = v16 * v9 │
00:01:07 #7838 [Verbose] > │ let v18 : float = v16 * v3 │
00:01:07 #7839 [Verbose] > │ let v19 : float = v16 * v4 │
00:01:07 #7840 [Verbose] > │ let v20 : float = v17 / v15 │
00:01:07 #7841 [Verbose] > │ let v21 : float = v18 / v15 │
00:01:07 #7842 [Verbose] > │ let v22 : float = v19 / v15 │
00:01:07 #7843 [Verbose] > │ struct (v20, v21, v22) │
00:01:07 #7844 [Verbose] > │ and closure141 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:01:07 #7845 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:01:07 #7846 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:01:07 #7847 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:01:07 #7848 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:01:07 #7849 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:01:07 #7850 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:01:07 #7851 [Verbose] > │ let v21 : float = v11 + v18 │
00:01:07 #7852 [Verbose] > │ let v22 : float = v12 + v19 │
00:01:07 #7853 [Verbose] > │ let v23 : float = v13 + v20 │
00:01:07 #7854 [Verbose] > │ let v24 : float = v21 * v21 │
00:01:07 #7855 [Verbose] > │ let v25 : float = v22 * v22 │
00:01:07 #7856 [Verbose] > │ let v26 : float = v24 + v25 │
00:01:07 #7857 [Verbose] > │ let v27 : float = v23 * v23 │
00:01:07 #7858 [Verbose] > │ let v28 : float = v26 + v27 │
00:01:07 #7859 [Verbose] > │ let v29 : float = sqrt v28 │
00:01:07 #7860 [Verbose] > │ let v30 : float = -5384.0 * v29 │
00:01:07 #7861 [Verbose] > │ let v31 : float = v30 * v21 │
00:01:07 #7862 [Verbose] > │ let v32 : float = v30 * v22 │
00:01:07 #7863 [Verbose] > │ let v33 : float = v30 * v23 │
00:01:07 #7864 [Verbose] > │ let v34 : float = v31 / v29 │
00:01:07 #7865 [Verbose] > │ let v35 : float = v32 / v29 │
00:01:07 #7866 [Verbose] > │ let v36 : float = v33 / v29 │
00:01:07 #7867 [Verbose] > │ struct (v34, v35, v36) │
00:01:07 #7868 [Verbose] > │ and closure140 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:01:07 #7869 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : (struct (float * │
00:01:07 #7870 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct │
00:01:07 #7871 [Verbose] > │ (float * float * float)) = │
00:01:07 #7872 [Verbose] > │ closure141(v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:01:07 #7873 [Verbose] > │ and method4 () : UH4 = │
00:01:07 #7874 [Verbose] > │ let v0 : (struct (float * float * float * float * float * float * float │
00:01:07 #7875 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure138() │
00:01:07 #7876 [Verbose] > │ let v1 : US1 = US1_0(0, v0) │
00:01:07 #7877 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:01:07 #7878 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure139() │
00:01:07 #7879 [Verbose] > │ let v3 : US1 = US1_0(63, v2) │
00:01:07 #7880 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:01:07 #7881 [Verbose] > │ * float * float) -> (struct (float * float * float * float * float * float * │
00:01:07 #7882 [Verbose] > │ float * float * float) -> struct (float * float * float))) = closure140() │
00:01:07 #7883 [Verbose] > │ let v5 : US1 = US1_1(0, 1, v4) │
00:01:07 #7884 [Verbose] > │ let v6 : US1 = US1_1(1, 2, v4) │
00:01:07 #7885 [Verbose] > │ let v7 : US1 = US1_1(2, 3, v4) │
00:01:07 #7886 [Verbose] > │ let v8 : US1 = US1_1(3, 4, v4) │
00:01:07 #7887 [Verbose] > │ let v9 : US1 = US1_1(4, 5, v4) │
00:01:07 #7888 [Verbose] > │ let v10 : US1 = US1_1(5, 6, v4) │
00:01:07 #7889 [Verbose] > │ let v11 : US1 = US1_1(6, 7, v4) │
00:01:07 #7890 [Verbose] > │ let v12 : US1 = US1_1(7, 8, v4) │
00:01:07 #7891 [Verbose] > │ let v13 : US1 = US1_1(8, 9, v4) │
00:01:07 #7892 [Verbose] > │ let v14 : US1 = US1_1(9, 10, v4) │
00:01:07 #7893 [Verbose] > │ let v15 : US1 = US1_1(10, 11, v4) │
00:01:07 #7894 [Verbose] > │ let v16 : US1 = US1_1(11, 12, v4) │
00:01:07 #7895 [Verbose] > │ let v17 : US1 = US1_1(12, 13, v4) │
00:01:07 #7896 [Verbose] > │ let v18 : US1 = US1_1(13, 14, v4) │
00:01:07 #7897 [Verbose] > │ let v19 : US1 = US1_1(14, 15, v4) │
00:01:07 #7898 [Verbose] > │ let v20 : US1 = US1_1(15, 16, v4) │
00:01:07 #7899 [Verbose] > │ let v21 : US1 = US1_1(16, 17, v4) │
00:01:07 #7900 [Verbose] > │ let v22 : US1 = US1_1(17, 18, v4) │
00:01:07 #7901 [Verbose] > │ let v23 : US1 = US1_1(18, 19, v4) │
00:01:07 #7902 [Verbose] > │ let v24 : US1 = US1_1(19, 20, v4) │
00:01:07 #7903 [Verbose] > │ let v25 : US1 = US1_1(20, 21, v4) │
00:01:07 #7904 [Verbose] > │ let v26 : US1 = US1_1(21, 22, v4) │
00:01:07 #7905 [Verbose] > │ let v27 : US1 = US1_1(22, 23, v4) │
00:01:07 #7906 [Verbose] > │ let v28 : US1 = US1_1(23, 24, v4) │
00:01:07 #7907 [Verbose] > │ let v29 : US1 = US1_1(24, 25, v4) │
00:01:07 #7908 [Verbose] > │ let v30 : US1 = US1_1(25, 26, v4) │
00:01:07 #7909 [Verbose] > │ let v31 : US1 = US1_1(26, 27, v4) │
00:01:07 #7910 [Verbose] > │ let v32 : US1 = US1_1(27, 28, v4) │
00:01:07 #7911 [Verbose] > │ let v33 : US1 = US1_1(28, 29, v4) │
00:01:07 #7912 [Verbose] > │ let v34 : US1 = US1_1(29, 30, v4) │
00:01:07 #7913 [Verbose] > │ let v35 : US1 = US1_1(30, 31, v4) │
00:01:07 #7914 [Verbose] > │ let v36 : US1 = US1_1(31, 32, v4) │
00:01:07 #7915 [Verbose] > │ let v37 : US1 = US1_1(32, 33, v4) │
00:01:07 #7916 [Verbose] > │ let v38 : US1 = US1_1(33, 34, v4) │
00:01:07 #7917 [Verbose] > │ let v39 : US1 = US1_1(34, 35, v4) │
00:01:07 #7918 [Verbose] > │ let v40 : US1 = US1_1(35, 36, v4) │
00:01:07 #7919 [Verbose] > │ let v41 : US1 = US1_1(36, 37, v4) │
00:01:07 #7920 [Verbose] > │ let v42 : US1 = US1_1(37, 38, v4) │
00:01:07 #7921 [Verbose] > │ let v43 : US1 = US1_1(38, 39, v4) │
00:01:07 #7922 [Verbose] > │ let v44 : US1 = US1_1(39, 40, v4) │
00:01:07 #7923 [Verbose] > │ let v45 : US1 = US1_1(40, 41, v4) │
00:01:07 #7924 [Verbose] > │ let v46 : US1 = US1_1(41, 42, v4) │
00:01:07 #7925 [Verbose] > │ let v47 : US1 = US1_1(42, 43, v4) │
00:01:07 #7926 [Verbose] > │ let v48 : US1 = US1_1(43, 44, v4) │
00:01:07 #7927 [Verbose] > │ let v49 : US1 = US1_1(44, 45, v4) │
00:01:07 #7928 [Verbose] > │ let v50 : US1 = US1_1(45, 46, v4) │
00:01:07 #7929 [Verbose] > │ let v51 : US1 = US1_1(46, 47, v4) │
00:01:07 #7930 [Verbose] > │ let v52 : US1 = US1_1(47, 48, v4) │
00:01:07 #7931 [Verbose] > │ let v53 : US1 = US1_1(48, 49, v4) │
00:01:07 #7932 [Verbose] > │ let v54 : US1 = US1_1(49, 50, v4) │
00:01:07 #7933 [Verbose] > │ let v55 : US1 = US1_1(50, 51, v4) │
00:01:07 #7934 [Verbose] > │ let v56 : US1 = US1_1(51, 52, v4) │
00:01:07 #7935 [Verbose] > │ let v57 : US1 = US1_1(52, 53, v4) │
00:01:07 #7936 [Verbose] > │ let v58 : US1 = US1_1(53, 54, v4) │
00:01:07 #7937 [Verbose] > │ let v59 : US1 = US1_1(54, 55, v4) │
00:01:07 #7938 [Verbose] > │ let v60 : US1 = US1_1(55, 56, v4) │
00:01:07 #7939 [Verbose] > │ let v61 : US1 = US1_1(56, 57, v4) │
00:01:07 #7940 [Verbose] > │ let v62 : US1 = US1_1(57, 58, v4) │
00:01:07 #7941 [Verbose] > │ let v63 : US1 = US1_1(58, 59, v4) │
00:01:07 #7942 [Verbose] > │ let v64 : US1 = US1_1(59, 60, v4) │
00:01:07 #7943 [Verbose] > │ let v65 : UH4 = UH4_1 │
00:01:07 #7944 [Verbose] > │ let v66 : UH4 = UH4_0(v64, v65) │
00:01:07 #7945 [Verbose] > │ let v67 : UH4 = UH4_0(v63, v66) │
00:01:07 #7946 [Verbose] > │ let v68 : UH4 = UH4_0(v62, v67) │
00:01:07 #7947 [Verbose] > │ let v69 : UH4 = UH4_0(v61, v68) │
00:01:07 #7948 [Verbose] > │ let v70 : UH4 = UH4_0(v60, v69) │
00:01:07 #7949 [Verbose] > │ let v71 : UH4 = UH4_0(v59, v70) │
00:01:07 #7950 [Verbose] > │ let v72 : UH4 = UH4_0(v58, v71) │
00:01:07 #7951 [Verbose] > │ let v73 : UH4 = UH4_0(v57, v72) │
00:01:07 #7952 [Verbose] > │ let v74 : UH4 = UH4_0(v56, v73) │
00:01:07 #7953 [Verbose] > │ let v75 : UH4 = UH4_0(v55, v74) │
00:01:07 #7954 [Verbose] > │ let v76 : UH4 = UH4_0(v54, v75) │
00:01:07 #7955 [Verbose] > │ let v77 : UH4 = UH4_0(v53, v76) │
00:01:07 #7956 [Verbose] > │ let v78 : UH4 = UH4_0(v52, v77) │
00:01:07 #7957 [Verbose] > │ let v79 : UH4 = UH4_0(v51, v78) │
00:01:07 #7958 [Verbose] > │ let v80 : UH4 = UH4_0(v50, v79) │
00:01:07 #7959 [Verbose] > │ let v81 : UH4 = UH4_0(v49, v80) │
00:01:07 #7960 [Verbose] > │ let v82 : UH4 = UH4_0(v48, v81) │
00:01:07 #7961 [Verbose] > │ let v83 : UH4 = UH4_0(v47, v82) │
00:01:07 #7962 [Verbose] > │ let v84 : UH4 = UH4_0(v46, v83) │
00:01:07 #7963 [Verbose] > │ let v85 : UH4 = UH4_0(v45, v84) │
00:01:07 #7964 [Verbose] > │ let v86 : UH4 = UH4_0(v44, v85) │
00:01:07 #7965 [Verbose] > │ let v87 : UH4 = UH4_0(v43, v86) │
00:01:07 #7966 [Verbose] > │ let v88 : UH4 = UH4_0(v42, v87) │
00:01:07 #7967 [Verbose] > │ let v89 : UH4 = UH4_0(v41, v88) │
00:01:07 #7968 [Verbose] > │ let v90 : UH4 = UH4_0(v40, v89) │
00:01:07 #7969 [Verbose] > │ let v91 : UH4 = UH4_0(v39, v90) │
00:01:07 #7970 [Verbose] > │ let v92 : UH4 = UH4_0(v38, v91) │
00:01:07 #7971 [Verbose] > │ let v93 : UH4 = UH4_0(v37, v92) │
00:01:07 #7972 [Verbose] > │ let v94 : UH4 = UH4_0(v36, v93) │
00:01:07 #7973 [Verbose] > │ let v95 : UH4 = UH4_0(v35, v94) │
00:01:07 #7974 [Verbose] > │ let v96 : UH4 = UH4_0(v34, v95) │
00:01:07 #7975 [Verbose] > │ let v97 : UH4 = UH4_0(v33, v96) │
00:01:07 #7976 [Verbose] > │ let v98 : UH4 = UH4_0(v32, v97) │
00:01:07 #7977 [Verbose] > │ let v99 : UH4 = UH4_0(v31, v98) │
00:01:07 #7978 [Verbose] > │ let v100 : UH4 = UH4_0(v30, v99) │
00:01:07 #7979 [Verbose] > │ let v101 : UH4 = UH4_0(v29, v100) │
00:01:07 #7980 [Verbose] > │ let v102 : UH4 = UH4_0(v28, v101) │
00:01:07 #7981 [Verbose] > │ let v103 : UH4 = UH4_0(v27, v102) │
00:01:07 #7982 [Verbose] > │ let v104 : UH4 = UH4_0(v26, v103) │
00:01:07 #7983 [Verbose] > │ let v105 : UH4 = UH4_0(v25, v104) │
00:01:07 #7984 [Verbose] > │ let v106 : UH4 = UH4_0(v24, v105) │
00:01:07 #7985 [Verbose] > │ let v107 : UH4 = UH4_0(v23, v106) │
00:01:07 #7986 [Verbose] > │ let v108 : UH4 = UH4_0(v22, v107) │
00:01:07 #7987 [Verbose] > │ let v109 : UH4 = UH4_0(v21, v108) │
00:01:07 #7988 [Verbose] > │ let v110 : UH4 = UH4_0(v20, v109) │
00:01:07 #7989 [Verbose] > │ let v111 : UH4 = UH4_0(v19, v110) │
00:01:07 #7990 [Verbose] > │ let v112 : UH4 = UH4_0(v18, v111) │
00:01:07 #7991 [Verbose] > │ let v113 : UH4 = UH4_0(v17, v112) │
00:01:07 #7992 [Verbose] > │ let v114 : UH4 = UH4_0(v16, v113) │
00:01:07 #7993 [Verbose] > │ let v115 : UH4 = UH4_0(v15, v114) │
00:01:07 #7994 [Verbose] > │ let v116 : UH4 = UH4_0(v14, v115) │
00:01:07 #7995 [Verbose] > │ let v117 : UH4 = UH4_0(v13, v116) │
00:01:07 #7996 [Verbose] > │ let v118 : UH4 = UH4_0(v12, v117) │
00:01:07 #7997 [Verbose] > │ let v119 : UH4 = UH4_0(v11, v118) │
00:01:07 #7998 [Verbose] > │ let v120 : UH4 = UH4_0(v10, v119) │
00:01:07 #7999 [Verbose] > │ let v121 : UH4 = UH4_0(v9, v120) │
00:01:07 #8000 [Verbose] > │ let v122 : UH4 = UH4_0(v8, v121) │
00:01:07 #8001 [Verbose] > │ let v123 : UH4 = UH4_0(v7, v122) │
00:01:07 #8002 [Verbose] > │ let v124 : UH4 = UH4_0(v6, v123) │
00:01:07 #8003 [Verbose] > │ let v125 : UH4 = UH4_0(v5, v124) │
00:01:07 #8004 [Verbose] > │ let v126 : UH4 = UH4_0(v3, v125) │
00:01:07 #8005 [Verbose] > │ UH4_0(v1, v126) │
00:01:07 #8006 [Verbose] > │ and closure143 (v0 : UH5) () : UH5 = │
00:01:07 #8007 [Verbose] > │ v0 │
00:01:07 #8008 [Verbose] > │ and method5 (v0 : UH1, v1 : UH5, v2 : int32) : struct (UH5 * int32) = │
00:01:07 #8009 [Verbose] > │ match v0 with │
00:01:07 #8010 [Verbose] > │ | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *) │
00:01:07 #8011 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:01:07 #8012 [Verbose] > │ let v14 : UH1 = v12 () │
00:01:07 #8013 [Verbose] > │ let v15 : (unit -> UH5) = closure143(v1) │
00:01:07 #8014 [Verbose] > │ let v16 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │
00:01:07 #8015 [Verbose] > │ method5(v14, v16, v13) │
00:01:07 #8016 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:07 #8017 [Verbose] > │ struct (v1, v2) │
00:01:07 #8018 [Verbose] > │ and closure144 (v0 : UH5) () : UH5 = │
00:01:07 #8019 [Verbose] > │ v0 │
00:01:07 #8020 [Verbose] > │ and method6 (v0 : UH5, v1 : UH5) : UH5 = │
00:01:07 #8021 [Verbose] > │ match v0 with │
00:01:07 #8022 [Verbose] > │ | UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:01:07 #8023 [Verbose] > │ *) │
00:01:07 #8024 [Verbose] > │ let v13 : UH5 = v12 () │
00:01:07 #8025 [Verbose] > │ let v14 : (unit -> UH5) = closure144(v1) │
00:01:07 #8026 [Verbose] > │ let v15 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │
00:01:07 #8027 [Verbose] > │ method6(v13, v15) │
00:01:07 #8028 [Verbose] > │ | UH5_1 -> (* StreamNil *) │
00:01:07 #8029 [Verbose] > │ v1 │
00:01:07 #8030 [Verbose] > │ and closure145 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:01:07 #8031 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:01:07 #8032 [Verbose] > │ float * float) = │
00:01:07 #8033 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:01:07 #8034 [Verbose] > │ and method9 (v0 : int32, v1 : UH1) : US3 = │
00:01:07 #8035 [Verbose] > │ match v1 with │
00:01:07 #8036 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:01:07 #8037 [Verbose] > │ let v12 : bool = v0 <= 0 │
00:01:07 #8038 [Verbose] > │ if v12 then │
00:01:07 #8039 [Verbose] > │ US3_1(v2, v3, v4, v5, v6, v7, v8, v9, v10) │
00:01:07 #8040 [Verbose] > │ else │
00:01:07 #8041 [Verbose] > │ let v14 : int32 = v0 - 1 │
00:01:07 #8042 [Verbose] > │ let v15 : UH1 = v11 () │
00:01:07 #8043 [Verbose] > │ method9(v14, v15) │
00:01:07 #8044 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:07 #8045 [Verbose] > │ US3_0 │
00:01:07 #8046 [Verbose] > │ and closure146 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:01:07 #8047 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:01:07 #8048 [Verbose] > │ float * float) = │
00:01:07 #8049 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:01:07 #8050 [Verbose] > │ and method8 (v0 : int32, v1 : UH1, v2 : UH4, v3 : UH6) : UH6 = │
00:01:07 #8051 [Verbose] > │ match v2 with │
00:01:07 #8052 [Verbose] > │ | UH4_0(v4, v5) -> (* Cons *) │
00:01:07 #8053 [Verbose] > │ let v6 : UH6 = method8(v0, v1, v5, v3) │
00:01:07 #8054 [Verbose] > │ let v55 : (struct (float * float * float * float * float * float * │
00:01:07 #8055 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:01:07 #8056 [Verbose] > │ match v4 with │
00:01:07 #8057 [Verbose] > │ | US1_0(v7, v8) -> (* ExternalForce *) │
00:01:07 #8058 [Verbose] > │ let v9 : bool = v0 = v7 │
00:01:07 #8059 [Verbose] > │ if v9 then │
00:01:07 #8060 [Verbose] > │ v8 │
00:01:07 #8061 [Verbose] > │ else │
00:01:07 #8062 [Verbose] > │ closure145() │
00:01:07 #8063 [Verbose] > │ | US1_1(v12, v13, v14) -> (* InternalForce *) │
00:01:07 #8064 [Verbose] > │ let v15 : bool = v0 = v12 │
00:01:07 #8065 [Verbose] > │ let v49 : US2 = │
00:01:07 #8066 [Verbose] > │ if v15 then │
00:01:07 #8067 [Verbose] > │ let v16 : US3 = method9(v13, v1) │
00:01:07 #8068 [Verbose] > │ match v16 with │
00:01:07 #8069 [Verbose] > │ | US3_0 -> (* None *) │
00:01:07 #8070 [Verbose] > │ US2_0 │
00:01:07 #8071 [Verbose] > │ | US3_1(v17, v18, v19, v20, v21, v22, v23, v24, v25) │
00:01:07 #8072 [Verbose] > │ -> (* Some *) │
00:01:07 #8073 [Verbose] > │ let v26 : (struct (float * float * float * float │
00:01:07 #8074 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float)) │
00:01:07 #8075 [Verbose] > │ = v14 struct (v17, v18, v19, v20, v21, v22, v23, v24, v25) │
00:01:07 #8076 [Verbose] > │ US2_1(v26) │
00:01:07 #8077 [Verbose] > │ else │
00:01:07 #8078 [Verbose] > │ let v31 : bool = v0 = v13 │
00:01:07 #8079 [Verbose] > │ if v31 then │
00:01:07 #8080 [Verbose] > │ let v32 : US3 = method9(v12, v1) │
00:01:07 #8081 [Verbose] > │ match v32 with │
00:01:07 #8082 [Verbose] > │ | US3_0 -> (* None *) │
00:01:07 #8083 [Verbose] > │ US2_0 │
00:01:07 #8084 [Verbose] > │ | US3_1(v33, v34, v35, v36, v37, v38, v39, v40, │
00:01:07 #8085 [Verbose] > │ v41) -> (* Some *) │
00:01:07 #8086 [Verbose] > │ let v42 : (struct (float * float * float * │
00:01:07 #8087 [Verbose] > │ float * float * float * float * float * float) -> struct (float * float * │
00:01:07 #8088 [Verbose] > │ float)) = v14 struct (v33, v34, v35, v36, v37, v38, v39, v40, v41) │
00:01:07 #8089 [Verbose] > │ US2_1(v42) │
00:01:07 #8090 [Verbose] > │ else │
00:01:07 #8091 [Verbose] > │ US2_0 │
00:01:07 #8092 [Verbose] > │ match v49 with │
00:01:07 #8093 [Verbose] > │ | US2_0 -> (* None *) │
00:01:07 #8094 [Verbose] > │ closure146() │
00:01:07 #8095 [Verbose] > │ | US2_1(v50) -> (* Some *) │
00:01:07 #8096 [Verbose] > │ v50 │
00:01:07 #8097 [Verbose] > │ UH6_0(v55, v6) │
00:01:07 #8098 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:07 #8099 [Verbose] > │ v3 │
00:01:07 #8100 [Verbose] > │ and method10 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:01:07 #8101 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : UH6, v10 : UH7) : UH7 = │
00:01:07 #8102 [Verbose] > │ match v9 with │
00:01:07 #8103 [Verbose] > │ | UH6_0(v11, v12) -> (* Cons *) │
00:01:07 #8104 [Verbose] > │ let v13 : UH7 = method10(v0, v1, v2, v3, v4, v5, v6, v7, v8, v12, │
00:01:07 #8105 [Verbose] > │ v10) │
00:01:07 #8106 [Verbose] > │ let struct (v14 : float, v15 : float, v16 : float) = v11 struct (v0, │
00:01:07 #8107 [Verbose] > │ v1, v2, v3, v4, v5, v6, v7, v8) │
00:01:07 #8108 [Verbose] > │ UH7_0(v14, v15, v16, v13) │
00:01:07 #8109 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:07 #8110 [Verbose] > │ v10 │
00:01:07 #8111 [Verbose] > │ and method11 (v0 : UH7, v1 : float, v2 : float, v3 : float) : struct (float │
00:01:07 #8112 [Verbose] > │ * float * float) = │
00:01:07 #8113 [Verbose] > │ match v0 with │
00:01:07 #8114 [Verbose] > │ | UH7_0(v4, v5, v6, v7) -> (* Cons *) │
00:01:07 #8115 [Verbose] > │ let v8 : float = v1 + v4 │
00:01:07 #8116 [Verbose] > │ let v9 : float = v2 + v5 │
00:01:07 #8117 [Verbose] > │ let v10 : float = v3 + v6 │
00:01:07 #8118 [Verbose] > │ method11(v7, v8, v9, v10) │
00:01:07 #8119 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:07 #8120 [Verbose] > │ struct (v1, v2, v3) │
00:01:07 #8121 [Verbose] > │ and closure147 (v0 : UH3) () : UH3 = │
00:01:07 #8122 [Verbose] > │ v0 │
00:01:07 #8123 [Verbose] > │ and method7 (v0 : UH4, v1 : UH1, v2 : UH5, v3 : UH3) : UH3 = │
00:01:07 #8124 [Verbose] > │ match v2 with │
00:01:07 #8125 [Verbose] > │ | UH5_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* │
00:01:07 #8126 [Verbose] > │ StreamCons *) │
00:01:07 #8127 [Verbose] > │ let v15 : UH5 = v14 () │
00:01:07 #8128 [Verbose] > │ let v16 : UH3 = method7(v0, v1, v15, v3) │
00:01:07 #8129 [Verbose] > │ let v17 : UH6 = UH6_1 │
00:01:07 #8130 [Verbose] > │ let v18 : UH6 = method8(v4, v1, v0, v17) │
00:01:07 #8131 [Verbose] > │ let v19 : UH7 = UH7_1 │
00:01:07 #8132 [Verbose] > │ let v20 : UH7 = method10(v5, v6, v7, v8, v9, v10, v11, v12, v13, │
00:01:07 #8133 [Verbose] > │ v18, v19) │
00:01:07 #8134 [Verbose] > │ let v21 : float = 0.0 │
00:01:07 #8135 [Verbose] > │ let v22 : float = 0.0 │
00:01:07 #8136 [Verbose] > │ let v23 : float = 0.0 │
00:01:07 #8137 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method11(v20, │
00:01:07 #8138 [Verbose] > │ v21, v22, v23) │
00:01:07 #8139 [Verbose] > │ let v27 : float = v24 / v6 │
00:01:07 #8140 [Verbose] > │ let v28 : float = v25 / v6 │
00:01:07 #8141 [Verbose] > │ let v29 : float = v26 / v6 │
00:01:07 #8142 [Verbose] > │ let v30 : (unit -> UH3) = closure147(v16) │
00:01:07 #8143 [Verbose] > │ UH3_0(0.0, 0.0, v11, v12, v13, 1.0, v27, v28, v29, v30) │
00:01:07 #8144 [Verbose] > │ | UH5_1 -> (* StreamNil *) │
00:01:07 #8145 [Verbose] > │ v3 │
00:01:07 #8146 [Verbose] > │ and closure142 (v0 : UH4) (v1 : UH1) : UH3 = │
00:01:07 #8147 [Verbose] > │ let v2 : UH5 = UH5_1 │
00:01:07 #8148 [Verbose] > │ let v3 : int32 = 0 │
00:01:07 #8149 [Verbose] > │ let struct (v4 : UH5, v5 : int32) = method5(v1, v2, v3) │
00:01:07 #8150 [Verbose] > │ let v6 : UH5 = UH5_1 │
00:01:07 #8151 [Verbose] > │ let v7 : UH5 = method6(v4, v6) │
00:01:07 #8152 [Verbose] > │ let v8 : UH3 = UH3_1 │
00:01:07 #8153 [Verbose] > │ let v9 : UH3 = method7(v0, v1, v7, v8) │
00:01:07 #8154 [Verbose] > │ v9 │
00:01:07 #8155 [Verbose] > │ and closure148 (v0 : (UH1 -> UH1), v1 : UH1, v2 : UH1) () : UH8 = │
00:01:07 #8156 [Verbose] > │ let v3 : UH1 = v0 v2 │
00:01:07 #8157 [Verbose] > │ let v4 : (unit -> UH8) = closure148(v0, v1, v3) │
00:01:07 #8158 [Verbose] > │ UH8_0(v2, v4) │
00:01:07 #8159 [Verbose] > │ and method12 (v0 : float, v1 : UH8) : US4 = │
00:01:07 #8160 [Verbose] > │ match v1 with │
00:01:07 #8161 [Verbose] > │ | UH8_0(v2, v3) -> (* StreamCons *) │
00:01:07 #8162 [Verbose] > │ let v4 : bool = v0 <= 0.0 │
00:01:07 #8163 [Verbose] > │ if v4 then │
00:01:07 #8164 [Verbose] > │ US4_1(v2) │
00:01:07 #8165 [Verbose] > │ else │
00:01:07 #8166 [Verbose] > │ let v6 : float = v0 - 1.0 │
00:01:07 #8167 [Verbose] > │ let v7 : UH8 = v3 () │
00:01:07 #8168 [Verbose] > │ method12(v6, v7) │
00:01:07 #8169 [Verbose] > │ | UH8_1 -> (* StreamNil *) │
00:01:07 #8170 [Verbose] > │ US4_0 │
00:01:07 #8171 [Verbose] > │ and closure149 (v0 : UH9) () : UH9 = │
00:01:07 #8172 [Verbose] > │ v0 │
00:01:07 #8173 [Verbose] > │ and method13 (v0 : UH1, v1 : UH9) : UH9 = │
00:01:07 #8174 [Verbose] > │ match v0 with │
00:01:07 #8175 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:01:07 #8176 [Verbose] > │ let v12 : UH1 = v11 () │
00:01:07 #8177 [Verbose] > │ let v13 : UH9 = method13(v12, v1) │
00:01:07 #8178 [Verbose] > │ let v14 : (unit -> UH9) = closure149(v13) │
00:01:07 #8179 [Verbose] > │ UH9_0(v4, v5, v6, v14) │
00:01:07 #8180 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:01:07 #8181 [Verbose] > │ v1 │
00:01:07 #8182 [Verbose] > │ and method14 (v0 : UH9, v1 : UH7) : UH7 = │
00:01:07 #8183 [Verbose] > │ match v0 with │
00:01:07 #8184 [Verbose] > │ | UH9_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:01:07 #8185 [Verbose] > │ let v6 : UH9 = v5 () │
00:01:07 #8186 [Verbose] > │ let v7 : UH7 = method14(v6, v1) │
00:01:07 #8187 [Verbose] > │ UH7_0(v2, v3, v4, v7) │
00:01:07 #8188 [Verbose] > │ | UH9_1 -> (* StreamNil *) │
00:01:07 #8189 [Verbose] > │ v1 │
00:01:07 #8190 [Verbose] > │ and method15 (v0 : UH7, v1 : UH7) : UH7 = │
00:01:07 #8191 [Verbose] > │ match v0 with │
00:01:07 #8192 [Verbose] > │ | UH7_0(v2, v3, v4, v5) -> (* Cons *) │
00:01:07 #8193 [Verbose] > │ let v6 : UH7 = method15(v5, v1) │
00:01:07 #8194 [Verbose] > │ UH7_0(v2, v3, v4, v6) │
00:01:07 #8195 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:07 #8196 [Verbose] > │ v1 │
00:01:07 #8197 [Verbose] > │ and method16 (v0 : UH7, v1 : UH10) : UH10 = │
00:01:07 #8198 [Verbose] > │ match v0 with │
00:01:07 #8199 [Verbose] > │ | UH7_0(v2, v3, v4, v5) -> (* Cons *) │
00:01:07 #8200 [Verbose] > │ let v6 : UH10 = method16(v5, v1) │
00:01:07 #8201 [Verbose] > │ UH10_0(v2, v3, v6) │
00:01:07 #8202 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:07 #8203 [Verbose] > │ v1 │
00:01:07 #8204 [Verbose] > │ and closure150 (v0 : UH11) () : UH11 = │
00:01:07 #8205 [Verbose] > │ v0 │
00:01:07 #8206 [Verbose] > │ and method17 (v0 : UH10, v1 : UH11) : UH11 = │
00:01:07 #8207 [Verbose] > │ match v0 with │
00:01:07 #8208 [Verbose] > │ | UH10_0(v2, v3, v4) -> (* Cons *) │
00:01:07 #8209 [Verbose] > │ let v5 : UH11 = method17(v4, v1) │
00:01:07 #8210 [Verbose] > │ let v6 : (unit -> UH11) = closure150(v5) │
00:01:07 #8211 [Verbose] > │ UH11_0(v2, v3, v6) │
00:01:07 #8212 [Verbose] > │ | UH10_1 -> (* Nil *) │
00:01:07 #8213 [Verbose] > │ v1 │
00:01:07 #8214 [Verbose] > │ and closure151 (v0 : UH0) () : UH0 = │
00:01:07 #8215 [Verbose] > │ v0 │
00:01:07 #8216 [Verbose] > │ and closure152 (v0 : UH0) () : UH0 = │
00:01:07 #8217 [Verbose] > │ v0 │
00:01:07 #8218 [Verbose] > │ and method18 (v0 : UH11) : struct (UH0 * UH0) = │
00:01:07 #8219 [Verbose] > │ match v0 with │
00:01:07 #8220 [Verbose] > │ | UH11_0(v1, v2, v3) -> (* StreamCons *) │
00:01:07 #8221 [Verbose] > │ let v4 : UH11 = v3 () │
00:01:07 #8222 [Verbose] > │ let struct (v5 : UH0, v6 : UH0) = method18(v4) │
00:01:07 #8223 [Verbose] > │ let v7 : (unit -> UH0) = closure151(v5) │
00:01:07 #8224 [Verbose] > │ let v8 : UH0 = UH0_0(v1, v7) │
00:01:07 #8225 [Verbose] > │ let v9 : (unit -> UH0) = closure152(v6) │
00:01:07 #8226 [Verbose] > │ let v10 : UH0 = UH0_0(v2, v9) │
00:01:07 #8227 [Verbose] > │ struct (v8, v10) │
00:01:07 #8228 [Verbose] > │ | UH11_1 -> (* StreamNil *) │
00:01:07 #8229 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:01:07 #8230 [Verbose] > │ let v12 : UH0 = UH0_1 │
00:01:07 #8231 [Verbose] > │ struct (v11, v12) │
00:01:07 #8232 [Verbose] > │ and method19 (v0 : UH0, v1 : UH12) : UH12 = │
00:01:07 #8233 [Verbose] > │ match v0 with │
00:01:07 #8234 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:01:07 #8235 [Verbose] > │ let v4 : UH0 = v3 () │
00:01:07 #8236 [Verbose] > │ let v5 : UH12 = method19(v4, v1) │
00:01:07 #8237 [Verbose] > │ UH12_0(v2, v5) │
00:01:07 #8238 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:01:07 #8239 [Verbose] > │ v1 │
00:01:07 #8240 [Verbose] > │ and method21 (v0 : UH12, v1 : int32) : int32 = │
00:01:07 #8241 [Verbose] > │ match v0 with │
00:01:07 #8242 [Verbose] > │ | UH12_0(v2, v3) -> (* Cons *) │
00:01:07 #8243 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:01:07 #8244 [Verbose] > │ method21(v3, v4) │
00:01:07 #8245 [Verbose] > │ | UH12_1 -> (* Nil *) │
00:01:07 #8246 [Verbose] > │ v1 │
00:01:07 #8247 [Verbose] > │ and method22 (v0 : (float []), v1 : UH12, v2 : int32) : int32 = │
00:01:07 #8248 [Verbose] > │ match v1 with │
00:01:07 #8249 [Verbose] > │ | UH12_0(v3, v4) -> (* Cons *) │
00:01:07 #8250 [Verbose] > │ v0.[int v2] <- v3 │
00:01:07 #8251 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:07 #8252 [Verbose] > │ method22(v0, v4, v5) │
00:01:07 #8253 [Verbose] > │ | UH12_1 -> (* Nil *) │
00:01:07 #8254 [Verbose] > │ v2 │
00:01:07 #8255 [Verbose] > │ and method20 (v0 : UH12) : (float []) = │
00:01:07 #8256 [Verbose] > │ let v1 : int32 = 0 │
00:01:07 #8257 [Verbose] > │ let v2 : int32 = method21(v0, v1) │
00:01:07 #8258 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:01:07 #8259 [Verbose] > │ let v4 : int32 = 0 │
00:01:07 #8260 [Verbose] > │ let v5 : int32 = method22(v3, v0, v4) │
00:01:07 #8261 [Verbose] > │ v3 │
00:01:07 #8262 [Verbose] > │ and closure153 (v0 : UH2) () : UH2 = │
00:01:07 #8263 [Verbose] > │ v0 │
00:01:07 #8264 [Verbose] > │ and method1 (v0 : UH1, v1 : UH0, v2 : UH2) : UH2 = │
00:01:07 #8265 [Verbose] > │ match v1 with │
00:01:07 #8266 [Verbose] > │ | UH0_0(v3, v4) -> (* StreamCons *) │
00:01:07 #8267 [Verbose] > │ let v5 : UH0 = v4 () │
00:01:07 #8268 [Verbose] > │ let v6 : UH2 = method1(v0, v5, v2) │
00:01:07 #8269 [Verbose] > │ let v7 : ((UH1 -> UH3) -> (UH1 -> UH1)) = method2() │
00:01:07 #8270 [Verbose] > │ let v8 : UH4 = method4() │
00:01:07 #8271 [Verbose] > │ let v9 : (UH1 -> UH3) = closure142(v8) │
00:01:07 #8272 [Verbose] > │ let v10 : (UH1 -> UH1) = v7 v9 │
00:01:07 #8273 [Verbose] > │ let v11 : UH1 = v10 v0 │
00:01:07 #8274 [Verbose] > │ let v12 : (unit -> UH8) = closure148(v10, v0, v11) │
00:01:07 #8275 [Verbose] > │ let v13 : UH8 = UH8_0(v0, v12) │
00:01:07 #8276 [Verbose] > │ let v14 : US4 = method12(v3, v13) │
00:01:07 #8277 [Verbose] > │ let v18 : UH1 = │
00:01:07 #8278 [Verbose] > │ match v14 with │
00:01:07 #8279 [Verbose] > │ | US4_0 -> (* None *) │
00:01:07 #8280 [Verbose] > │ failwith<UH1> "Option does not have a value." │
00:01:07 #8281 [Verbose] > │ | US4_1(v15) -> (* Some *) │
00:01:07 #8282 [Verbose] > │ v15 │
00:01:07 #8283 [Verbose] > │ let v19 : UH9 = UH9_1 │
00:01:07 #8284 [Verbose] > │ let v20 : UH9 = method13(v18, v19) │
00:01:07 #8285 [Verbose] > │ let v21 : UH7 = UH7_1 │
00:01:07 #8286 [Verbose] > │ let v22 : UH7 = method14(v20, v21) │
00:01:07 #8287 [Verbose] > │ let v23 : float = 0.65 │
00:01:07 #8288 [Verbose] > │ let v24 : float = 0.0 │
00:01:07 #8289 [Verbose] > │ let v25 : float = 0.0 │
00:01:07 #8290 [Verbose] > │ let v26 : UH7 = UH7_1 │
00:01:07 #8291 [Verbose] > │ let v27 : UH7 = UH7_0(v23, v24, v25, v26) │
00:01:07 #8292 [Verbose] > │ let v28 : UH7 = method15(v22, v27) │
00:01:07 #8293 [Verbose] > │ let v29 : UH10 = UH10_1 │
00:01:07 #8294 [Verbose] > │ let v30 : UH10 = method16(v28, v29) │
00:01:07 #8295 [Verbose] > │ let v31 : UH11 = UH11_1 │
00:01:07 #8296 [Verbose] > │ let v32 : UH11 = method17(v30, v31) │
00:01:07 #8297 [Verbose] > │ let struct (v33 : UH0, v34 : UH0) = method18(v32) │
00:01:07 #8298 [Verbose] > │ let v35 : UH12 = UH12_1 │
00:01:07 #8299 [Verbose] > │ let v36 : UH12 = method19(v33, v35) │
00:01:07 #8300 [Verbose] > │ let v37 : float = 0.0 │
00:01:07 #8301 [Verbose] > │ let v38 : UH12 = UH12_0(v37, v36) │
00:01:07 #8302 [Verbose] > │ let v39 : (float []) = method20(v38) │
00:01:07 #8303 [Verbose] > │ let v40 : UH12 = UH12_1 │
00:01:07 #8304 [Verbose] > │ let v41 : UH12 = method19(v34, v40) │
00:01:07 #8305 [Verbose] > │ let v42 : float = 0.0 │
00:01:07 #8306 [Verbose] > │ let v43 : UH12 = UH12_0(v42, v41) │
00:01:07 #8307 [Verbose] > │ let v44 : (float []) = method20(v43) │
00:01:07 #8308 [Verbose] > │ let v45 : (unit -> UH2) = closure153(v6) │
00:01:07 #8309 [Verbose] > │ UH2_0(v39, v44, v45) │
00:01:07 #8310 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:01:07 #8311 [Verbose] > │ v2 │
00:01:07 #8312 [Verbose] > │ and closure154 (v0 : UH13) () : UH13 = │
00:01:07 #8313 [Verbose] > │ v0 │
00:01:07 #8314 [Verbose] > │ and method23 (v0 : UH2, v1 : UH13, v2 : int32) : struct (UH13 * int32) = │
00:01:07 #8315 [Verbose] > │ match v0 with │
00:01:07 #8316 [Verbose] > │ | UH2_0(v3, v4, v5) -> (* StreamCons *) │
00:01:07 #8317 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:07 #8318 [Verbose] > │ let v7 : UH2 = v5 () │
00:01:07 #8319 [Verbose] > │ let v8 : (unit -> UH13) = closure154(v1) │
00:01:07 #8320 [Verbose] > │ let v9 : UH13 = UH13_0(v2, v3, v4, v8) │
00:01:07 #8321 [Verbose] > │ method23(v7, v9, v6) │
00:01:07 #8322 [Verbose] > │ | UH2_1 -> (* StreamNil *) │
00:01:07 #8323 [Verbose] > │ struct (v1, v2) │
00:01:07 #8324 [Verbose] > │ and closure155 (v0 : UH13) () : UH13 = │
00:01:07 #8325 [Verbose] > │ v0 │
00:01:07 #8326 [Verbose] > │ and method24 (v0 : UH13, v1 : UH13) : UH13 = │
00:01:07 #8327 [Verbose] > │ match v0 with │
00:01:07 #8328 [Verbose] > │ | UH13_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:01:07 #8329 [Verbose] > │ let v6 : UH13 = v5 () │
00:01:07 #8330 [Verbose] > │ let v7 : (unit -> UH13) = closure155(v1) │
00:01:07 #8331 [Verbose] > │ let v8 : UH13 = UH13_0(v2, v3, v4, v7) │
00:01:07 #8332 [Verbose] > │ method24(v6, v8) │
00:01:07 #8333 [Verbose] > │ | UH13_1 -> (* StreamNil *) │
00:01:07 #8334 [Verbose] > │ v1 │
00:01:07 #8335 [Verbose] > │ and method26 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:01:07 #8336 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:01:07 #8337 [Verbose] > │ v0 │
00:01:07 #8338 [Verbose] > │ and closure156 (v0 : UH14) () : UH14 = │
00:01:07 #8339 [Verbose] > │ v0 │
00:01:07 #8340 [Verbose] > │ and method25 (v0 : UH13, v1 : UH14) : UH14 = │
00:01:07 #8341 [Verbose] > │ match v0 with │
00:01:07 #8342 [Verbose] > │ | UH13_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:01:07 #8343 [Verbose] > │ let v6 : UH13 = v5 () │
00:01:07 #8344 [Verbose] > │ let v7 : UH14 = method25(v6, v1) │
00:01:07 #8345 [Verbose] > │ let v8 : string = $"{v2}" │
00:01:07 #8346 [Verbose] > │ let v9 : (struct (string * (float []) * (float [])) []) = [|struct │
00:01:07 #8347 [Verbose] > │ (v8, v3, v4)|] │
00:01:07 #8348 [Verbose] > │ let v10 : (struct (string * (float []) * (float [])) []) = │
00:01:07 #8349 [Verbose] > │ method26(v9) │
00:01:07 #8350 [Verbose] > │ let v11 : string = "wave" │
00:01:07 #8351 [Verbose] > │ let v12 : string = "position (m)" │
00:01:07 #8352 [Verbose] > │ let v13 : string = "displacement (m)" │
00:01:07 #8353 [Verbose] > │ let v14 : (unit -> UH14) = closure156(v7) │
00:01:07 #8354 [Verbose] > │ UH14_0(v11, v12, v13, v10, v14) │
00:01:07 #8355 [Verbose] > │ | UH13_1 -> (* StreamNil *) │
00:01:07 #8356 [Verbose] > │ v1 │
00:01:07 #8357 [Verbose] > │ and method27 (v0 : UH14, v1 : UH15) : UH15 = │
00:01:07 #8358 [Verbose] > │ match v0 with │
00:01:07 #8359 [Verbose] > │ | UH14_0(v2, v3, v4, v5, v6) -> (* StreamCons *) │
00:01:07 #8360 [Verbose] > │ let v7 : UH14 = v6 () │
00:01:07 #8361 [Verbose] > │ let v8 : UH15 = method27(v7, v1) │
00:01:07 #8362 [Verbose] > │ UH15_0(v2, v3, v4, v5, v8) │
00:01:07 #8363 [Verbose] > │ | UH14_1 -> (* StreamNil *) │
00:01:07 #8364 [Verbose] > │ v1 │
00:01:07 #8365 [Verbose] > │ and method29 (v0 : UH15, v1 : int32) : int32 = │
00:01:07 #8366 [Verbose] > │ match v0 with │
00:01:07 #8367 [Verbose] > │ | UH15_0(v2, v3, v4, v5, v6) -> (* Cons *) │
00:01:07 #8368 [Verbose] > │ let v7 : int32 = v1 + 1 │
00:01:07 #8369 [Verbose] > │ method29(v6, v7) │
00:01:07 #8370 [Verbose] > │ | UH15_1 -> (* Nil *) │
00:01:07 #8371 [Verbose] > │ v1 │
00:01:07 #8372 [Verbose] > │ and method30 (v0 : (struct (string * string * string * (struct (string * │
00:01:07 #8373 [Verbose] > │ (float []) * (float [])) [])) []), v1 : UH15, v2 : int32) : int32 = │
00:01:07 #8374 [Verbose] > │ match v1 with │
00:01:07 #8375 [Verbose] > │ | UH15_0(v3, v4, v5, v6, v7) -> (* Cons *) │
00:01:07 #8376 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5, v6) │
00:01:07 #8377 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:01:07 #8378 [Verbose] > │ method30(v0, v7, v8) │
00:01:07 #8379 [Verbose] > │ | UH15_1 -> (* Nil *) │
00:01:07 #8380 [Verbose] > │ v2 │
00:01:07 #8381 [Verbose] > │ and method28 (v0 : UH15) : (struct (string * string * string * (struct │
00:01:07 #8382 [Verbose] > │ (string * (float []) * (float [])) [])) []) = │
00:01:07 #8383 [Verbose] > │ let v1 : int32 = 0 │
00:01:07 #8384 [Verbose] > │ let v2 : int32 = method29(v0, v1) │
00:01:07 #8385 [Verbose] > │ let v3 : (struct (string * string * string * (struct (string * (float [ │
00:01:07 #8386 [Verbose] > │ ]) * (float [])) [])) []) = Array.zeroCreate<struct (string * string * │
00:01:07 #8387 [Verbose] > │ string * (struct (string * (float []) * (float [])) []))> (v2) │
00:01:07 #8388 [Verbose] > │ let v4 : int32 = 0 │
00:01:07 #8389 [Verbose] > │ let v5 : int32 = method30(v3, v0, v4) │
00:01:07 #8390 [Verbose] > │ v3 │
00:01:07 #8391 [Verbose] > │ and method0 () : (struct (string * string * string * (struct (string * │
00:01:07 #8392 [Verbose] > │ (float []) * (float [])) [])) []) = │
00:01:07 #8393 [Verbose] > │ let v0 : float = 0.0 │
00:01:07 #8394 [Verbose] > │ let v1 : (unit -> UH0) = closure0() │
00:01:07 #8395 [Verbose] > │ let v2 : UH0 = UH0_0(v0, v1) │
00:01:07 #8396 [Verbose] > │ let v3 : float = 0.0 │
00:01:07 #8397 [Verbose] > │ let v4 : float = 8.422578125E-06 │
00:01:07 #8398 [Verbose] > │ let v5 : float = 0.01 │
00:01:07 #8399 [Verbose] > │ let v6 : float = 0.0007224452478461068 │
00:01:07 #8400 [Verbose] > │ let v7 : float = 0.0 │
00:01:07 #8401 [Verbose] > │ let v8 : float = 0.0 │
00:01:07 #8402 [Verbose] > │ let v9 : float = 0.0 │
00:01:07 #8403 [Verbose] > │ let v10 : float = 0.0 │
00:01:07 #8404 [Verbose] > │ let v11 : float = 0.0 │
00:01:07 #8405 [Verbose] > │ let v12 : (unit -> UH1) = closure66() │
00:01:07 #8406 [Verbose] > │ let v13 : UH1 = UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) │
00:01:07 #8407 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:01:07 #8408 [Verbose] > │ let v15 : UH2 = method1(v13, v2, v14) │
00:01:07 #8409 [Verbose] > │ let v16 : UH13 = UH13_1 │
00:01:07 #8410 [Verbose] > │ let v17 : int32 = 0 │
00:01:07 #8411 [Verbose] > │ let struct (v18 : UH13, v19 : int32) = method23(v15, v16, v17) │
00:01:07 #8412 [Verbose] > │ let v20 : UH13 = UH13_1 │
00:01:07 #8413 [Verbose] > │ let v21 : UH13 = method24(v18, v20) │
00:01:07 #8414 [Verbose] > │ let v22 : UH14 = UH14_1 │
00:01:07 #8415 [Verbose] > │ let v23 : UH14 = method25(v21, v22) │
00:01:07 #8416 [Verbose] > │ let v24 : UH15 = UH15_1 │
00:01:07 #8417 [Verbose] > │ let v25 : UH15 = method27(v23, v24) │
00:01:07 #8418 [Verbose] > │ method28(v25) │
00:01:07 #8419 [Verbose] > │ method0() │
00:01:07 #8420 [Verbose] > │ │
00:01:07 #8421 [Verbose] > │ │
00:01:07 #8422 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 #8423 [Verbose] >
00:01:07 #8424 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 #8425 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 #8426 [Verbose] > │ ## end │
00:01:07 #8427 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 #8428 [Verbose] > [NbConvertApp] Converting notebook physics.dib.ipynb to html
00:01:10 #8429 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:10 #8430 [Verbose] > validate(nb)
00:01:11 #8431 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:11 #8432 [Verbose] > return _pygments_highlight(
00:01:14 #8433 [Verbose] > [NbConvertApp] Writing 2735847 bytes to physics.dib.html
00:01:16 #8434 [Debug] executeAsync / exitCode: 0 / output.Length: 580221
00:01:16 #8435 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: console.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: file_system.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: testing.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: optionm'.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: date_time.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: common.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: guid.dib
00:00:00 #6 [Debug] parseDibCode / output: Spi / file: date_time.dib
00:00:00 #7 [Debug] parseDibCode / output: Spi / file: optionm'.dib
00:00:00 #7 [Debug] parseDibCode / output: Spi / file: file_system.dib
00:00:00 #6 [Debug] parseDibCode / output: Spi / file: console.dib
00:00:00 #6 [Debug] parseDibCode / output: Spi / file: common.dib
00:00:00 #6 [Debug] parseDibCode / output: Spi / file: testing.dib
00:00:00 #8 [Debug] parseDibCode / output: Spi / file: math.dib
00:00:00 #9 [Debug] parseDibCode / output: Spi / file: guid.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: benchmark.dib
00:00:00 #13 [Debug] writeDibCode / output: Spi / path: stream.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: am'.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: listm'.dib
00:00:00 #14 [Debug] writeDibCode / output: Spi / path: seq.dib
00:00:00 #15 [Debug] parseDibCode / output: Spi / file: benchmark.dib
00:00:00 #18 [Debug] parseDibCode / output: Spi / file: am'.dib
00:00:00 #16 [Debug] parseDibCode / output: Spi / file: stream.dib
00:00:00 #19 [Debug] parseDibCode / output: Spi / file: seq.dib
00:00:00 #17 [Debug] parseDibCode / output: Spi / file: listm'.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: sm'.dib
00:00:00 #20 [Debug] parseDibCode / output: Spi / file: sm'.dib
00:00:00 #21 [Debug] writeDibCode / output: Spi / path: util.dib
00:00:00 #22 [Debug] parseDibCode / output: Spi / file: util.dib
00:00:00 #23 [Debug] writeDibCode / output: Spi / path: rust.dib
00:00:00 #24 [Debug] parseDibCode / output: Spi / file: rust.dib
00:00:00 #25 [Debug] writeDibCode / output: Spi / path: physics.dib
00:00:00 #26 [Debug] parseDibCode / output: Spi / file: physics.dib
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #3 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #4 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # common\n\n// // ## types\n\nnominal any = $\u0022obj\u0022\nnominal disposable = $\u0022System.IDisposable\u0022\nnominal exn = $\u0022exn\u0022\nnominal unativeint = $\u0022unativeint\u0022\n\nlet array x = x\n\ninl unativeint forall t {int}. (n : t) : unativeint =\n $\u0022unativeint !n\u0022\n\n// // ## prototype\n\nprototype (~:\u003E) r : forall t. t -\u003E r\nprototype append t : t -\u003E t -\u003E t\nprototype of_string t : string -\u003E t\nprototype to_string t : t -\u003E string\n\n// // ## null\n\ninl null forall t. () : t =\n $\u0022null |\u003E unbox\u003C\u0060t\u003E\u0022\n\ninl i32 forall t. (x : t) : i32 =\n $\u0022int32 !x\u0022\n\ninl i64 forall t. (x : t) : i64 =\n $\u0022int64 !x\u0022\n\ninl f32 forall t. (x : t) : f32 =\n $\u0022float32 !x\u0022\n\ninl f64 forall t. (x : t) : f64 =\n $\u0022float !x\u0022\n\n// // ## pair\n\ntype pair a b = $\u0022(\u0060a * \u0060b)\u0022\n\ninl pair x y =\n x, y\n\n// // ## new_pair\n\ninl new_pair forall a b. (a : a) (b : b) : pair a b =\n $\u0022!a, !b\u0022\n\n// // ## from_pair\n\ninl from_pair forall a b. (pair : pair a b) : a * b =\n $\u0022let (a, b) = !pair\u0022\n $\u0022a\u0022, $\u0022b\u0022\n\n// // ## log_level_type\n\nunion log_level_type =\n | Verbose\n | Debug\n | Info\n | Warning\n | Critical\n\ninstance to_string log_level_type = function\n | Verbose =\u003E \u0022Verbose\u0022\n | Debug =\u003E \u0022Debug\u0022\n | Info =\u003E \u0022Info\u0022\n | Warning =\u003E \u0022Warning\u0022\n | Critical =\u003E \u0022Critical\u0022\n\ninstance of_string log_level_type = function\n | \u0022Verbose\u0022 =\u003E Verbose\n | \u0022Debug\u0022 =\u003E Debug\n | \u0022Info\u0022 =\u003E Info\n | \u0022Warning\u0022 =\u003E Warning\n | \u0022Critical\u0022 =\u003E Critical\n\n// // ## to_any\n\ninl to_any forall t. (obj : t) : any =\n $\u0022!obj\u0022\n\ninstance (~:\u003E) any = to_any\n\n// // ## (/@)\n\ninl (/@) a b =\n b |\u003E append a\n\n// // ## unbox\n\ninl unbox forall t u. (x : t) : u =\n $\u0022!x |\u003E unbox\u003C\u0060u\u003E\u0022\n\n// // ## (/\u002B)\n\ninl (/\u002B) forall t. (a : t) (b : t) : t =\n $\u0022!a \u002B !b\u0022\n\n// // ## (/=)\n\ninl (/=) forall t. (a : t) (b : t) : bool =\n $\u0022!a = !b\u0022\n\n// // ## (||\u003E)\n\ninl (||\u003E) (arg1, arg2) fn =\n arg2 |\u003E fn arg1\n\n// // ## flip\n\ninl flip fn a b =\n fn b a\n\n// // ## join_body\n\ninl join_body body acc x =\n if var_is x |\u003E not\n then body acc x\n else\n inl acc = dyn acc\n join body acc x\n\n// // ## join_body_unit\n\ninl join_body_unit body d x =\n if var_is d |\u003E not\n then body x\n else\n inl x = dyn x\n join body x\n\n// // ## run_target\n\nunion target_runtime =\n | Native\n | Wasm\n | Fable\n\nunion target =\n | Rust : target_runtime\n | Fsharp : target_runtime\n\ninl run_target forall t. (fn : target -\u003E (() -\u003E t)) : t =\n $\u0022let mutable result = None\u0022\n $\u0022#if FABLE_COMPILER_RUST \u0026\u0026 \\!WASM\u0022\n fn (Rust Native) () |\u003E fun x =\u003E $\u0022!x\u0022\n $\u0022#endif\u0022\n $\u0022#if FABLE_COMPILER_RUST \u0026\u0026 WASM\u0022\n fn (Rust Wasm) () |\u003E fun x =\u003E $\u0022!x\u0022\n $\u0022#endif\u0022\n $\u0022#if \\!FABLE_COMPILER \u0026\u0026 \\!FABLE_COMPILER_RUST \u0026\u0026 \\!WASM\u0022\n fn (Fsharp Native) () |\u003E fun x =\u003E $\u0022!x\u0022\n $\u0022#endif\u0022\n $\u0022#if FABLE_COMPILER \u0026\u0026 \\!FABLE_COMPILER_RUST \u0026\u0026 \\!WASM\u0022\n fn (Fsharp Fable) () |\u003E fun x =\u003E $\u0022!x\u0022\n $\u0022#endif\u0022\n $\u0022#if \\!FABLE_COMPILER_RUST \u0026\u0026 WASM\u0022\n fn (Fsharp Wasm) () |\u003E fun x =\u003E $\u0022!x\u0022\n $\u0022#endif\u0022\n $\u0022|\u003E fun x -\u003E result \u003C- Some x\u0022\n $\u0022result |\u003E Option.get\u0022\n\n// // ## nameof\n\ninl nameof x : string =\n $\u0022nameof !x\u0022\n\n// // ## get_environment_variable\n\ninl get_environment_variable (var : string) : string =\n $\u0022System.Environment.GetEnvironmentVariable !var\u0022\n\n// // ## memoize\n\nnominal lazy t = $\u0027Lazy\u003C\u0060t\u003E\u0027\n\ninl memoize forall t. (fn : () -\u003E t) : () -\u003E t =\n inl result : lazy t = $\u0027lazy !fn ()\u0027\n fun () =\u003E $\u0027!result.Value\u0027\n\n// // ## new_disposable\n\ninl new_disposable (fn : () -\u003E ()) : disposable =\n run_target function\n | Fsharp _ =\u003E fun () =\u003E $\u0027{ new System.IDisposable with member _.Dispose () = !fn () }\u0027\n | Rust _ =\u003E\n inl fn = join fn\n fun () =\u003E $\u0027{ new System.IDisposable with member _.Dispose () = Fable.Core.RustInterop.emitRustExpr () \u0022!fn()\u0022 }\u0027\n\n// // ## try\n\ninl try forall t. (fn : () -\u003E t) (ex_fn : exn -\u003E ()) : option t =\n inl none = None : option t\n inl some (s : t) = Some s\n $\u0027try !fn () |\u003E !some with ex -\u003E !ex_fn ex; !none \u0027\n\n// // ## sleep\n\ninl sleep (n : i32) : () =\n run_target function\n | Fsharp (Native) =\u003E fun () =\u003E $\u0027System.Threading.Thread.Sleep\u0027 n\n | _ =\u003E fun () =\u003E ()\n\n// // ## retry_fn\n\ninl retry_fn forall t. retries (fn : () -\u003E t) : option t =\n let rec loop retry =\n try\n fun () =\u003E\n if retry \u003C retries\n then fn () |\u003E Some\n else None\n fun ex =\u003E\n let getLocals () = $\u0022retry: {retry} / ex: {ex |\u003E formatException} / {getLocals ()}\u0022\n // trace Warning (fun () =\u003E \u0022retry_fn\u0022) getLocals\n sleep 1\n |\u003E function\n | Some x =\u003E x\n | None =\u003E loop (retry \u002B 1)\n loop 0\n\n// // ## main\n\ninl main () =\n inl retry_fn (r : i32) (x : () -\u003E _) : optionm\u0027.option\u0027 () =\n retry_fn r x |\u003E optionm\u0027.box\n $\u0022let new_disposable x = !new_disposable x\u0022 : ()\n $\u0022let retry_fn x = !retry_fn x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result.Length:
00:00:00 #5 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result.Length:
00:00:00 #6 [Debug] buildFile / takeWhileInclusive / fsxContent: type [<Struct>] US0 =
| US0_0
| US0_1
and [<Struct>] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose () = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F... / errors: [] / typeErrorCount: 0
00:00:00 #7 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00 #8 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #9 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #10 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:01 #11 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # date_time\n\nopen rust_operators\nopen sm\u0027_operators\n\n// // ## types\n\ninl types () =\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::DateTime\u003C$0\u003E\\\u0022)\u003E] type chrono_DateTime\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::Local\\\u0022)\u003E] type chrono_Local = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::NaiveDateTime\\\u0022)\u003E] type chrono_NaiveDateTime = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022chrono::Utc\\\u0022)\u003E] type chrono_Utc = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022std::time::Duration\\\u0022)\u003E] type std_time_Duration = class end\u0022\n\nnominal ticks = i64\nnominal duration = $\u0022std_time_Duration\u0022\nnominal date_time = $\u0022System.DateTime\u0022\nnominal date_time\u0027 t = $\u0022chrono_DateTime\u003C\u0060t\u003E\u0022\nnominal local = $\u0022chrono_Local\u0022\nnominal naive_date_time = $\u0022chrono_NaiveDateTime\u0022\nnominal utc = $\u0022chrono_Utc\u0022\n\n// // ## naive_utc\n\ninl naive_utc (date_time : date_time\u0027 utc) : naive_date_time =\n inl date_time = join date_time\n !\\($\u0027\u0022!date_time.naive_utc()\u0022\u0027)\n\n// // ## to_local\n\ninl to_local (date_time : date_time\u0027 utc) : date_time\u0027 local =\n inl naive_date_time = date_time |\u003E naive_utc\n !\\($\u0027\u0022chrono::offset::TimeZone::from_utc_datetime(\u0026chrono::Local, \u0026!naive_date_time)\u0022\u0027)\n\n// // ## from_timestamp\u0027\n\ninl from_timestamp\u0027 forall t {number; int}. (timestamp : t) : option (date_time\u0027 utc) =\n inl timestamp = join timestamp\n inl result : optionm\u0027.option\u0027 (date_time\u0027 utc) =\n !\\($\u0027\u0022chrono::DateTime::from_timestamp_micros(!timestamp / 1000i64)\u0022\u0027)\n result |\u003E optionm\u0027.unbox\n\n// // ## format\u0027\n\ninl format\u0027 (format : string) (date_time : date_time\u0027 utc) : sm\u0027.std_string =\n inl format = #format\n inl date_time = join date_time\n !\\($\u0027\u0022!date_time.format(!format).to_string()\u0022\u0027)\n\n// // ## format\u0027\u0027\n\ninl format\u0027\u0027 (format : string) (date_time : date_time\u0027 _) : sm\u0027.std_string =\n inl format = #format\n inl date_time = join date_time\n !\\($\u0027\u0022!date_time.format(!format).to_string()\u0022\u0027)\n\n// // ## format_timestamp\n\ninl format_timestamp (timestamp : sm\u0027.std_string) =\n inl timestamp = join timestamp\n timestamp\n |\u003E fun x =\u003E !\\($\u0027\u0022!x.parse().unwrap()\u0022\u0027) : i64\n |\u003E from_timestamp\u0027\n |\u003E optionm.map fun x =\u003E\n x\n |\u003E to_local\n |\u003E format\u0027\u0027 \u0022%Y-%m-%d %H:%M:%S\u0022\n |\u003E sm\u0027.from_std_string\n |\u003E resultm.from_option\n\n// // ## duration_from_millis\n\ninl duration_from_millis (ms : u64) : duration =\n inl ms = join ms\n !\\($\u0027\u0022std::time::Duration::from_millis(!ms)\u0022\u0027)\n\n// // ## get_environment_variable\n\ninl get_environment_variable (var : string) : string =\n $\u0022System.Environment.GetEnvironmentVariable !var\u0022\n\ntype ticks_guid = guid.guid\ntype date_time_guid = guid.guid\n\n// // ## date_time_guid_from_date_time\n\ninl date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =\n inl guid = guid |\u003E sm\u0027.obj_to_string\n inl prefix = $\u0027!date_time.ToString \u0022yyyyMMdd-HHmm-ssff-ffff-f\u0022\u0027 : string\n $\u0027\u0060date_time_guid $\u0022{!prefix}{!guid.[!prefix.Length..]}\u0022\u0027 : date_time_guid\n\n// // ## date_time_from_guid\n\ninl date_time_from_guid (date_time_guid : date_time_guid) =\n inl date_time_guid = date_time_guid |\u003E sm\u0027.obj_to_string\n inl sm\u0027_replace = join sm\u0027.replace\n run_target function\n | Fsharp =\u003E fun () =\u003E $\u0027System.DateTime.ParseExact (!date_time_guid.[..24] |\u003E !sm\u0027_replace \u0022-\u0022 \u0022\u0022, \u0022yyyyMMddHHmmssfffffff\u0022, null)\u0027 : date_time\n | Rust _ =\u003E fun () =\u003E\n $\u0027System.DateTime.Parse (!date_time_guid.[..24] |\u003E !sm\u0027_replace \u0022-\u0022 \u0022\u0022)\u0027 : date_time\n\n// // ## ticks_guid_from_ticks\n\ninl ticks_guid_from_ticks (guid : guid.guid) (ticks : ticks) : ticks_guid =\n inl guid = guid |\u003E sm\u0027.obj_to_string\n inl ticks = ticks |\u003E sm\u0027.obj_to_string |\u003E sm\u0027.pad_left 18i32 \u00270\u0027\n $\u0027\u0060ticks_guid $\u0022{!ticks.[0..7]}-{!ticks.[8..11]}-{!ticks.[12..15]}-{!ticks.[16..17]}{!guid.[21..]}\u0022\u0027\n\n// // ## ticks_from_guid\n\ninl ticks_from_guid (guid : date_time_guid) : ticks =\n inl guid = guid |\u003E sm\u0027.obj_to_string\n $\u0027\u0060i64 $\u0022{!guid.[0..7]}{!guid.[9..12]}{!guid.[14..17]}{!guid.[19..20]}\u0022\u0027\n\n// // ## new_guid_from_date_time\n\ninl new_guid_from_date_time (date_time : date_time) =\n inl guid = guid.new_raw_guid ()\n date_time_guid_from_date_time guid date_time\n\n// // ## new_guid_from_ticks\n\ninl new_guid_from_ticks (ticks : ticks) =\n inl guid = guid.new_raw_guid ()\n ticks_guid_from_ticks guid ticks\n\n// // ## main\n\ninl main () =\n $\u0022let date_time_guid_from_date_time x = !date_time_guid_from_date_time x\u0022 : ()\n $\u0022let date_time_from_guid x = !date_time_from_guid x\u0022 : ()\n $\u0022let ticks_guid_from_ticks x = !ticks_guid_from_ticks x\u0022 : ()\n $\u0022let ticks_from_guid x = !ticks_from_guid x\u0022 : ()\n $\u0022let new_guid_from_date_time x = !new_guid_from_date_time x\u0022 : ()\n $\u0022let new_guid_from_ticks x = !new_guid_from_ticks x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result.Length:
00:00:01 #12 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result.Length:
00:00:01 #13 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[v3.Length..]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
... / errors: [] / typeErrorCount: 0
00:00:01 #14 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:01 #15 [Debug] runWithTimeoutAsync / timeout: 60
00:00:01 #16 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:01 #17 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:01 #18 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # file_system\n\nopen rust_operators\nopen sm\u0027_operators\n\n// // ## types\n\ninl types () =\n ()\n\n// // ## (\u003C/\u003E)\n\ninl (\u003C/\u003E) (a : string) (b : string) : string =\n $\u0027System.IO.Path.Combine (!a, !b)\u0027\n\n// // ## create_temp_directory_name\n\ninl create_temp_directory_name () =\n inl root = $\u0027System.Reflection.Assembly.GetEntryAssembly().GetName().Name\u0027 : string\n\n ($\u0027System.IO.Path.GetTempPath\u0027 () : string)\n \u003C/\u003E ($\u0027$\u0022{!root}\u0022\u0027 : string)\n \u003C/\u003E (date_time.new_guid_from_date_time $\u0027System.DateTime.Now\u0027 |\u003E sm\u0027.obj_to_string)\n\n// // ## main\n\ninl main () =\n $\u0022let create_temp_directory_name x = !create_temp_directory_name x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result.Length:
00:00:01 #19 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result.Length:
00:00:01 #20 [Debug] watchWithFilter / readContent / retry: 0 / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\lib\spiral\file_system.fsx' because it is being used by another process.)
00:00:02 #21 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec closure0 () () : string =
let v0 : string = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[v8.Length..]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
/ errors: [] / typeErrorCount: 0
00:00:02 #22 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:02 #23 [Debug] runWithTimeoutAsync / timeout: 60
00:00:02 #24 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:02 #25 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:02 #26 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # guid\n\n// // ## guid\n\nnominal guid = $\u0022System.Guid\u0022\n\n// // ## new_guid\n\ninl new_guid (x : string) : guid =\n $\u0027\u0060guid !x \u0027\n\n// // ## new_raw_guid\n\ninl new_raw_guid () : guid =\n $\u0022System.Guid.NewGuid ()\u0022\n\n// // ## main\n\ninl main () =\n $\u0022let new_guid x = !new_guid x\u0022 : ()\n $\u0022let new_raw_guid x = !new_raw_guid x\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result.Length:
00:00:02 #27 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result.Length:
00:00:02 #28 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec closure0 () (v0 : string) : System.Guid =
let v1 : System.Guid = System.Guid v0
v1
and closure1 () () : System.Guid =
let v0 : System.Guid = System.Guid.NewGuid ()
v0
let v0 : (string -> System.Guid) = closure0()
let new_guid x = v0 x
let v1 : (unit -> System.Guid) = closure1()
let new_raw_guid x = v1 x
()
/ errors: [] / typeErrorCount: 0
00:00:02 #29 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
In [ ]:
{ . "$ScriptDir/../lib/math/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #3 [Verbose] >
00:00:03 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #6 [Verbose] > │ # math │
00:00:03 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #8 [Verbose] >
00:00:03 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #10 [Verbose] > open testing
00:00:03 #11 [Verbose] > open rust_operators
00:00:08 #12 [Verbose] >
00:00:08 #13 [Verbose] > ╭─[ 5.46s - stdout ]───────────────────────────────────────────────────────────╮
00:00:08 #14 [Verbose] > │ () │
00:00:08 #15 [Verbose] > │ │
00:00:08 #16 [Verbose] > │ │
00:00:08 #17 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 #18 [Verbose] >
00:00:08 #19 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 #20 [Verbose] > inl types () =
00:00:08 #21 [Verbose] > global "[[<Fable.Core.Erase;
00:00:08 #22 [Verbose] > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]] type num_complex_Complex<'T> =
00:00:08 #23 [Verbose] > class end"
00:00:08 #24 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::types::PyModule\")>]]
00:00:08 #25 [Verbose] > type pyo3_types_PyModule = class end"
00:00:08 #26 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Bound<$0>\")>]] type
00:00:08 #27 [Verbose] > pyo3_Bound<'T> = class end"
00:00:08 #28 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Python\")>]] type
00:00:08 #29 [Verbose] > pyo3_Python = class end"
00:00:08 #30 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyAny\")>]] type
00:00:08 #31 [Verbose] > pyo3_PyAny = class end"
00:00:08 #32 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyErr\")>]] type
00:00:08 #33 [Verbose] > pyo3_PyErr = class end"
00:00:09 #34 [Verbose] >
00:00:09 #35 [Verbose] > ╭─[ 329.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #36 [Verbose] > │ () │
00:00:09 #37 [Verbose] > │ │
00:00:09 #38 [Verbose] > │ │
00:00:09 #39 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #40 [Verbose] >
00:00:09 #41 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #42 [Verbose] > inl types () =
00:00:09 #43 [Verbose] > rust.types ()
00:00:09 #44 [Verbose] > sm'.types ()
00:00:09 #45 [Verbose] > types ()
00:00:09 #46 [Verbose] >
00:00:09 #47 [Verbose] > ╭─[ 308.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #48 [Verbose] > │ () │
00:00:09 #49 [Verbose] > │ │
00:00:09 #50 [Verbose] > │ │
00:00:09 #51 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #52 [Verbose] >
00:00:09 #53 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #54 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #55 [Verbose] > │ ## complex │
00:00:09 #56 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #57 [Verbose] >
00:00:09 #58 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #59 [Verbose] > nominal complex t = $"num_complex_Complex<`t>"
00:00:09 #60 [Verbose] > nominal bound t = $"pyo3_Bound<`t>"
00:00:09 #61 [Verbose] > nominal python = $"pyo3_Python"
00:00:09 #62 [Verbose] > nominal pymodule = $"pyo3_types_PyModule"
00:00:09 #63 [Verbose] > nominal pyany = $"pyo3_PyAny"
00:00:09 #64 [Verbose] > nominal pyerr = $"pyo3_PyErr"
00:00:09 #65 [Verbose] >
00:00:09 #66 [Verbose] > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:09 #67 [Verbose] > inl re = join re
00:00:09 #68 [Verbose] > inl re = join re
00:00:09 #69 [Verbose] > inl im = join im
00:00:09 #70 [Verbose] > !\($'"num_complex::Complex::new(!re, !im)"')
00:00:09 #71 [Verbose] >
00:00:09 #72 [Verbose] > ╭─[ 272.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #73 [Verbose] > │ () │
00:00:09 #74 [Verbose] > │ │
00:00:09 #75 [Verbose] > │ │
00:00:09 #76 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #77 [Verbose] >
00:00:09 #78 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #79 [Verbose] > // // test
00:00:09 #80 [Verbose] > // // rust=
00:00:09 #81 [Verbose] >
00:00:09 #82 [Verbose] > types ()
00:00:09 #83 [Verbose] >
00:00:09 #84 [Verbose] > complex (0f64, 0f64)
00:00:09 #85 [Verbose] > |> sm'.format'
00:00:09 #86 [Verbose] > |> sm'.from_std_string
00:00:09 #87 [Verbose] > |> _assert_eq "0+0i"
00:00:38 #88 [Verbose] >
00:00:38 #89 [Verbose] > ╭─[ 28.25s - return value ]────────────────────────────────────────────────────╮
00:00:38 #90 [Verbose] > │ .rs output: │
00:00:38 #91 [Verbose] > │ "0+0i" │
00:00:38 #92 [Verbose] > │ │
00:00:38 #93 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #94 [Verbose] >
00:00:38 #95 [Verbose] > ╭─[ 28.26s - stdout ]──────────────────────────────────────────────────────────╮
00:00:38 #96 [Verbose] > │ │
00:00:38 #97 [Verbose] > │ .fsx: │
00:00:38 #98 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:00:38 #99 [Verbose] > │ end │
00:00:38 #100 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:00:38 #101 [Verbose] > │ class end │
00:00:38 #102 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:00:38 #103 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:00:38 #104 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:00:38 #105 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:00:38 #106 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:00:38 #107 [Verbose] > │ class end │
00:00:38 #108 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:00:38 #109 [Verbose] > │ class end │
00:00:38 #110 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:00:38 #111 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:00:38 #112 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:38 #113 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:00:38 #114 [Verbose] > │ class end │
00:00:38 #115 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:00:38 #116 [Verbose] > │ class end │
00:00:38 #117 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:00:38 #118 [Verbose] > │ class end │
00:00:38 #119 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:00:38 #120 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:00:38 #121 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:00:38 #122 [Verbose] > │ std_pin_Pin<'T> = class end │
00:00:38 #123 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:00:38 #124 [Verbose] > │ = class end │
00:00:38 #125 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:00:38 #126 [Verbose] > │ std_rc_Weak<'T> = class end │
00:00:38 #127 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:00:38 #128 [Verbose] > │ std_sync_Arc<'T> = class end │
00:00:38 #129 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:38 #130 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:00:38 #131 [Verbose] > │ base64_DecodeError = class end │
00:00:38 #132 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:00:38 #133 [Verbose] > │ borsh_io_Error = class end │
00:00:38 #134 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:00:38 #135 [Verbose] > │ js_sys_JsString = class end │
00:00:38 #136 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:00:38 #137 [Verbose] > │ serde_json_Error = class end │
00:00:38 #138 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:00:38 #139 [Verbose] > │ serde_json_Value = class end │
00:00:38 #140 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:00:38 #141 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:00:38 #142 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:00:38 #143 [Verbose] > │ std_str_Utf8Error = class end │
00:00:38 #144 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:38 #145 [Verbose] > │ std_string_String = class end │
00:00:38 #146 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type │
00:00:38 #147 [Verbose] > │ num_complex_Complex<'T> = class end │
00:00:38 #148 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type │
00:00:38 #149 [Verbose] > │ pyo3_types_PyModule = class end │
00:00:38 #150 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │
00:00:38 #151 [Verbose] > │ = class end │
00:00:38 #152 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python = │
00:00:38 #153 [Verbose] > │ class end │
00:00:38 #154 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │
00:00:38 #155 [Verbose] > │ end │
00:00:38 #156 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │
00:00:38 #157 [Verbose] > │ end │
00:00:38 #158 [Verbose] > │ let rec method1 () : float = │
00:00:38 #159 [Verbose] > │ 0.0 │
00:00:38 #160 [Verbose] > │ and method2 (v0 : float) : float = │
00:00:38 #161 [Verbose] > │ v0 │
00:00:38 #162 [Verbose] > │ and method3 () : float = │
00:00:38 #163 [Verbose] > │ 0.0 │
00:00:38 #164 [Verbose] > │ and method4 (v0 : std_string_String) : std_string_String = │
00:00:38 #165 [Verbose] > │ v0 │
00:00:38 #166 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:38 #167 [Verbose] > │ v0 │
00:00:38 #168 [Verbose] > │ and method0 () : unit = │
00:00:38 #169 [Verbose] > │ let v0 : float = method1() │
00:00:38 #170 [Verbose] > │ let v1 : float = method2(v0) │
00:00:38 #171 [Verbose] > │ let v2 : float = method3() │
00:00:38 #172 [Verbose] > │ let v3 : string = "num_complex::Complex::new(v1, v2)" │
00:00:38 #173 [Verbose] > │ let v4 : num_complex_Complex<float> = │
00:00:38 #174 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:00:38 #175 [Verbose] > │ let v5 : string = @$"format!(""{{}}"", $0)" │
00:00:38 #176 [Verbose] > │ let v6 : std_string_String = Fable.Core.RustInterop.emitRustExpr v4 v5 │
00:00:38 #177 [Verbose] > │ let v7 : std_string_String = method4(v6) │
00:00:38 #178 [Verbose] > │ let v8 : string = "fable_library_rust::String_::fromString(v7)" │
00:00:38 #179 [Verbose] > │ let v9 : string = Fable.Core.RustInterop.emitRustExpr () v8 │
00:00:38 #180 [Verbose] > │ let v10 : string = $"%A{v9}" │
00:00:38 #181 [Verbose] > │ System.Console.WriteLine v10 │
00:00:38 #182 [Verbose] > │ let v12 : bool = v9 = "0+0i" │
00:00:38 #183 [Verbose] > │ let v14 : bool = │
00:00:38 #184 [Verbose] > │ if v12 then │
00:00:38 #185 [Verbose] > │ true │
00:00:38 #186 [Verbose] > │ else │
00:00:38 #187 [Verbose] > │ method5(v12) │
00:00:38 #188 [Verbose] > │ let v15 : string = "0+0i" │
00:00:38 #189 [Verbose] > │ let v16 : string = $"__expect / actual: %A{v9} / expected: %A{v15}" │
00:00:38 #190 [Verbose] > │ let v17 : bool = v14 = false │
00:00:38 #191 [Verbose] > │ if v17 then │
00:00:38 #192 [Verbose] > │ failwith<unit> v16 │
00:00:38 #193 [Verbose] > │ method0() │
00:00:38 #194 [Verbose] > │ │
00:00:38 #195 [Verbose] > │ │
00:00:38 #196 [Verbose] > │ .rs: │
00:00:38 #197 [Verbose] > │ #![allow(dead_code,)] │
00:00:38 #198 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:38 #199 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:38 #200 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:38 #201 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:38 #202 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:38 #203 [Verbose] > │ #![allow(unused_imports,)] │
00:00:38 #204 [Verbose] > │ #![allow(unused_macros,)] │
00:00:38 #205 [Verbose] > │ #![allow(unused_parens,)] │
00:00:38 #206 [Verbose] > │ #![allow(unused_variables,)] │
00:00:38 #207 [Verbose] > │ mod module_ccfa04bf { │
00:00:38 #208 [Verbose] > │ pub mod Spiral_eval { │
00:00:38 #209 [Verbose] > │ use super::*; │
00:00:38 #210 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:38 #211 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:38 #212 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:38 #213 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:38 #214 [Verbose] > │ pub fn method1() -> f64 { 0.0_f64 } │
00:00:38 #215 [Verbose] > │ pub fn method2(v0: f64) -> f64 { v0 } │
00:00:38 #216 [Verbose] > │ pub fn method3() -> f64 { 0.0_f64 } │
00:00:38 #217 [Verbose] > │ pub fn method4(v0: std::string::String) -> std::string::String { v0 │
00:00:38 #218 [Verbose] > │ } │
00:00:38 #219 [Verbose] > │ pub fn method5(v0: bool) -> bool { v0 } │
00:00:38 #220 [Verbose] > │ pub fn method0() { │
00:00:38 #221 [Verbose] > │ let v1: f64 = Spiral_eval::method2(Spiral_eval::method1()); │
00:00:38 #222 [Verbose] > │ let v2: f64 = Spiral_eval::method3(); │
00:00:38 #223 [Verbose] > │ let v4: num_complex::Complex<f64> = │
00:00:38 #224 [Verbose] > │ num_complex::Complex::new(v1, v2); │
00:00:38 #225 [Verbose] > │ let v7: std::string::String = │
00:00:38 #226 [Verbose] > │ Spiral_eval::method4(format!("{}", v4)); │
00:00:38 #227 [Verbose] > │ let v9: string = fable_library_rust::String_::fromString(v7); │
00:00:38 #228 [Verbose] > │ let v10: string = sprintf!("{:?}", v9.clone()); │
00:00:38 #229 [Verbose] > │ printfn!("{0}", v10); │
00:00:38 #230 [Verbose] > │ { │
00:00:38 #231 [Verbose] > │ let v12: bool = v9.clone() == string("0+0i"); │
00:00:38 #232 [Verbose] > │ if (if v12 { true } else { Spiral_eval::method5(v12) }) == │
00:00:38 #233 [Verbose] > │ false { │
00:00:38 #234 [Verbose] > │ panic!("{}", │
00:00:38 #235 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:38 #236 [Verbose] > │ {:?}", v9, string("0+0i"))); │
00:00:38 #237 [Verbose] > │ } │
00:00:38 #238 [Verbose] > │ } │
00:00:38 #239 [Verbose] > │ } │
00:00:38 #240 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:38 #241 [Verbose] > │ } │
00:00:38 #242 [Verbose] > │ } │
00:00:38 #243 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:38 #244 [Verbose] > │ │
00:00:38 #245 [Verbose] > │ │
00:00:38 #246 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #247 [Verbose] >
00:00:38 #248 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 #249 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 #250 [Verbose] > │ ## complex_sin │
00:00:38 #251 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #252 [Verbose] >
00:00:38 #253 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #254 [Verbose] > inl re forall t. (c : complex t) : t =
00:00:38 #255 [Verbose] > inl c = join c
00:00:38 #256 [Verbose] > !\($'"!c.re"')
00:00:38 #257 [Verbose] >
00:00:38 #258 [Verbose] > inl im forall t. (c : complex t) : t =
00:00:38 #259 [Verbose] > inl c = join c
00:00:38 #260 [Verbose] > !\($'"!c.im"')
00:00:38 #261 [Verbose] >
00:00:38 #262 [Verbose] > inl complex_unbox forall t. (c : complex t) =
00:00:38 #263 [Verbose] > re c, im c
00:00:38 #264 [Verbose] >
00:00:38 #265 [Verbose] > inl (~.^) c = complex c
00:00:38 #266 [Verbose] >
00:00:38 #267 [Verbose] > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =
00:00:38 #268 [Verbose] > !\($'"!a == !b"')
00:00:38 #269 [Verbose] >
00:00:38 #270 [Verbose] > inl (.=) a b = complex_eq a b
00:00:38 #271 [Verbose] >
00:00:38 #272 [Verbose] > instance equable complex t = complex_eq
00:00:38 #273 [Verbose] >
00:00:38 #274 [Verbose] > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =
00:00:38 #275 [Verbose] > !\($'"!a + !b"')
00:00:38 #276 [Verbose] >
00:00:38 #277 [Verbose] > inl (.+) a b = complex_add a b
00:00:38 #278 [Verbose] >
00:00:38 #279 [Verbose] > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:38 #280 [Verbose] > !\($'"!a - !b"')
00:00:38 #281 [Verbose] >
00:00:38 #282 [Verbose] > inl (.-) a b = complex_sub a b
00:00:38 #283 [Verbose] >
00:00:38 #284 [Verbose] > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:38 #285 [Verbose] > !\($'"!a * !b"')
00:00:38 #286 [Verbose] >
00:00:38 #287 [Verbose] > inl (.*) a b = complex_mult a b
00:00:38 #288 [Verbose] >
00:00:38 #289 [Verbose] > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:38 #290 [Verbose] > !\($'"!a / !b"')
00:00:38 #291 [Verbose] >
00:00:38 #292 [Verbose] > inl (./) a b = complex_div a b
00:00:38 #293 [Verbose] >
00:00:38 #294 [Verbose] > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:38 #295 [Verbose] > inl c = join c
00:00:38 #296 [Verbose] > inl s = join s
00:00:38 #297 [Verbose] > !\($'"num_complex::Complex::powc(!c, !s)"')
00:00:38 #298 [Verbose] >
00:00:38 #299 [Verbose] > inl (.**) a b = powc b a
00:00:38 #300 [Verbose] >
00:00:38 #301 [Verbose] > inl complex_sin forall t. (c : complex t) : complex t =
00:00:38 #302 [Verbose] > !\($'"!c.sin()"')
00:00:38 #303 [Verbose] >
00:00:38 #304 [Verbose] > inl conj forall t. (c : complex t) : complex t =
00:00:38 #305 [Verbose] > !\($'"!c.conj()"')
00:00:38 #306 [Verbose] >
00:00:38 #307 [Verbose] > ╭─[ 340.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #308 [Verbose] > │ () │
00:00:38 #309 [Verbose] > │ │
00:00:38 #310 [Verbose] > │ │
00:00:38 #311 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #312 [Verbose] >
00:00:38 #313 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 #314 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 #315 [Verbose] > │ ## zeta │
00:00:38 #316 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #317 [Verbose] >
00:00:38 #318 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #319 [Verbose] > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex
00:00:38 #320 [Verbose] > f64 =
00:00:38 #321 [Verbose] > inl rec zeta count gamma s =
00:00:38 #322 [Verbose] > inl s = join s
00:00:38 #323 [Verbose] > if log then
00:00:38 #324 [Verbose] > !\($'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\", !count, !s)"')
00:00:38 #325 [Verbose] > if re s > 1 then
00:00:38 #326 [Verbose] > (.^(0, 0), (am.init 10000i32 id : a i32 _))
00:00:38 #327 [Verbose] > ||> am.fold fun acc n =>
00:00:38 #328 [Verbose] > acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))
00:00:38 #329 [Verbose] > else
00:00:38 #330 [Verbose] > inl gamma_term = gamma (.^(1, 0) .- s)
00:00:38 #331 [Verbose] > inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin
00:00:38 #332 [Verbose] > inl one_minus_s = .^(1 - re s, -(im s))
00:00:38 #333 [Verbose] > inl mirror_term =
00:00:38 #334 [Verbose] > if re one_minus_s <= 1
00:00:38 #335 [Verbose] > then .^(0, 0)
00:00:38 #336 [Verbose] > else
00:00:38 #337 [Verbose] > if count <= 3
00:00:38 #338 [Verbose] > then zeta (count + 1) gamma one_minus_s
00:00:38 #339 [Verbose] > else one_minus_s
00:00:38 #340 [Verbose] > inl reflection_formula =
00:00:38 #341 [Verbose] > .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*
00:00:38 #342 [Verbose] > mirror_term
00:00:38 #343 [Verbose] > reflection_formula
00:00:38 #344 [Verbose] > join zeta 0i32 gamma s
00:00:39 #345 [Verbose] >
00:00:39 #346 [Verbose] > ╭─[ 545.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 #347 [Verbose] > │ () │
00:00:39 #348 [Verbose] > │ │
00:00:39 #349 [Verbose] > │ │
00:00:39 #350 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #351 [Verbose] >
00:00:39 #352 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 #353 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 #354 [Verbose] > │ ## eval │
00:00:39 #355 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #356 [Verbose] >
00:00:39 #357 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 #358 [Verbose] > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =
00:00:39 #359 [Verbose] > inl py = join py
00:00:39 #360 [Verbose] > inl code = code |> sm'.as_str
00:00:39 #361 [Verbose] > !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')
00:00:39 #362 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:39 #363 [Verbose] >
00:00:39 #364 [Verbose] > inl use_pyanymethods () =
00:00:39 #365 [Verbose] > global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:39 #366 [Verbose] > pyo3::prelude::PyAnyMethods;\n//\""
00:00:39 #367 [Verbose] >
00:00:39 #368 [Verbose] > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =
00:00:39 #369 [Verbose] > inl attr = attr |> sm'.as_str
00:00:39 #370 [Verbose] > inl module = join module
00:00:39 #371 [Verbose] > use_pyanymethods ()
00:00:39 #372 [Verbose] > !\($'"!module.getattr(!attr)"')
00:00:39 #373 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:39 #374 [Verbose] >
00:00:39 #375 [Verbose] > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =
00:00:39 #376 [Verbose] > inl args = join args
00:00:39 #377 [Verbose] > inl module = join module
00:00:39 #378 [Verbose] > !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),
00:00:39 #379 [Verbose] > None)"')
00:00:39 #380 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:39 #381 [Verbose] >
00:00:39 #382 [Verbose] > inl extract forall t. (result : bound pyany) : _ t _ =
00:00:39 #383 [Verbose] > inl result = join result
00:00:39 #384 [Verbose] > use_pyanymethods ()
00:00:39 #385 [Verbose] > !\($'"!result.extract()"')
00:00:39 #386 [Verbose] > |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:39 #387 [Verbose] >
00:00:39 #388 [Verbose] > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =
00:00:39 #389 [Verbose] > inl code =
00:00:39 #390 [Verbose] > code
00:00:39 #391 [Verbose] > |> module_from_code py
00:00:39 #392 [Verbose] > |> resultm.unwrap'
00:00:39 #393 [Verbose] > inl fn =
00:00:39 #394 [Verbose] > code
00:00:39 #395 [Verbose] > |> getattr "fn"
00:00:39 #396 [Verbose] > |> resultm.unwrap'
00:00:39 #397 [Verbose] >
00:00:39 #398 [Verbose] > fn
00:00:39 #399 [Verbose] > |> call args
00:00:39 #400 [Verbose] > |> resultm.try'
00:00:39 #401 [Verbose] > |> extract
00:00:39 #402 [Verbose] > |> resultm.try'
00:00:39 #403 [Verbose] > |> complex
00:00:39 #404 [Verbose] > |> Ok
00:00:39 #405 [Verbose] > |> resultm.box
00:00:39 #406 [Verbose] >
00:00:39 #407 [Verbose] > inl call1_ log py s code =
00:00:39 #408 [Verbose] > inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:39 #409 [Verbose] >
00:00:39 #410 [Verbose] > inl s = new_pair (re s) (im s)
00:00:39 #411 [Verbose] > inl args = new_pair log s
00:00:39 #412 [Verbose] >
00:00:39 #413 [Verbose] > eval py code args
00:00:39 #414 [Verbose] >
00:00:39 #415 [Verbose] > inl call1_ log name py s line =
00:00:39 #416 [Verbose] > inl s = join s
00:00:39 #417 [Verbose] > join
00:00:39 #418 [Verbose] > ;[[
00:00:39 #419 [Verbose] > $'$"import sys"'
00:00:39 #420 [Verbose] > $'$"import traceback"'
00:00:39 #421 [Verbose] > $'$"import re"'
00:00:39 #422 [Verbose] > $'$"count = 0"'
00:00:39 #423 [Verbose] > $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'
00:00:39 #424 [Verbose] > $'$"def trace_calls(frame, event, arg):"'
00:00:39 #425 [Verbose] > $'$" global count"'
00:00:39 #426 [Verbose] > $'$" count += 1"'
00:00:39 #427 [Verbose] > $'$" if count < 200:"'
00:00:39 #428 [Verbose] > $'$" try:"'
00:00:39 #429 [Verbose] > $'$" args = {{ k: v for k, v in frame.f_locals.items() if
00:00:39 #430 [Verbose] > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not
00:00:39 #431 [Verbose] > callable(v) }}"'
00:00:39 #432 [Verbose] > $'$" args_str = \', \'.join([[
00:00:39 #433 [Verbose] > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,
00:00:39 #434 [Verbose] > v in args.items() ]])"'
00:00:39 #435 [Verbose] > $'$" print(f\\\"{{event}}({!name}) / f_code.co_name:
00:00:39 #436 [Verbose] > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}
00:00:39 #437 [Verbose] > / f_code.co_filename:
00:00:39 #438 [Verbose] > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:
00:00:39 #439 [Verbose] > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}
00:00:39 #440 [Verbose] > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else
00:00:39 #441 [Verbose] > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:
00:00:39 #442 [Verbose] > {{re.sub(memory_address_pattern, \' at 0x<?>\', repr(arg))}}\\\", flush=True)"'
00:00:39 #443 [Verbose] > $'$" except ValueError as e:"'
00:00:39 #444 [Verbose] > $'$" print(f\'{!name} / e: {{e}}\', flush=True)"'
00:00:39 #445 [Verbose] > $'$" return trace_calls"'
00:00:39 #446 [Verbose] > $'$"import mpmath"'
00:00:39 #447 [Verbose] > $'$"def fn(log, s):"'
00:00:39 #448 [Verbose] > $'$" global count"'
00:00:39 #449 [Verbose] > $'$" if log:"'
00:00:39 #450 [Verbose] > $'$" print(f\'{!name} / s: {{s}} / count: {{count}}\',
00:00:39 #451 [Verbose] > flush=True)"'
00:00:39 #452 [Verbose] > $'$" s = complex(*s)"'
00:00:39 #453 [Verbose] > $'$" try:"'
00:00:39 #454 [Verbose] > $'$" if log: sys.settrace(trace_calls)"'
00:00:39 #455 [Verbose] > line
00:00:39 #456 [Verbose] > $'$" if log:"'
00:00:39 #457 [Verbose] > $'$" sys.settrace(None)"'
00:00:39 #458 [Verbose] > $'$" print(f\'{!name} / result: {{s}} / count:
00:00:39 #459 [Verbose] > {{count}}\', flush=True)"'
00:00:39 #460 [Verbose] > $'$" except ValueError as e:"'
00:00:39 #461 [Verbose] > $'$" if s.real == 1:"'
00:00:39 #462 [Verbose] > $'$" s = complex(float(\'inf\'), 0)"'
00:00:39 #463 [Verbose] > $'$" return (s.real, s.imag)"'
00:00:39 #464 [Verbose] > ]]
00:00:39 #465 [Verbose] > |> call1_ log py s
00:00:39 #466 [Verbose] >
00:00:39 #467 [Verbose] > inl gamma_ log py s =
00:00:39 #468 [Verbose] > call1_ log "gamma_" py s $'$" s = mpmath.gamma(s)"'
00:00:39 #469 [Verbose] >
00:00:39 #470 [Verbose] > inl zeta_ log py s =
00:00:39 #471 [Verbose] > call1_ log "zeta_" py s $'$" s = mpmath.zeta(s)"'
00:00:39 #472 [Verbose] >
00:00:39 #473 [Verbose] > ╭─[ 500.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 #474 [Verbose] > │ () │
00:00:39 #475 [Verbose] > │ │
00:00:39 #476 [Verbose] > │ │
00:00:39 #477 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #478 [Verbose] >
00:00:39 #479 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 #480 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 #481 [Verbose] > │ ## run_test │
00:00:39 #482 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #483 [Verbose] >
00:00:39 #484 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 #485 [Verbose] > inl run_test log closure_fix (fn : (complex f64 -> complex f64) * (complex f64
00:00:39 #486 [Verbose] > -> complex f64) -> ()) =
00:00:39 #487 [Verbose] > inl fn_ (py : python) : resultm.result' () pyerr =
00:00:39 #488 [Verbose] > inl nan () =
00:00:39 #489 [Verbose] > !\($'"f64::NAN"')
00:00:39 #490 [Verbose] > inl gamma__ = fun (s : complex f64) =>
00:00:39 #491 [Verbose] > inl result = gamma_ log py s
00:00:39 #492 [Verbose] > if log then
00:00:39 #493 [Verbose] > inl s = join s
00:00:39 #494 [Verbose] > !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,
00:00:39 #495 [Verbose] > !result)"')
00:00:39 #496 [Verbose] > result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:39 #497 [Verbose] > .^(nan (), nan ())
00:00:39 #498 [Verbose] > inl zeta__ = fun (s : complex f64) =>
00:00:39 #499 [Verbose] > inl result = zeta_ log py s
00:00:39 #500 [Verbose] >
00:00:39 #501 [Verbose] > inl z = zeta true gamma__ s
00:00:39 #502 [Verbose] >
00:00:39 #503 [Verbose] > if log then
00:00:39 #504 [Verbose] > inl s = join s
00:00:39 #505 [Verbose] > !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:
00:00:39 #506 [Verbose] > {:?}\\\", !s, !result, !z)"')
00:00:39 #507 [Verbose] >
00:00:39 #508 [Verbose] > // re result - re x |> abs
00:00:39 #509 [Verbose] > // |> _assert_lt 0.001
00:00:39 #510 [Verbose] >
00:00:39 #511 [Verbose] > // im result - im x |> abs
00:00:39 #512 [Verbose] > // |> _assert_lt 0.001
00:00:39 #513 [Verbose] >
00:00:39 #514 [Verbose] > result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:39 #515 [Verbose] > .^(nan (), nan ())
00:00:39 #516 [Verbose] > join fn (zeta__, gamma__)
00:00:39 #517 [Verbose] >
00:00:39 #518 [Verbose] > Ok ()
00:00:39 #519 [Verbose] > |> resultm.box
00:00:39 #520 [Verbose] >
00:00:39 #521 [Verbose] > join
00:00:39 #522 [Verbose] > !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:39 #523 [Verbose] >
00:00:39 #524 [Verbose] > !\($'"let __result = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()> {
00:00:39 #525 [Verbose] > //"')
00:00:39 #526 [Verbose] >
00:00:39 #527 [Verbose] > let x' = fn_ (!\($'"py"') : python)
00:00:39 #528 [Verbose] > inl x' = join x'
00:00:39 #529 [Verbose] >
00:00:39 #530 [Verbose] > inl closure_fix = 2u8, 1u8
00:00:39 #531 [Verbose] > x' |> rust.fix_closure closure_fix
00:00:39 #532 [Verbose] >
00:00:39 #533 [Verbose] > (!\($'"__result"') : _ () pyerr)
00:00:39 #534 [Verbose] > |> resultm.unwrap'
00:00:39 #535 [Verbose] >
00:00:39 #536 [Verbose] > ╭─[ 370.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 #537 [Verbose] > │ () │
00:00:39 #538 [Verbose] > │ │
00:00:39 #539 [Verbose] > │ │
00:00:39 #540 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #541 [Verbose] >
00:00:39 #542 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 #543 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 #544 [Verbose] > │ ## test_zeta_at_known_values_ │
00:00:39 #545 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 #546 [Verbose] >
00:00:39 #547 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 #548 [Verbose] > inl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:39 #549 [Verbose] > ;[[
00:00:39 #550 [Verbose] > .^(2, 0), pi ** 2 / 6
00:00:39 #551 [Verbose] > .^(-1, 0), -1 / 12
00:00:39 #552 [Verbose] > ]]
00:00:39 #553 [Verbose] > |> fun x => a x : _ i32 _
00:00:39 #554 [Verbose] > |> am.iter fun s, e =>
00:00:39 #555 [Verbose] > inl result = zeta s
00:00:39 #556 [Verbose] >
00:00:39 #557 [Verbose] > result |> im |> _assert_eq 0
00:00:39 #558 [Verbose] > re result - e |> abs |> _assert_lt 0.0001
00:00:40 #559 [Verbose] >
00:00:40 #560 [Verbose] > ╭─[ 279.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:40 #561 [Verbose] > │ () │
00:00:40 #562 [Verbose] > │ │
00:00:40 #563 [Verbose] > │ │
00:00:40 #564 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #565 [Verbose] >
00:00:40 #566 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 #567 [Verbose] > // // test
00:00:40 #568 [Verbose] > // // rust=
00:00:40 #569 [Verbose] > // // print_code=false
00:00:40 #570 [Verbose] >
00:00:40 #571 [Verbose] > types ()
00:00:40 #572 [Verbose] > test_zeta_at_known_values_ true
00:00:50 #573 [Verbose] >
00:00:50 #574 [Verbose] > ╭─[ 10.17s - return value ]────────────────────────────────────────────────────╮
00:00:50 #575 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0 │
00:00:50 #576 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:50 #577 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:50 #578 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 #579 [Verbose] > │ / arg: None │
00:00:50 #580 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:50 #581 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:00:50 #582 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 #583 [Verbose] > │ / arg: None │
00:00:50 #584 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:00:50 #585 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:00:50 #586 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 #587 [Verbose] > │ / arg: None │
00:00:50 #588 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:00:50 #589 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #590 [Verbose] >
00:00:50 #591 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 #592 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 #593 [Verbose] > │ ## test_zeta_at_2_minus2 │
00:00:50 #594 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #595 [Verbose] >
00:00:50 #596 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 #597 [Verbose] > inl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:00:50 #598 [Verbose] > inl s = .^(2, -2)
00:00:50 #599 [Verbose] > inl result = zeta s
00:00:50 #600 [Verbose] >
00:00:50 #601 [Verbose] > (re result - 0.8673) |> abs |> _assert_lt 0.001
00:00:50 #602 [Verbose] > (im result - 0.2750) |> abs |> _assert_lt 0.001
00:00:50 #603 [Verbose] >
00:00:50 #604 [Verbose] > ╭─[ 245.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:50 #605 [Verbose] > │ () │
00:00:50 #606 [Verbose] > │ │
00:00:50 #607 [Verbose] > │ │
00:00:50 #608 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #609 [Verbose] >
00:00:50 #610 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 #611 [Verbose] > // // test
00:00:50 #612 [Verbose] > // // rust=
00:00:50 #613 [Verbose] > // // print_code=false
00:00:50 #614 [Verbose] >
00:00:50 #615 [Verbose] > types ()
00:00:50 #616 [Verbose] > test_zeta_at_2_minus2 true
00:00:59 #617 [Verbose] >
00:00:59 #618 [Verbose] > ╭─[ 8.67s - return value ]─────────────────────────────────────────────────────╮
00:00:59 #619 [Verbose] > │ zeta_ / s: (2.0, -2.0) / count: 0 │
00:00:59 #620 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0, │
00:00:59 #621 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:00:59 #622 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:59 #623 [Verbose] > │ / arg: None │
00:00:59 #624 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0, │
00:00:59 #625 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:00:59 #626 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:59 #627 [Verbose] > │ / arg: None │
00:00:59 #628 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0, │
00:00:59 #629 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:00:59 #630 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:59 #631 [Verbose] > │ / arg: None │
00:00:59 #632 [Verbose] > │ line(zeta_) / f_code.co_name: ... │
00:00:59 #633 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 #634 [Verbose] >
00:00:59 #635 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 #636 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 #637 [Verbose] > │ ## test_trivial_zero_at_negative_even___ │
00:00:59 #638 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 #639 [Verbose] >
00:00:59 #640 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 #641 [Verbose] > inl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun
00:00:59 #642 [Verbose] > zeta, gamma =>
00:00:59 #643 [Verbose] > (join listm'.init_series -2f64 -40 -2)
00:00:59 #644 [Verbose] > |> listm.iter fun n =>
00:00:59 #645 [Verbose] > inl s = .^(n, 0)
00:00:59 #646 [Verbose] > inl result = zeta s
00:00:59 #647 [Verbose] >
00:00:59 #648 [Verbose] > result |> re |> _assert_eq 0
00:00:59 #649 [Verbose] > result |> im |> _assert_eq 0
00:00:59 #650 [Verbose] >
00:00:59 #651 [Verbose] > ╭─[ 205.37ms - stdout ]────────────────────────────────────────────────────────╮
00:00:59 #652 [Verbose] > │ () │
00:00:59 #653 [Verbose] > │ │
00:00:59 #654 [Verbose] > │ │
00:00:59 #655 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 #656 [Verbose] >
00:00:59 #657 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 #658 [Verbose] > // // test
00:00:59 #659 [Verbose] > // // rust=
00:00:59 #660 [Verbose] > // // print_code=false
00:00:59 #661 [Verbose] >
00:00:59 #662 [Verbose] > types ()
00:00:59 #663 [Verbose] > test_trivial_zero_at_negative_even___ true
00:01:08 #664 [Verbose] >
00:01:08 #665 [Verbose] > ╭─[ 9.33s - return value ]─────────────────────────────────────────────────────╮
00:01:08 #666 [Verbose] > │ zeta_ / s: (-2.0, 0.0) / count: 0 │
00:01:08 #667 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:08 #668 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:08 #669 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:08 #670 [Verbose] > │ / arg: None │
00:01:08 #671 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:08 #672 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:01:08 #673 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:08 #674 [Verbose] > │ / arg: None │
00:01:08 #675 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:08 #676 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:01:08 #677 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:08 #678 [Verbose] > │ / arg: None │
00:01:08 #679 [Verbose] > │ line(zeta_) / f_code.co_nam... │
00:01:08 #680 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 #681 [Verbose] >
00:01:08 #682 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:08 #683 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:08 #684 [Verbose] > │ ## test_non_trivial_zero___ │
00:01:08 #685 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 #686 [Verbose] >
00:01:08 #687 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:08 #688 [Verbose] > inl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:01:08 #689 [Verbose] > ;[[
00:01:08 #690 [Verbose] > .^(0.5, 14.134725)
00:01:08 #691 [Verbose] > .^(0.5, 21.022040)
00:01:08 #692 [Verbose] > .^(0.5, 25.010857)
00:01:08 #693 [Verbose] > .^(0.5, 30.424876)
00:01:08 #694 [Verbose] > .^(0.5, 32.935062)
00:01:08 #695 [Verbose] > .^(0.5, 37.586178)
00:01:08 #696 [Verbose] > ]]
00:01:08 #697 [Verbose] > |> fun x => a x : _ i32 _
00:01:08 #698 [Verbose] > |> am.iter fun x =>
00:01:08 #699 [Verbose] > inl result = zeta x
00:01:08 #700 [Verbose] > result |> re |> abs |> _assert_lt 0.0001
00:01:08 #701 [Verbose] > result |> im |> abs |> _assert_lt 0.0001
00:01:09 #702 [Verbose] >
00:01:09 #703 [Verbose] > ╭─[ 381.33ms - stdout ]────────────────────────────────────────────────────────╮
00:01:09 #704 [Verbose] > │ () │
00:01:09 #705 [Verbose] > │ │
00:01:09 #706 [Verbose] > │ │
00:01:09 #707 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 #708 [Verbose] >
00:01:09 #709 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 #710 [Verbose] > // // test
00:01:09 #711 [Verbose] > // // rust=
00:01:09 #712 [Verbose] > // // print_code=false
00:01:09 #713 [Verbose] >
00:01:09 #714 [Verbose] > types ()
00:01:09 #715 [Verbose] > test_non_trivial_zero___ true
00:01:18 #716 [Verbose] >
00:01:18 #717 [Verbose] > ╭─[ 9.35s - return value ]─────────────────────────────────────────────────────╮
00:01:18 #718 [Verbose] > │ zeta_ / s: (0.5, 14.134725) / count: 0 │
00:01:18 #719 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:01:18 #720 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:18 #721 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:18 #722 [Verbose] > │ / arg: None │
00:01:18 #723 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:01:18 #724 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:01:18 #725 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:18 #726 [Verbose] > │ / arg: None │
00:01:18 #727 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:01:18 #728 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 / │
00:01:18 #729 [Verbose] > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 / │
00:01:18 #730 [Verbose] > │ f_back.f_code.co_filename: / arg: ... │
00:01:18 #731 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 #732 [Verbose] >
00:01:18 #733 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:18 #734 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:18 #735 [Verbose] > │ ## test_real_part_greater_than_one___ │
00:01:18 #736 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 #737 [Verbose] >
00:01:18 #738 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 #739 [Verbose] > inl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta,
00:01:18 #740 [Verbose] > gamma =>
00:01:18 #741 [Verbose] > inl points = ;[[2; 3; 4; 5; 10; 20; 50]]
00:01:18 #742 [Verbose] > (a points : _ i32 _)
00:01:18 #743 [Verbose] > |> am.iter fun point =>
00:01:18 #744 [Verbose] > inl s = .^(point, 0)
00:01:18 #745 [Verbose] > inl result = zeta s
00:01:18 #746 [Verbose] > result |> re |> _assert_gt 0
00:01:18 #747 [Verbose] > result |> im |> _assert_eq 0
00:01:18 #748 [Verbose] >
00:01:18 #749 [Verbose] > ╭─[ 266.92ms - stdout ]────────────────────────────────────────────────────────╮
00:01:18 #750 [Verbose] > │ () │
00:01:18 #751 [Verbose] > │ │
00:01:18 #752 [Verbose] > │ │
00:01:18 #753 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 #754 [Verbose] >
00:01:18 #755 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 #756 [Verbose] > // // test
00:01:18 #757 [Verbose] > // // rust=
00:01:18 #758 [Verbose] > // // print_code=false
00:01:18 #759 [Verbose] >
00:01:18 #760 [Verbose] > types ()
00:01:18 #761 [Verbose] > test_real_part_greater_than_one___ true
00:01:27 #762 [Verbose] >
00:01:27 #763 [Verbose] > ╭─[ 8.93s - return value ]─────────────────────────────────────────────────────╮
00:01:27 #764 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0 │
00:01:27 #765 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:01:27 #766 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:27 #767 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 #768 [Verbose] > │ / arg: None │
00:01:27 #769 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:01:27 #770 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:01:27 #771 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 #772 [Verbose] > │ / arg: None │
00:01:27 #773 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:01:27 #774 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:01:27 #775 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 #776 [Verbose] > │ / arg: None │
00:01:27 #777 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:01:27 #778 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 #779 [Verbose] >
00:01:27 #780 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:27 #781 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:27 #782 [Verbose] > │ ## test_zeta_at_1___ │
00:01:27 #783 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 #784 [Verbose] >
00:01:27 #785 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:27 #786 [Verbose] > inl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:01:27 #787 [Verbose] > inl s = .^(1, 0)
00:01:27 #788 [Verbose] > inl result = zeta s
00:01:27 #789 [Verbose] > result |> re |> _assert_eq limit.max
00:01:27 #790 [Verbose] > result |> im |> _assert_eq 0
00:01:28 #791 [Verbose] >
00:01:28 #792 [Verbose] > ╭─[ 254.01ms - stdout ]────────────────────────────────────────────────────────╮
00:01:28 #793 [Verbose] > │ () │
00:01:28 #794 [Verbose] > │ │
00:01:28 #795 [Verbose] > │ │
00:01:28 #796 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 #797 [Verbose] >
00:01:28 #798 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:28 #799 [Verbose] > // // test
00:01:28 #800 [Verbose] > // // rust=
00:01:28 #801 [Verbose] > // // print_code=false
00:01:28 #802 [Verbose] >
00:01:28 #803 [Verbose] > types ()
00:01:28 #804 [Verbose] > test_zeta_at_1___ true
00:01:38 #805 [Verbose] >
00:01:38 #806 [Verbose] > ╭─[ 10.25s - return value ]────────────────────────────────────────────────────╮
00:01:38 #807 [Verbose] > │ zeta_ / s: (1.0, 0.0) / count: 0 │
00:01:38 #808 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0, │
00:01:38 #809 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:38 #810 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 #811 [Verbose] > │ / arg: None │
00:01:38 #812 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0, │
00:01:38 #813 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:01:38 #814 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 #815 [Verbose] > │ / arg: None │
00:01:38 #816 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0, │
00:01:38 #817 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:01:38 #818 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 #819 [Verbose] > │ / arg: None │
00:01:38 #820 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:01:38 #821 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 #822 [Verbose] >
00:01:38 #823 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 #824 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 #825 [Verbose] > │ ## test_symmetry_across_real_axis___ │
00:01:38 #826 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 #827 [Verbose] >
00:01:38 #828 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 #829 [Verbose] > inl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta,
00:01:38 #830 [Verbose] > gamma =>
00:01:38 #831 [Verbose] > inl s = .^(2, 10)
00:01:38 #832 [Verbose] > inl result_positive_im = zeta s
00:01:38 #833 [Verbose] > inl result_negative_im = zeta .^(re s, -(im s))
00:01:38 #834 [Verbose] > inl conj = result_negative_im |> conj
00:01:38 #835 [Verbose] > result_positive_im |> re |> _assert_eq (conj |> re)
00:01:38 #836 [Verbose] > result_positive_im |> im |> _assert_eq (conj |> im)
00:01:38 #837 [Verbose] >
00:01:38 #838 [Verbose] > ╭─[ 225.12ms - stdout ]────────────────────────────────────────────────────────╮
00:01:38 #839 [Verbose] > │ () │
00:01:38 #840 [Verbose] > │ │
00:01:38 #841 [Verbose] > │ │
00:01:38 #842 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 #843 [Verbose] >
00:01:38 #844 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 #845 [Verbose] > // // test
00:01:38 #846 [Verbose] > // // rust=
00:01:38 #847 [Verbose] > // // print_code=false
00:01:38 #848 [Verbose] >
00:01:38 #849 [Verbose] > types ()
00:01:38 #850 [Verbose] > test_symmetry_across_real_axis___ true
00:01:49 #851 [Verbose] >
00:01:49 #852 [Verbose] > ╭─[ 10.28s - return value ]────────────────────────────────────────────────────╮
00:01:49 #853 [Verbose] > │ zeta_ / s: (2.0, 10.0) / count: 0 │
00:01:49 #854 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:49 #855 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:49 #856 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:49 #857 [Verbose] > │ / arg: None │
00:01:49 #858 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:49 #859 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:01:49 #860 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:49 #861 [Verbose] > │ / arg: None │
00:01:49 #862 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:49 #863 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:01:49 #864 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:49 #865 [Verbose] > │ / arg: None │
00:01:49 #866 [Verbose] > │ line(zeta_) / f_code.co_nam... │
00:01:49 #867 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 #868 [Verbose] >
00:01:49 #869 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 #870 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 #871 [Verbose] > │ ## test_behavior_near_origin___ │
00:01:49 #872 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 #873 [Verbose] >
00:01:49 #874 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 #875 [Verbose] > inl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma
00:01:49 #876 [Verbose] > =>
00:01:49 #877 [Verbose] > inl s = .^(0.01, 0.01)
00:01:49 #878 [Verbose] > inl result = zeta s
00:01:49 #879 [Verbose] > result |> re |> _assert_lt limit.max
00:01:49 #880 [Verbose] > result |> im |> _assert_lt limit.max
00:01:49 #881 [Verbose] >
00:01:49 #882 [Verbose] > ╭─[ 270.59ms - stdout ]────────────────────────────────────────────────────────╮
00:01:49 #883 [Verbose] > │ () │
00:01:49 #884 [Verbose] > │ │
00:01:49 #885 [Verbose] > │ │
00:01:49 #886 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 #887 [Verbose] >
00:01:49 #888 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 #889 [Verbose] > // // test
00:01:49 #890 [Verbose] > // // rust=
00:01:49 #891 [Verbose] > // // print_code=false
00:01:49 #892 [Verbose] >
00:01:49 #893 [Verbose] > types ()
00:01:49 #894 [Verbose] > test_behavior_near_origin___ true
00:01:58 #895 [Verbose] >
00:01:58 #896 [Verbose] > ╭─[ 9.06s - return value ]─────────────────────────────────────────────────────╮
00:01:58 #897 [Verbose] > │ zeta_ / s: (0.01, 0.01) / count: 0 │
00:01:58 #898 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1, │
00:01:58 #899 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:01:58 #900 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:58 #901 [Verbose] > │ / arg: None │
00:01:58 #902 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1, │
00:01:58 #903 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:01:58 #904 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:58 #905 [Verbose] > │ / arg: None │
00:01:58 #906 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1, │
00:01:58 #907 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 / │
00:01:58 #908 [Verbose] > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 / │
00:01:58 #909 [Verbose] > │ f_back.f_code.co_filename: / arg: None │
00:01:58 #910 [Verbose] > │ line(zeta_)... │
00:01:58 #911 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 #912 [Verbose] >
00:01:58 #913 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 #914 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 #915 [Verbose] > │ ## test_imaginary_axis │
00:01:58 #916 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 #917 [Verbose] >
00:01:58 #918 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 #919 [Verbose] > inl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:01:58 #920 [Verbose] > (join a ;[[10; 20; 30; 40; 50; 60; 70; 80; 90; 100]] : _ i32 _)
00:01:58 #921 [Verbose] > |> am.iter fun s =>
00:01:58 #922 [Verbose] > inl s = .^(0, s)
00:01:58 #923 [Verbose] > inl result = zeta s
00:01:58 #924 [Verbose] > result |> re |> _assert_ne 0
00:01:58 #925 [Verbose] > result |> im |> _assert_ne 0
00:01:58 #926 [Verbose] >
00:01:58 #927 [Verbose] > ╭─[ 217.26ms - stdout ]────────────────────────────────────────────────────────╮
00:01:58 #928 [Verbose] > │ () │
00:01:58 #929 [Verbose] > │ │
00:01:58 #930 [Verbose] > │ │
00:01:58 #931 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 #932 [Verbose] >
00:01:58 #933 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 #934 [Verbose] > // // test
00:01:58 #935 [Verbose] > // // rust=
00:01:58 #936 [Verbose] > // // print_code=false
00:01:58 #937 [Verbose] >
00:01:58 #938 [Verbose] > types ()
00:01:58 #939 [Verbose] > test_imaginary_axis true
00:02:12 #940 [Verbose] >
00:02:12 #941 [Verbose] > ╭─[ 13.77s - return value ]────────────────────────────────────────────────────╮
00:02:12 #942 [Verbose] > │ zeta_ / s: (0.0, 10.0) / count: 0 │
00:02:12 #943 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0, │
00:02:12 #944 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:02:12 #945 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:12 #946 [Verbose] > │ / arg: None │
00:02:12 #947 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0, │
00:02:12 #948 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:02:12 #949 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:12 #950 [Verbose] > │ / arg: None │
00:02:12 #951 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0, │
00:02:12 #952 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:02:12 #953 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:12 #954 [Verbose] > │ / arg: None │
00:02:12 #955 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_... │
00:02:12 #956 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 #957 [Verbose] >
00:02:12 #958 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:12 #959 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:12 #960 [Verbose] > │ ## test_critical_strip │
00:02:12 #961 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 #962 [Verbose] >
00:02:12 #963 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 #964 [Verbose] > inl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:02:12 #965 [Verbose] > ;[[
00:02:12 #966 [Verbose] > .^(0.5, 14.134725)
00:02:12 #967 [Verbose] > .^(0.75, 20.5)
00:02:12 #968 [Verbose] > .^(1.25, 30.1)
00:02:12 #969 [Verbose] > .^(0.25, 40.0)
00:02:12 #970 [Verbose] > .^(1.0, 50.0)
00:02:12 #971 [Verbose] > ]]
00:02:12 #972 [Verbose] > |> fun x => a x : _ i32 _
00:02:12 #973 [Verbose] > |> am.iter fun s =>
00:02:12 #974 [Verbose] > inl result = zeta s
00:02:12 #975 [Verbose] > result |> re |> _assert_ne 0
00:02:12 #976 [Verbose] > result |> im |> _assert_ne 0
00:02:12 #977 [Verbose] >
00:02:12 #978 [Verbose] > ╭─[ 232.16ms - stdout ]────────────────────────────────────────────────────────╮
00:02:12 #979 [Verbose] > │ () │
00:02:12 #980 [Verbose] > │ │
00:02:12 #981 [Verbose] > │ │
00:02:12 #982 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 #983 [Verbose] >
00:02:12 #984 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 #985 [Verbose] > // // test
00:02:12 #986 [Verbose] > // // rust=
00:02:12 #987 [Verbose] > // // print_code=false
00:02:12 #988 [Verbose] >
00:02:12 #989 [Verbose] > types ()
00:02:12 #990 [Verbose] > test_critical_strip true
00:02:21 #991 [Verbose] >
00:02:21 #992 [Verbose] > ╭─[ 9.32s - return value ]─────────────────────────────────────────────────────╮
00:02:21 #993 [Verbose] > │ zeta_ / s: (0.5, 14.134725) / count: 0 │
00:02:21 #994 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:02:21 #995 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:02:21 #996 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:21 #997 [Verbose] > │ / arg: None │
00:02:21 #998 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:02:21 #999 [Verbose] > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:02:21 #1000 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:21 #1001 [Verbose] > │ / arg: None │
00:02:21 #1002 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1, │
00:02:21 #1003 [Verbose] > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 / │
00:02:21 #1004 [Verbose] > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 / │
00:02:21 #1005 [Verbose] > │ f_back.f_code.co_filename: / arg: ... │
00:02:21 #1006 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:21 #1007 [Verbose] >
00:02:21 #1008 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:21 #1009 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:21 #1010 [Verbose] > │ ## test_reflection_formula_for_specific_value │
00:02:21 #1011 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:21 #1012 [Verbose] >
00:02:21 #1013 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:21 #1014 [Verbose] > inl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun
00:02:21 #1015 [Verbose] > zeta, gamma =>
00:02:21 #1016 [Verbose] > ;[[
00:02:21 #1017 [Verbose] > .^(3, 4)
00:02:21 #1018 [Verbose] > .^(2.5, -3.5)
00:02:21 #1019 [Verbose] > .^(1.5, 2.5)
00:02:21 #1020 [Verbose] > .^(0.5, 14.134725)
00:02:21 #1021 [Verbose] > ]]
00:02:21 #1022 [Verbose] > |> fun x => a x : _ i32 _
00:02:21 #1023 [Verbose] > |> am.iter fun s =>
00:02:21 #1024 [Verbose] > inl lhs = zeta s
00:02:21 #1025 [Verbose] > inl reflection_coefficient =
00:02:21 #1026 [Verbose] > (.^(2, 0) .** s)
00:02:21 #1027 [Verbose] > .* (.^(pi, 0) .** (s .- .^(1, 0)))
00:02:21 #1028 [Verbose] > .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)
00:02:21 #1029 [Verbose] > .* gamma (.^(1, 0) .- s)
00:02:21 #1030 [Verbose] >
00:02:21 #1031 [Verbose] > inl one_minus_s = .^(1 - re s, -(im s))
00:02:21 #1032 [Verbose] > inl rhs = reflection_coefficient .* zeta one_minus_s
00:02:21 #1033 [Verbose] >
00:02:21 #1034 [Verbose] > re lhs - re rhs |> abs |> _assert_lt 0.0001
00:02:21 #1035 [Verbose] > im lhs - im rhs |> abs |> _assert_lt 0.0001
00:02:22 #1036 [Verbose] >
00:02:22 #1037 [Verbose] > ╭─[ 198.81ms - stdout ]────────────────────────────────────────────────────────╮
00:02:22 #1038 [Verbose] > │ () │
00:02:22 #1039 [Verbose] > │ │
00:02:22 #1040 [Verbose] > │ │
00:02:22 #1041 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 #1042 [Verbose] >
00:02:22 #1043 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:22 #1044 [Verbose] > // // test
00:02:22 #1045 [Verbose] > // // rust=
00:02:22 #1046 [Verbose] > // // print_code=false
00:02:22 #1047 [Verbose] >
00:02:22 #1048 [Verbose] > types ()
00:02:22 #1049 [Verbose] > test_reflection_formula_for_specific_value true
00:02:31 #1050 [Verbose] >
00:02:31 #1051 [Verbose] > ╭─[ 9.08s - return value ]─────────────────────────────────────────────────────╮
00:02:31 #1052 [Verbose] > │ zeta_ / s: (3.0, 4.0) / count: 0 │
00:02:31 #1053 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0, │
00:02:31 #1054 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:02:31 #1055 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:31 #1056 [Verbose] > │ / arg: None │
00:02:31 #1057 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0, │
00:02:31 #1058 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:02:31 #1059 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:31 #1060 [Verbose] > │ / arg: None │
00:02:31 #1061 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0, │
00:02:31 #1062 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:02:31 #1063 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:31 #1064 [Verbose] > │ / arg: None │
00:02:31 #1065 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:02:31 #1066 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 #1067 [Verbose] >
00:02:31 #1068 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 #1069 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 #1070 [Verbose] > │ ## test_euler_product_formula │
00:02:31 #1071 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 #1072 [Verbose] >
00:02:31 #1073 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 #1074 [Verbose] > inl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:02:31 #1075 [Verbose] > inl s_values = ;[[2; 2.5; 3; 3.5; 4; 4.5; 5]]
00:02:31 #1076 [Verbose] > inl primes = ;[[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53;
00:02:31 #1077 [Verbose] > 59; 61; 67; 71]]
00:02:31 #1078 [Verbose] > (a s_values : _ i32 _)
00:02:31 #1079 [Verbose] > |> am.iter fun s_re =>
00:02:31 #1080 [Verbose] > inl s = .^(s_re, 0)
00:02:31 #1081 [Verbose] > inl product =
00:02:31 #1082 [Verbose] > (1, (a primes : _ i32 _))
00:02:31 #1083 [Verbose] > ||> am.fold fun acc x =>
00:02:31 #1084 [Verbose] > acc * 1 / (1 - x ** -s_re)
00:02:31 #1085 [Verbose] >
00:02:31 #1086 [Verbose] > inl result = zeta s
00:02:31 #1087 [Verbose] > re result - product |> abs |> _assert_lt 0.01
00:02:31 #1088 [Verbose] > result |> im |> _assert_lt 0.01
00:02:31 #1089 [Verbose] >
00:02:31 #1090 [Verbose] > ╭─[ 226.26ms - stdout ]────────────────────────────────────────────────────────╮
00:02:31 #1091 [Verbose] > │ () │
00:02:31 #1092 [Verbose] > │ │
00:02:31 #1093 [Verbose] > │ │
00:02:31 #1094 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 #1095 [Verbose] >
00:02:31 #1096 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 #1097 [Verbose] > // // test
00:02:31 #1098 [Verbose] > // // rust=
00:02:31 #1099 [Verbose] > // // print_code=false
00:02:31 #1100 [Verbose] >
00:02:31 #1101 [Verbose] > types ()
00:02:31 #1102 [Verbose] > test_euler_product_formula true
00:02:40 #1103 [Verbose] >
00:02:40 #1104 [Verbose] > ╭─[ 9.48s - return value ]─────────────────────────────────────────────────────╮
00:02:40 #1105 [Verbose] > │ zeta_ / s: (2.0, 0.0) / count: 0 │
00:02:40 #1106 [Verbose] > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:02:40 #1107 [Verbose] > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename: │
00:02:40 #1108 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:40 #1109 [Verbose] > │ / arg: None │
00:02:40 #1110 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:02:40 #1111 [Verbose] > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename: │
00:02:40 #1112 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:40 #1113 [Verbose] > │ / arg: None │
00:02:40 #1114 [Verbose] > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0, │
00:02:40 #1115 [Verbose] > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename: │
00:02:40 #1116 [Verbose] > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:40 #1117 [Verbose] > │ / arg: None │
00:02:40 #1118 [Verbose] > │ line(zeta_) / f_code.co_name: z... │
00:02:40 #1119 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 #1120 [Verbose] >
00:02:41 #1121 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:41 #1122 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 #1123 [Verbose] > │ ## graph │
00:02:41 #1124 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 #1125 [Verbose] >
00:02:41 #1126 [Verbose] > ── mermaid ─────────────────────────────────────────────────────────────────────
00:02:41 #1127 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 #1128 [Verbose] > │ <div class="mermaidMarkdownContainer" style="background-color:white"> │
00:02:41 #1129 [Verbose] > │ <link rel="stylesheet" │
00:02:41 #1130 [Verbose] > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:02:41 #1131 [Verbose] > │ css"> │
00:02:41 #1132 [Verbose] > │ <div id="298a912ca10340b98cb32093bfacbf67"></div> │
00:02:41 #1133 [Verbose] > │ <script type="module"> │
00:02:41 #1134 [Verbose] > │ │
00:02:41 #1135 [Verbose] > │ import mermaid from │
00:02:41 #1136 [Verbose] > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs'; │
00:02:41 #1137 [Verbose] > │ let renderTarget = │
00:02:41 #1138 [Verbose] > │ document.getElementById('298a912ca10340b98cb32093bfacbf67'); │
00:02:41 #1139 [Verbose] > │ try { │
00:02:41 #1140 [Verbose] > │ const {svg, bindFunctions} = await │
00:02:41 #1141 [Verbose] > │ mermaid.mermaidAPI.render( │
00:02:41 #1142 [Verbose] > │ 'mermaid_298a912ca10340b98cb32093bfacbf67', │
00:02:41 #1143 [Verbose] > │ `graph TD │
00:02:41 #1144 [Verbose] > │ zeta("zeta()") --> convert │
00:02:41 #1145 [Verbose] > │ zeta --> f["f()"] │
00:02:41 #1146 [Verbose] > │ f --> mpc_f["mpc_zeta()"] │
00:02:41 #1147 [Verbose] > │ f --> mpf_f["mpf_zeta()"] │
00:02:41 #1148 [Verbose] > │ convert --> from_float │
00:02:41 #1149 [Verbose] > │ from_float --> from_man_exp │
00:02:41 #1150 [Verbose] > │ from_man_exp --> python_bitcount │
00:02:41 #1151 [Verbose] > │ python_bitcount --> _normalize │
00:02:41 #1152 [Verbose] > │ _normalize --> make_mpc │
00:02:41 #1153 [Verbose] > │ make_mpc --> mpc_zeta["mpc_zeta()"] │
00:02:41 #1154 [Verbose] > │ mpc_zeta --> mpf_zeta["mpf_zeta()"] │
00:02:41 #1155 [Verbose] > │ mpf_zeta --> to_int │
00:02:41 #1156 [Verbose] > │ to_int --> mpf_zeta_int["mpf_zeta_int()"] │
00:02:41 #1157 [Verbose] > │ mpf_zeta_int --> borwein_coefficients │
00:02:41 #1158 [Verbose] > │ borwein_coefficients --> from_man_exp_2("from_man_exp()") │
00:02:41 #1159 [Verbose] > │ from_man_exp_2 --> python_bitcount_2("python_bitcount()") │
00:02:41 #1160 [Verbose] > │ python_bitcount_2 --> _normalize_2("_normalize()") │
00:02:41 #1161 [Verbose] > │ _normalize_2 --> make_mpc_2("make_mpc()") │
00:02:41 #1162 [Verbose] > │ make_mpc_2 --> stop_trace │
00:02:41 #1163 [Verbose] > │ mpf_zeta_int --> mpf_bernoulli │
00:02:41 #1164 [Verbose] > │ mpf_bernoulli --> bernoulli_size │
00:02:41 #1165 [Verbose] > │ bernoulli_size --> mpf_rdiv_int │
00:02:41 #1166 [Verbose] > │ mpf_rdiv_int --> python_bitcount_3("python_bitcount()") │
00:02:41 #1167 [Verbose] > │ python_bitcount_3 --> _normalize1 │
00:02:41 #1168 [Verbose] > │ _normalize1 --> from_man_exp_3("from_man_exp()") │
00:02:41 #1169 [Verbose] > │ from_man_exp_3 --> _normalize_3("_normalize()") │
00:02:41 #1170 [Verbose] > │ _normalize_3 --> mpf_sub │
00:02:41 #1171 [Verbose] > │ mpf_sub --> mpf_add │
00:02:41 #1172 [Verbose] > │ mpf_add --> mpf_neg │
00:02:41 #1173 [Verbose] > │ mpf_neg --> _normalize1_2("_normalize1()") │
00:02:41 #1174 [Verbose] > │ _normalize1_2 --> from_int │
00:02:41 #1175 [Verbose] > │ from_int --> mpf_div │
00:02:41 #1176 [Verbose] > │ mpf_div --> python_bitcount_4("python_bitcount()") │
00:02:41 #1177 [Verbose] > │ python_bitcount_4 --> _normalize1_3("_normalize1()") │
00:02:41 #1178 [Verbose] > │ _normalize1_3 --> make_mpc_3("make_mpc()") │
00:02:41 #1179 [Verbose] > │ make_mpc_3 --> final_stop["stop_trace()"]`); │
00:02:41 #1180 [Verbose] > │ renderTarget.innerHTML = svg; │
00:02:41 #1181 [Verbose] > │ bindFunctions?.(renderTarget); │
00:02:41 #1182 [Verbose] > │ } │
00:02:41 #1183 [Verbose] > │ catch (error) { │
00:02:41 #1184 [Verbose] > │ console.log(error); │
00:02:41 #1185 [Verbose] > │ } │
00:02:41 #1186 [Verbose] > │ </script> │
00:02:41 #1187 [Verbose] > │ </div> │
00:02:41 #1188 [Verbose] > │ │
00:02:41 #1189 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 #1190 [Verbose] >
00:02:41 #1191 [Verbose] > ── mermaid ─────────────────────────────────────────────────────────────────────
00:02:41 #1192 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 #1193 [Verbose] > │ <div class="mermaidMarkdownContainer" style="background-color:white"> │
00:02:41 #1194 [Verbose] > │ <link rel="stylesheet" │
00:02:41 #1195 [Verbose] > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:02:41 #1196 [Verbose] > │ css"> │
00:02:41 #1197 [Verbose] > │ <div id="60d990ebc85a4624a515ec8d2e724708"></div> │
00:02:41 #1198 [Verbose] > │ <script type="module"> │
00:02:41 #1199 [Verbose] > │ │
00:02:41 #1200 [Verbose] > │ import mermaid from │
00:02:41 #1201 [Verbose] > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs'; │
00:02:41 #1202 [Verbose] > │ let renderTarget = │
00:02:41 #1203 [Verbose] > │ document.getElementById('60d990ebc85a4624a515ec8d2e724708'); │
00:02:41 #1204 [Verbose] > │ try { │
00:02:41 #1205 [Verbose] > │ const {svg, bindFunctions} = await │
00:02:41 #1206 [Verbose] > │ mermaid.mermaidAPI.render( │
00:02:41 #1207 [Verbose] > │ 'mermaid_60d990ebc85a4624a515ec8d2e724708', │
00:02:41 #1208 [Verbose] > │ `graph TD │
00:02:41 #1209 [Verbose] > │ zeta_rust("zeta() - Rust") --> num_traits("num-traits") │
00:02:41 #1210 [Verbose] > │ zeta_rust --> num_bigint("num-bigint") │
00:02:41 #1211 [Verbose] > │ zeta_rust --> rust_decimal("rust_decimal for precision") │
00:02:41 #1212 [Verbose] > │ zeta_rust --> error_handling("Rust Error Handling") │
00:02:41 #1213 [Verbose] > │ │
00:02:41 #1214 [Verbose] > │ num_traits --> num_traits_usage("Use for common traits") │
00:02:41 #1215 [Verbose] > │ num_bigint --> bigint_operations("Arbitrary-precision arithmetic │
00:02:41 #1216 [Verbose] > │ operations") │
00:02:41 #1217 [Verbose] > │ rust_decimal --> decimal_operations("High-precision decimal operations") │
00:02:41 #1218 [Verbose] > │ error_handling --> result_type("Use Result<T, E> for error handling") │
00:02:41 #1219 [Verbose] > │ │
00:02:41 #1220 [Verbose] > │ bigint_operations --> convert_rust("convert() - Rust") │
00:02:41 #1221 [Verbose] > │ bigint_operations --> normalize_rust("_normalize() - Rust") │
00:02:41 #1222 [Verbose] > │ │
00:02:41 #1223 [Verbose] > │ convert_rust --> from_float_rust("from_float() - Rust") │
00:02:41 #1224 [Verbose] > │ from_float_rust --> from_man_exp_rust("from_man_exp() - Rust") │
00:02:41 #1225 [Verbose] > │ from_man_exp_rust --> bitcount_rust("bitcount() - Rust") │
00:02:41 #1226 [Verbose] > │ bitcount_rust --> normalize_rust │
00:02:41 #1227 [Verbose] > │ normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust") │
00:02:41 #1228 [Verbose] > │ mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust") │
00:02:41 #1229 [Verbose] > │ mpf_zeta_rust --> to_int_rust("to_int() - Rust") │
00:02:41 #1230 [Verbose] > │ to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust") │
00:02:41 #1231 [Verbose] > │ │
00:02:41 #1232 [Verbose] > │ mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients() │
00:02:41 #1233 [Verbose] > │ - Rust") │
00:02:41 #1234 [Verbose] > │ borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() - │
00:02:41 #1235 [Verbose] > │ Rust") │
00:02:41 #1236 [Verbose] > │ from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust") │
00:02:41 #1237 [Verbose] > │ bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust") │
00:02:41 #1238 [Verbose] > │ normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust") │
00:02:41 #1239 [Verbose] > │ │
00:02:41 #1240 [Verbose] > │ mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust") │
00:02:41 #1241 [Verbose] > │ mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust") │
00:02:41 #1242 [Verbose] > │ bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust") │
00:02:41 #1243 [Verbose] > │ mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust") │
00:02:41 #1244 [Verbose] > │ bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust") │
00:02:41 #1245 [Verbose] > │ normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust") │
00:02:41 #1246 [Verbose] > │ from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust") │
00:02:41 #1247 [Verbose] > │ normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust") │
00:02:41 #1248 [Verbose] > │ mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust") │
00:02:41 #1249 [Verbose] > │ mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust") │
00:02:41 #1250 [Verbose] > │ mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust") │
00:02:41 #1251 [Verbose] > │ normalize1_rust_2 --> from_int_rust("from_int() - Rust") │
00:02:41 #1252 [Verbose] > │ from_int_rust --> mpf_div_rust("mpf_div() - Rust") │
00:02:41 #1253 [Verbose] > │ mpf_div_rust --> bitcount_rust_4("bitcount() - Rust") │
00:02:41 #1254 [Verbose] > │ bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust") │
00:02:41 #1255 [Verbose] > │ │
00:02:41 #1256 [Verbose] > │ style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px │
00:02:41 #1257 [Verbose] > │ style num_traits fill:#bbf,stroke:#333,stroke-width:2px │
00:02:41 #1258 [Verbose] > │ style num_bigint fill:#bbf,stroke:#333,stroke-width:2px │
00:02:41 #1259 [Verbose] > │ style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px │
00:02:41 #1260 [Verbose] > │ style error_handling fill:#bbf,stroke:#333,stroke-width:2px │
00:02:41 #1261 [Verbose] > │ style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px │
00:02:41 #1262 [Verbose] > │ style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px │
00:02:41 #1263 [Verbose] > │ style result_type fill:#bfb,stroke:#333,stroke-width:2px`); │
00:02:41 #1264 [Verbose] > │ renderTarget.innerHTML = svg; │
00:02:41 #1265 [Verbose] > │ bindFunctions?.(renderTarget); │
00:02:41 #1266 [Verbose] > │ } │
00:02:41 #1267 [Verbose] > │ catch (error) { │
00:02:41 #1268 [Verbose] > │ console.log(error); │
00:02:41 #1269 [Verbose] > │ } │
00:02:41 #1270 [Verbose] > │ </script> │
00:02:41 #1271 [Verbose] > │ </div> │
00:02:41 #1272 [Verbose] > │ │
00:02:41 #1273 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 #1274 [Verbose] >
00:02:41 #1275 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:41 #1276 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 #1277 [Verbose] > │ ## tests │
00:02:41 #1278 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 #1279 [Verbose] >
00:02:41 #1280 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 #1281 [Verbose] > inl tests () =
00:02:41 #1282 [Verbose] > !\($'"}//"') : ()
00:02:41 #1283 [Verbose] >
00:02:41 #1284 [Verbose] > !\($'"#[[test]] fn test_zeta_at_known_values_() { //"') : ()
00:02:41 #1285 [Verbose] > test_zeta_at_known_values_ false
00:02:41 #1286 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_2_minus2() { //"') : ()
00:02:41 #1287 [Verbose] > test_zeta_at_2_minus2 false
00:02:41 #1288 [Verbose] > !\($'"} #[[test]] fn test_trivial_zero_at_negative_even___() { //"') : ()
00:02:41 #1289 [Verbose] > test_trivial_zero_at_negative_even___ false
00:02:41 #1290 [Verbose] > !\($'"} #[[test]] fn test_non_trivial_zero___() { //"') : ()
00:02:41 #1291 [Verbose] > test_non_trivial_zero___ false
00:02:41 #1292 [Verbose] > !\($'"} #[[test]] fn test_real_part_greater_than_one___() { //"') : ()
00:02:41 #1293 [Verbose] > test_real_part_greater_than_one___ false
00:02:41 #1294 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_1___() { //"') : ()
00:02:41 #1295 [Verbose] > test_zeta_at_1___ false
00:02:41 #1296 [Verbose] > !\($'"} #[[test]] fn test_symmetry_across_real_axis___() { //"') : ()
00:02:41 #1297 [Verbose] > test_symmetry_across_real_axis___ false
00:02:41 #1298 [Verbose] > !\($'"} #[[test]] fn test_behavior_near_origin___() { //"') : ()
00:02:41 #1299 [Verbose] > test_behavior_near_origin___ false
00:02:41 #1300 [Verbose] > !\($'"} #[[test]] fn test_imaginary_axis() { //"') : ()
00:02:41 #1301 [Verbose] > test_imaginary_axis false
00:02:41 #1302 [Verbose] > !\($'"} #[[test]] fn test_critical_strip() { //"') : ()
00:02:41 #1303 [Verbose] > test_critical_strip false
00:02:41 #1304 [Verbose] > !\($'"} #[[test]] fn test_reflection_formula_for_specific_value() { //"') :
00:02:41 #1305 [Verbose] > ()
00:02:41 #1306 [Verbose] > test_reflection_formula_for_specific_value false
00:02:41 #1307 [Verbose] > !\($'"} #[[test]] fn test_euler_product_formula() { //"') : ()
00:02:41 #1308 [Verbose] > test_euler_product_formula false
00:02:41 #1309 [Verbose] >
00:02:41 #1310 [Verbose] > ╭─[ 251.07ms - stdout ]────────────────────────────────────────────────────────╮
00:02:41 #1311 [Verbose] > │ () │
00:02:41 #1312 [Verbose] > │ │
00:02:41 #1313 [Verbose] > │ │
00:02:41 #1314 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 #1315 [Verbose] >
00:02:41 #1316 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 #1317 [Verbose] > // // rust=
00:02:41 #1318 [Verbose] >
00:02:41 #1319 [Verbose] > inl main (_args : array_base string) =
00:02:41 #1320 [Verbose] > inl value = 1i32
00:02:41 #1321 [Verbose] > console.write_line ($"$\"value: {!value}\"" : string)
00:02:41 #1322 [Verbose] > 0i32
00:02:41 #1323 [Verbose] >
00:02:41 #1324 [Verbose] > inl main () =
00:02:41 #1325 [Verbose] > types ()
00:02:41 #1326 [Verbose] > $"let tests () = !tests ()" : ()
00:02:41 #1327 [Verbose] > $"let main args = !main args" : ()
00:02:41 #1328 [Verbose] >
00:02:41 #1329 [Verbose] > ╭─[ 389.43ms - stdout ]────────────────────────────────────────────────────────╮
00:02:41 #1330 [Verbose] > │ │
00:02:41 #1331 [Verbose] > │ .fsx: │
00:02:41 #1332 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:02:41 #1333 [Verbose] > │ end │
00:02:41 #1334 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:02:41 #1335 [Verbose] > │ class end │
00:02:41 #1336 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:02:41 #1337 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:02:41 #1338 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:02:41 #1339 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:02:41 #1340 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:02:41 #1341 [Verbose] > │ class end │
00:02:41 #1342 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:02:41 #1343 [Verbose] > │ class end │
00:02:41 #1344 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:02:41 #1345 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:02:41 #1346 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:02:41 #1347 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:02:41 #1348 [Verbose] > │ class end │
00:02:41 #1349 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:02:41 #1350 [Verbose] > │ class end │
00:02:41 #1351 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:02:41 #1352 [Verbose] > │ class end │
00:02:41 #1353 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:02:41 #1354 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:02:41 #1355 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:02:41 #1356 [Verbose] > │ std_pin_Pin<'T> = class end │
00:02:41 #1357 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:02:41 #1358 [Verbose] > │ = class end │
00:02:41 #1359 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:02:41 #1360 [Verbose] > │ std_rc_Weak<'T> = class end │
00:02:41 #1361 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:02:41 #1362 [Verbose] > │ std_sync_Arc<'T> = class end │
00:02:41 #1363 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:02:41 #1364 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:02:41 #1365 [Verbose] > │ base64_DecodeError = class end │
00:02:41 #1366 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:02:41 #1367 [Verbose] > │ borsh_io_Error = class end │
00:02:41 #1368 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:02:41 #1369 [Verbose] > │ js_sys_JsString = class end │
00:02:41 #1370 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:02:41 #1371 [Verbose] > │ serde_json_Error = class end │
00:02:41 #1372 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:02:41 #1373 [Verbose] > │ serde_json_Value = class end │
00:02:41 #1374 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:02:41 #1375 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:02:41 #1376 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:02:41 #1377 [Verbose] > │ std_str_Utf8Error = class end │
00:02:41 #1378 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:02:41 #1379 [Verbose] > │ std_string_String = class end │
00:02:41 #1380 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type │
00:02:41 #1381 [Verbose] > │ num_complex_Complex<'T> = class end │
00:02:41 #1382 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type │
00:02:41 #1383 [Verbose] > │ pyo3_types_PyModule = class end │
00:02:41 #1384 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │
00:02:41 #1385 [Verbose] > │ = class end │
00:02:41 #1386 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python = │
00:02:41 #1387 [Verbose] > │ class end │
00:02:41 #1388 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │
00:02:41 #1389 [Verbose] > │ end │
00:02:41 #1390 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │
00:02:41 #1391 [Verbose] > │ end │
00:02:41 #1392 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () "); │
00:02:41 #1393 [Verbose] > │ use pyo3::prelude::PyAnyMethods; │
00:02:41 #1394 [Verbose] > │ //" │
00:02:41 #1395 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:02:41 #1396 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : string} │
00:02:41 #1397 [Verbose] > │ and Mut2 = {mutable l0 : int32; mutable l1 : num_complex_Complex<float>} │
00:02:41 #1398 [Verbose] > │ and [<Struct>] US0 = │
00:02:41 #1399 [Verbose] > │ | US0_0 │
00:02:41 #1400 [Verbose] > │ | US0_1 of f1_0 : num_complex_Complex<float> │
00:02:41 #1401 [Verbose] > │ and UH0 = │
00:02:41 #1402 [Verbose] > │ | UH0_0 of float * UH0 │
00:02:41 #1403 [Verbose] > │ | UH0_1 │
00:02:41 #1404 [Verbose] > │ and Mut3 = {mutable l0 : int32; mutable l1 : float} │
00:02:41 #1405 [Verbose] > │ let rec method2 () : float = │
00:02:41 #1406 [Verbose] > │ 2.0 │
00:02:41 #1407 [Verbose] > │ and method3 (v0 : float) : float = │
00:02:41 #1408 [Verbose] > │ v0 │
00:02:41 #1409 [Verbose] > │ and method4 () : float = │
00:02:41 #1410 [Verbose] > │ 0.0 │
00:02:41 #1411 [Verbose] > │ and method5 () : float = │
00:02:41 #1412 [Verbose] > │ -1.0 │
00:02:41 #1413 [Verbose] > │ and method6 (v0 : (struct (num_complex_Complex<float> * float) [])) : │
00:02:41 #1414 [Verbose] > │ (struct (num_complex_Complex<float> * float) []) = │
00:02:41 #1415 [Verbose] > │ v0 │
00:02:41 #1416 [Verbose] > │ and method7 (v0 : int32, v1 : Mut0) : bool = │
00:02:41 #1417 [Verbose] > │ let v2 : int32 = v1.l0 │
00:02:41 #1418 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:41 #1419 [Verbose] > │ v3 │
00:02:41 #1420 [Verbose] > │ and method8 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> = │
00:02:41 #1421 [Verbose] > │ v0 │
00:02:41 #1422 [Verbose] > │ and method10 (v0 : (string [])) : (string []) = │
00:02:41 #1423 [Verbose] > │ v0 │
00:02:41 #1424 [Verbose] > │ and method12 (v0 : int32, v1 : Mut1) : bool = │
00:02:41 #1425 [Verbose] > │ let v2 : int32 = v1.l0 │
00:02:41 #1426 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:41 #1427 [Verbose] > │ v3 │
00:02:41 #1428 [Verbose] > │ and method11 (v0 : (string [])) : string = │
00:02:41 #1429 [Verbose] > │ let v1 : int32 = v0.Length │
00:02:41 #1430 [Verbose] > │ let v2 : string = "" │
00:02:41 #1431 [Verbose] > │ let v3 : Mut1 = {l0 = 0; l1 = v2} : Mut1 │
00:02:41 #1432 [Verbose] > │ while method12(v1, v3) do │
00:02:41 #1433 [Verbose] > │ let v5 : int32 = v3.l0 │
00:02:41 #1434 [Verbose] > │ let v6 : string = v3.l1 │
00:02:41 #1435 [Verbose] > │ let v7 : string = v0.[int v5] │
00:02:41 #1436 [Verbose] > │ let v8 : string = "\n" │
00:02:41 #1437 [Verbose] > │ let v9 : string = v6 + v7 + v8 + "" │
00:02:41 #1438 [Verbose] > │ let v10 : int32 = v5 + 1 │
00:02:41 #1439 [Verbose] > │ v3.l0 <- v10 │
00:02:41 #1440 [Verbose] > │ v3.l1 <- v9 │
00:02:41 #1441 [Verbose] > │ () │
00:02:41 #1442 [Verbose] > │ let v11 : string = v3.l1 │
00:02:41 #1443 [Verbose] > │ v11 │
00:02:41 #1444 [Verbose] > │ and method13 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:02:41 #1445 [Verbose] > │ = │
00:02:41 #1446 [Verbose] > │ v0 │
00:02:41 #1447 [Verbose] > │ and method14 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:02:41 #1448 [Verbose] > │ = │
00:02:41 #1449 [Verbose] > │ v0 │
00:02:41 #1450 [Verbose] > │ and method15 (v0 : pyo3_Python) : pyo3_Python = │
00:02:41 #1451 [Verbose] > │ v0 │
00:02:41 #1452 [Verbose] > │ and method16 (v0 : string) : string = │
00:02:41 #1453 [Verbose] > │ v0 │
00:02:41 #1454 [Verbose] > │ and closure1 () (v0 : pyo3_PyErr) : std_string_String = │
00:02:41 #1455 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:02:41 #1456 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:02:41 #1457 [Verbose] > │ v2 │
00:02:41 #1458 [Verbose] > │ and method17 () : (pyo3_PyErr -> std_string_String) = │
00:02:41 #1459 [Verbose] > │ closure1() │
00:02:41 #1460 [Verbose] > │ and method18 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr>) : │
00:02:41 #1461 [Verbose] > │ Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:02:41 #1462 [Verbose] > │ v0 │
00:02:41 #1463 [Verbose] > │ and method19 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>, │
00:02:41 #1464 [Verbose] > │ std_string_String>) : Result<pyo3_Bound<pyo3_types_PyModule>, │
00:02:41 #1465 [Verbose] > │ std_string_String> = │
00:02:41 #1466 [Verbose] > │ v0 │
00:02:41 #1467 [Verbose] > │ and method20 () : string = │
00:02:41 #1468 [Verbose] > │ let v0 : string = "fn" │
00:02:41 #1469 [Verbose] > │ v0 │
00:02:41 #1470 [Verbose] > │ and method21 (v0 : pyo3_Bound<pyo3_types_PyModule>) : │
00:02:41 #1471 [Verbose] > │ pyo3_Bound<pyo3_types_PyModule> = │
00:02:41 #1472 [Verbose] > │ v0 │
00:02:41 #1473 [Verbose] > │ and closure2 () (v0 : pyo3_PyErr) : std_string_String = │
00:02:41 #1474 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:02:41 #1475 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:02:41 #1476 [Verbose] > │ v2 │
00:02:41 #1477 [Verbose] > │ and method22 () : (pyo3_PyErr -> std_string_String) = │
00:02:41 #1478 [Verbose] > │ closure2() │
00:02:41 #1479 [Verbose] > │ and method23 (v0 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr>) : │
00:02:41 #1480 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:02:41 #1481 [Verbose] > │ v0 │
00:02:41 #1482 [Verbose] > │ and method24 (v0 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String>) : │
00:02:41 #1483 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:41 #1484 [Verbose] > │ v0 │
00:02:41 #1485 [Verbose] > │ and method25 (v0 : (bool * (float * float))) : (bool * (float * float)) = │
00:02:41 #1486 [Verbose] > │ v0 │
00:02:41 #1487 [Verbose] > │ and method26 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> = │
00:02:41 #1488 [Verbose] > │ v0 │
00:02:41 #1489 [Verbose] > │ and closure3 () (v0 : pyo3_PyErr) : std_string_String = │
00:02:41 #1490 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:02:41 #1491 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:02:41 #1492 [Verbose] > │ v2 │
00:02:41 #1493 [Verbose] > │ and method27 () : (pyo3_PyErr -> std_string_String) = │
00:02:41 #1494 [Verbose] > │ closure3() │
00:02:41 #1495 [Verbose] > │ and method28 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> = │
00:02:41 #1496 [Verbose] > │ v0 │
00:02:41 #1497 [Verbose] > │ and closure4 () (v0 : pyo3_PyErr) : std_string_String = │
00:02:41 #1498 [Verbose] > │ let v1 : string = @$"format!(""{{}}"", $0)" │
00:02:41 #1499 [Verbose] > │ let v2 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v1 │
00:02:41 #1500 [Verbose] > │ v2 │
00:02:41 #1501 [Verbose] > │ and method29 () : (pyo3_PyErr -> std_string_String) = │
00:02:41 #1502 [Verbose] > │ closure4() │
00:02:41 #1503 [Verbose] > │ and method30 (v0 : Result<struct (float * float), pyo3_PyErr>) : │
00:02:41 #1504 [Verbose] > │ Result<struct (float * float), pyo3_PyErr> = │
00:02:41 #1505 [Verbose] > │ v0 │
00:02:41 #1506 [Verbose] > │ and method31 (v0 : float) : float = │
00:02:41 #1507 [Verbose] > │ v0 │
00:02:41 #1508 [Verbose] > │ and method32 (v0 : float) : float = │
00:02:41 #1509 [Verbose] > │ v0 │
00:02:41 #1510 [Verbose] > │ and method9 (v0 : pyo3_Python, v1 : string, v2 : num_complex_Complex<float>) │
00:02:41 #1511 [Verbose] > │ : Result<num_complex_Complex<float>, std_string_String> = │
00:02:41 #1512 [Verbose] > │ let v3 : string = $"import sys" │
00:02:41 #1513 [Verbose] > │ let v4 : string = $"import traceback" │
00:02:41 #1514 [Verbose] > │ let v5 : string = $"import re" │
00:02:41 #1515 [Verbose] > │ let v6 : string = $"count = 0" │
00:02:41 #1516 [Verbose] > │ let v7 : string = $"memory_address_pattern = re.compile(r' at 0x[ │
00:02:41 #1517 [Verbose] > │ 0-9a-fA-F]+')" │
00:02:41 #1518 [Verbose] > │ let v8 : string = $"def trace_calls(frame, event, arg):" │
00:02:41 #1519 [Verbose] > │ let v9 : string = $" global count" │
00:02:41 #1520 [Verbose] > │ let v10 : string = $" count += 1" │
00:02:41 #1521 [Verbose] > │ let v11 : string = $" if count < 200:" │
00:02:41 #1522 [Verbose] > │ let v12 : string = $" try:" │
00:02:41 #1523 [Verbose] > │ let v13 : string = $" args = {{ k: v for k, v in │
00:02:41 #1524 [Verbose] > │ frame.f_locals.items() if frame.f_code.co_name != 'make_mpc' and k not in [ │
00:02:41 #1525 [Verbose] > │ 'ctx'] and not callable(v) }}" │
00:02:41 #1526 [Verbose] > │ let v14 : string = $" args_str = ', '.join([ │
00:02:41 #1527 [Verbose] > │ f\"{{k}}={{re.sub(memory_address_pattern, ' at 0x<?>', repr(v))}}\" for k, v │
00:02:41 #1528 [Verbose] > │ in args.items() ])" │
00:02:41 #1529 [Verbose] > │ let v15 : string = "zeta_" │
00:02:41 #1530 [Verbose] > │ let v16 : string = $" print(f\"{{event}}({v15}) / │
00:02:41 #1531 [Verbose] > │ f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / │
00:02:41 #1532 [Verbose] > │ f_lineno: {{frame.f_lineno}} / f_code.co_filename: │
00:02:41 #1533 [Verbose] > │ {{frame.f_code.co_filename.split('site-packages')[-1]}} / f_back.f_lineno: │
00:02:41 #1534 [Verbose] > │ {{ '' if frame.f_back is None else frame.f_back.f_lineno }} / │
00:02:41 #1535 [Verbose] > │ f_back.f_code.co_filename: {{ '' if frame.f_back is None else │
00:02:41 #1536 [Verbose] > │ frame.f_back.f_code.co_filename.split('site-packages')[-1] }} / arg: │
00:02:41 #1537 [Verbose] > │ {{re.sub(memory_address_pattern, ' at 0x<?>', repr(arg))}}\", flush=True)" │
00:02:41 #1538 [Verbose] > │ let v17 : string = $" except ValueError as e:" │
00:02:41 #1539 [Verbose] > │ let v18 : string = $" print(f'{v15} / e: {{e}}', flush=True)" │
00:02:41 #1540 [Verbose] > │ let v19 : string = $" return trace_calls" │
00:02:41 #1541 [Verbose] > │ let v20 : string = $"import mpmath" │
00:02:41 #1542 [Verbose] > │ let v21 : string = $"def fn(log, s):" │
00:02:41 #1543 [Verbose] > │ let v22 : string = $" global count" │
00:02:41 #1544 [Verbose] > │ let v23 : string = $" if log:" │
00:02:41 #1545 [Verbose] > │ let v24 : string = $" print(f'{v15} / s: {{s}} / count: │
00:02:41 #1546 [Verbose] > │ {{count}}', flush=True)" │
00:02:41 #1547 [Verbose] > │ let v25 : string = $" s = complex(*s)" │
00:02:41 #1548 [Verbose] > │ let v26 : string = $" try:" │
00:02:41 #1549 [Verbose] > │ let v27 : string = $" if log: sys.settrace(trace_calls)" │
00:02:41 #1550 [Verbose] > │ let v28 : string = $" if log:" │
00:02:41 #1551 [Verbose] > │ let v29 : string = $" sys.settrace(None)" │
00:02:41 #1552 [Verbose] > │ let v30 : string = $" print(f'{v15} / result: {{s}} / count: │
00:02:41 #1553 [Verbose] > │ {{count}}', flush=True)" │
00:02:41 #1554 [Verbose] > │ let v31 : string = $" except ValueError as e:" │
00:02:41 #1555 [Verbose] > │ let v32 : string = $" if s.real == 1:" │
00:02:41 #1556 [Verbose] > │ let v33 : string = $" s = complex(float('inf'), 0)" │
00:02:41 #1557 [Verbose] > │ let v34 : string = $" return (s.real, s.imag)" │
00:02:41 #1558 [Verbose] > │ let v35 : (string []) = [|v3; v4; v5; v6; v7; v8; v9; v10; v11; v12; │
00:02:41 #1559 [Verbose] > │ v13; v14; v16; v17; v18; v19; v20; v21; v22; v23; v24; v25; v26; v27; v1; │
00:02:41 #1560 [Verbose] > │ v28; v29; v30; v31; v32; v33; v34|] │
00:02:41 #1561 [Verbose] > │ let v36 : (string []) = method10(v35) │
00:02:41 #1562 [Verbose] > │ let v37 : string = method11(v36) │
00:02:41 #1563 [Verbose] > │ let v38 : num_complex_Complex<float> = method13(v2) │
00:02:41 #1564 [Verbose] > │ let v39 : string = "v38.re" │
00:02:41 #1565 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:02:41 #1566 [Verbose] > │ let v41 : num_complex_Complex<float> = method14(v2) │
00:02:41 #1567 [Verbose] > │ let v42 : string = "v41.im" │
00:02:41 #1568 [Verbose] > │ let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42 │
00:02:41 #1569 [Verbose] > │ let v44 : (float * float) = v40, v43 │
00:02:41 #1570 [Verbose] > │ let v45 : (bool * (float * float)) = false, v44 │
00:02:41 #1571 [Verbose] > │ let v46 : pyo3_Python = method15(v0) │
00:02:41 #1572 [Verbose] > │ let v47 : string = method16(v37) │
00:02:41 #1573 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:02:41 #1574 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:02:41 #1575 [Verbose] > │ let v50 : string = "pyo3::types::PyModule::from_code_bound(v46, v49, │
00:02:41 #1576 [Verbose] > │ \"\", \"\")" │
00:02:41 #1577 [Verbose] > │ let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:02:41 #1578 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50 │
00:02:41 #1579 [Verbose] > │ let v52 : (pyo3_PyErr -> std_string_String) = method17() │
00:02:41 #1580 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:02:41 #1581 [Verbose] > │ method18(v51) │
00:02:41 #1582 [Verbose] > │ let v54 : string = "v53.map_err(|x| v52(x))" │
00:02:41 #1583 [Verbose] > │ let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:02:41 #1584 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:02:41 #1585 [Verbose] > │ let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:02:41 #1586 [Verbose] > │ method19(v55) │
00:02:41 #1587 [Verbose] > │ let v57 : string = "v56.unwrap()" │
00:02:41 #1588 [Verbose] > │ let v58 : pyo3_Bound<pyo3_types_PyModule> = │
00:02:41 #1589 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57 │
00:02:41 #1590 [Verbose] > │ let v59 : string = method20() │
00:02:41 #1591 [Verbose] > │ let v60 : string = $"fable_library_rust::String_::LrcStr::as_str(&v59)" │
00:02:41 #1592 [Verbose] > │ let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 │
00:02:41 #1593 [Verbose] > │ let v62 : pyo3_Bound<pyo3_types_PyModule> = method21(v58) │
00:02:41 #1594 [Verbose] > │ let v63 : string = "v62.getattr(v61)" │
00:02:41 #1595 [Verbose] > │ let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:02:41 #1596 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63 │
00:02:41 #1597 [Verbose] > │ let v65 : (pyo3_PyErr -> std_string_String) = method22() │
00:02:41 #1598 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v64) │
00:02:41 #1599 [Verbose] > │ let v67 : string = "v66.map_err(|x| v65(x))" │
00:02:41 #1600 [Verbose] > │ let v68 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:41 #1601 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:02:41 #1602 [Verbose] > │ let v69 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:41 #1603 [Verbose] > │ method24(v68) │
00:02:41 #1604 [Verbose] > │ let v70 : string = "v69.unwrap()" │
00:02:41 #1605 [Verbose] > │ let v71 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:02:41 #1606 [Verbose] > │ () v70 │
00:02:41 #1607 [Verbose] > │ let v72 : (bool * (float * float)) = method25(v45) │
00:02:41 #1608 [Verbose] > │ let v73 : pyo3_Bound<pyo3_PyAny> = method26(v71) │
00:02:41 #1609 [Verbose] > │ let v74 : string = "pyo3::prelude::PyAnyMethods::call(&v73, ((*v72).0, │
00:02:41 #1610 [Verbose] > │ *(*v72).1), None)" │
00:02:41 #1611 [Verbose] > │ let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:02:41 #1612 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:02:41 #1613 [Verbose] > │ let v76 : (pyo3_PyErr -> std_string_String) = method27() │
00:02:41 #1614 [Verbose] > │ let v77 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v75) │
00:02:41 #1615 [Verbose] > │ let v78 : string = "v77.map_err(|x| v76(x))" │
00:02:41 #1616 [Verbose] > │ let v79 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:41 #1617 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78 │
00:02:41 #1618 [Verbose] > │ let v80 : string = "v79?" │
00:02:41 #1619 [Verbose] > │ let v81 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:02:41 #1620 [Verbose] > │ () v80 │
00:02:41 #1621 [Verbose] > │ let v82 : pyo3_Bound<pyo3_PyAny> = method28(v81) │
00:02:41 #1622 [Verbose] > │ let v83 : string = "v82.extract()" │
00:02:41 #1623 [Verbose] > │ let v84 : Result<struct (float * float), pyo3_PyErr> = │
00:02:41 #1624 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83 │
00:02:41 #1625 [Verbose] > │ let v85 : (pyo3_PyErr -> std_string_String) = method29() │
00:02:41 #1626 [Verbose] > │ let v86 : Result<struct (float * float), pyo3_PyErr> = method30(v84) │
00:02:41 #1627 [Verbose] > │ let v87 : string = "v86.map_err(|x| v85(x))" │
00:02:41 #1628 [Verbose] > │ let v88 : Result<struct (float * float), std_string_String> = │
00:02:41 #1629 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87 │
00:02:41 #1630 [Verbose] > │ let v89 : string = "v88?" │
00:02:41 #1631 [Verbose] > │ let struct (v90 : float, v91 : float) = │
00:02:41 #1632 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v89 │
00:02:41 #1633 [Verbose] > │ let v92 : float = method31(v90) │
00:02:41 #1634 [Verbose] > │ let v93 : float = method3(v92) │
00:02:41 #1635 [Verbose] > │ let v94 : float = method32(v91) │
00:02:41 #1636 [Verbose] > │ let v95 : string = "num_complex::Complex::new(v93, v94)" │
00:02:41 #1637 [Verbose] > │ let v96 : num_complex_Complex<float> = │
00:02:41 #1638 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95 │
00:02:41 #1639 [Verbose] > │ let v97 : Result<num_complex_Complex<float>, std_string_String> = Ok v96 │
00:02:41 #1640 [Verbose] > │ v97 │
00:02:41 #1641 [Verbose] > │ and method34 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:02:41 #1642 [Verbose] > │ = │
00:02:41 #1643 [Verbose] > │ v0 │
00:02:41 #1644 [Verbose] > │ and method35 () : float = │
00:02:41 #1645 [Verbose] > │ 0.0 │
00:02:41 #1646 [Verbose] > │ and method36 (v0 : Mut0) : bool = │
00:02:41 #1647 [Verbose] > │ let v1 : int32 = v0.l0 │
00:02:41 #1648 [Verbose] > │ let v2 : bool = v1 < 10000 │
00:02:41 #1649 [Verbose] > │ v2 │
00:02:41 #1650 [Verbose] > │ and method37 (v0 : int32, v1 : Mut2) : bool = │
00:02:41 #1651 [Verbose] > │ let v2 : int32 = v1.l0 │
00:02:41 #1652 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:41 #1653 [Verbose] > │ v3 │
00:02:41 #1654 [Verbose] > │ and method38 () : float = │
00:02:41 #1655 [Verbose] > │ 1.0 │
00:02:41 #1656 [Verbose] > │ and method39 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:02:41 #1657 [Verbose] > │ = │
00:02:41 #1658 [Verbose] > │ v0 │
00:02:41 #1659 [Verbose] > │ and method40 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> │
00:02:41 #1660 [Verbose] > │ = │
00:02:41 #1661 [Verbose] > │ v0 │
00:02:41 #1662 [Verbose] > │ and method41 (v0 : pyo3_Python, v1 : string, v2 : │
00:02:41 #1663 [Verbose] > │ num_complex_Complex<float>) : Result<num_complex_Complex<float>, │
00:02:41 #1664 [Verbose] > │ std_string_String> = │
00:02:41 #1665 [Verbose] > │ let v3 : string = $"import sys" │
00:02:41 #1666 [Verbose] > │ let v4 : string = $"import traceback" │
00:02:41 #1667 [Verbose] > │ let v5 : string = $"import re" │
00:02:41 #1668 [Verbose] > │ let v6 : string = $"count = 0" │
00:02:41 #1669 [Verbose] > │ let v7 : string = $"memory_address_pattern = re.compile(r' at 0x[ │
00:02:41 #1670 [Verbose] > │ 0-9a-fA-F]+')" │
00:02:41 #1671 [Verbose] > │ let v8 : string = $"def trace_calls(frame, event, arg):" │
00:02:41 #1672 [Verbose] > │ let v9 : string = $" global count" │
00:02:41 #1673 [Verbose] > │ let v10 : string = $" count += 1" │
00:02:41 #1674 [Verbose] > │ let v11 : string = $" if count < 200:" │
00:02:41 #1675 [Verbose] > │ let v12 : string = $" try:" │
00:02:41 #1676 [Verbose] > │ let v13 : string = $" args = {{ k: v for k, v in │
00:02:41 #1677 [Verbose] > │ frame.f_locals.items() if frame.f_code.co_name != 'make_mpc' and k not in [ │
00:02:41 #1678 [Verbose] > │ 'ctx'] and not callable(v) }}" │
00:02:41 #1679 [Verbose] > │ let v14 : string = $" args_str = ', '.join([ │
00:02:41 #1680 [Verbose] > │ f\"{{k}}={{re.sub(memory_address_pattern, ' at 0x<?>', repr(v))}}\" for k, v │
00:02:41 #1681 [Verbose] > │ in args.items() ])" │
00:02:41 #1682 [Verbose] > │ let v15 : string = "gamma_" │
00:02:41 #1683 [Verbose] > │ let v16 : string = $" print(f\"{{event}}({v15}) / │
00:02:41 #1684 [Verbose] > │ f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / │
00:02:41 #1685 [Verbose] > │ f_lineno: {{frame.f_lineno}} / f_code.co_filename: │
00:02:41 #1686 [Verbose] > │ {{frame.f_code.co_filename.split('site-packages')[-1]}} / f_back.f_lineno: │
00:02:41 #1687 [Verbose] > │ {{ '' if frame.f_back is None else frame.f_back.f_lineno }} / │
00:02:41 #1688 [Verbose] > │ f_back.f_code.co_filename: {{ '' if frame.f_back is None else │
00:02:41 #1689 [Verbose] > │ frame.f_back.f_code.co_filename.split('site-packages')[-1] }} / arg: │
00:02:41 #1690 [Verbose] > │ {{re.sub(memory_address_pattern, ' at 0x<?>', repr(arg))}}\", flush=True)" │
00:02:41 #1691 [Verbose] > │ let v17 : string = $" except ValueError as e:" │
00:02:41 #1692 [Verbose] > │ let v18 : string = $" print(f'{v15} / e: {{e}}', flush=True)" │
00:02:41 #1693 [Verbose] > │ let v19 : string = $" return trace_calls" │
00:02:41 #1694 [Verbose] > │ let v20 : string = $"import mpmath" │
00:02:41 #1695 [Verbose] > │ let v21 : string = $"def fn(log, s):" │
00:02:41 #1696 [Verbose] > │ let v22 : string = $" global count" │
00:02:41 #1697 [Verbose] > │ let v23 : string = $" if log:" │
00:02:41 #1698 [Verbose] > │ let v24 : string = $" print(f'{v15} / s: {{s}} / count: │
00:02:41 #1699 [Verbose] > │ {{count}}', flush=True)" │
00:02:41 #1700 [Verbose] > │ let v25 : string = $" s = complex(*s)" │
00:02:41 #1701 [Verbose] > │ let v26 : string = $" try:" │
00:02:41 #1702 [Verbose] > │ let v27 : string = $" if log: sys.settrace(trace_calls)" │
00:02:42 #1703 [Verbose] > │ let v28 : string = $" if log:" │
00:02:42 #1704 [Verbose] > │ let v29 : string = $" sys.settrace(None)" │
00:02:42 #1705 [Verbose] > │ let v30 : string = $" print(f'{v15} / result: {{s}} / count: │
00:02:42 #1706 [Verbose] > │ {{count}}', flush=True)" │
00:02:42 #1707 [Verbose] > │ let v31 : string = $" except ValueError as e:" │
00:02:42 #1708 [Verbose] > │ let v32 : string = $" if s.real == 1:" │
00:02:42 #1709 [Verbose] > │ let v33 : string = $" s = complex(float('inf'), 0)" │
00:02:42 #1710 [Verbose] > │ let v34 : string = $" return (s.real, s.imag)" │
00:02:42 #1711 [Verbose] > │ let v35 : (string []) = [|v3; v4; v5; v6; v7; v8; v9; v10; v11; v12; │
00:02:42 #1712 [Verbose] > │ v13; v14; v16; v17; v18; v19; v20; v21; v22; v23; v24; v25; v26; v27; v1; │
00:02:42 #1713 [Verbose] > │ v28; v29; v30; v31; v32; v33; v34|] │
00:02:42 #1714 [Verbose] > │ let v36 : (string []) = method10(v35) │
00:02:42 #1715 [Verbose] > │ let v37 : string = method11(v36) │
00:02:42 #1716 [Verbose] > │ let v38 : num_complex_Complex<float> = method13(v2) │
00:02:42 #1717 [Verbose] > │ let v39 : string = "v38.re" │
00:02:42 #1718 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:02:42 #1719 [Verbose] > │ let v41 : num_complex_Complex<float> = method14(v2) │
00:02:42 #1720 [Verbose] > │ let v42 : string = "v41.im" │
00:02:42 #1721 [Verbose] > │ let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42 │
00:02:42 #1722 [Verbose] > │ let v44 : (float * float) = v40, v43 │
00:02:42 #1723 [Verbose] > │ let v45 : (bool * (float * float)) = false, v44 │
00:02:42 #1724 [Verbose] > │ let v46 : pyo3_Python = method15(v0) │
00:02:42 #1725 [Verbose] > │ let v47 : string = method16(v37) │
00:02:42 #1726 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:02:42 #1727 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:02:42 #1728 [Verbose] > │ let v50 : string = "pyo3::types::PyModule::from_code_bound(v46, v49, │
00:02:42 #1729 [Verbose] > │ \"\", \"\")" │
00:02:42 #1730 [Verbose] > │ let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:02:42 #1731 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50 │
00:02:42 #1732 [Verbose] > │ let v52 : (pyo3_PyErr -> std_string_String) = method17() │
00:02:42 #1733 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:02:42 #1734 [Verbose] > │ method18(v51) │
00:02:42 #1735 [Verbose] > │ let v54 : string = "v53.map_err(|x| v52(x))" │
00:02:42 #1736 [Verbose] > │ let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:02:42 #1737 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:02:42 #1738 [Verbose] > │ let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, std_string_String> = │
00:02:42 #1739 [Verbose] > │ method19(v55) │
00:02:42 #1740 [Verbose] > │ let v57 : string = "v56.unwrap()" │
00:02:42 #1741 [Verbose] > │ let v58 : pyo3_Bound<pyo3_types_PyModule> = │
00:02:42 #1742 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57 │
00:02:42 #1743 [Verbose] > │ let v59 : string = method20() │
00:02:42 #1744 [Verbose] > │ let v60 : string = $"fable_library_rust::String_::LrcStr::as_str(&v59)" │
00:02:42 #1745 [Verbose] > │ let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 │
00:02:42 #1746 [Verbose] > │ let v62 : pyo3_Bound<pyo3_types_PyModule> = method21(v58) │
00:02:42 #1747 [Verbose] > │ let v63 : string = "v62.getattr(v61)" │
00:02:42 #1748 [Verbose] > │ let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:02:42 #1749 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63 │
00:02:42 #1750 [Verbose] > │ let v65 : (pyo3_PyErr -> std_string_String) = method22() │
00:02:42 #1751 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v64) │
00:02:42 #1752 [Verbose] > │ let v67 : string = "v66.map_err(|x| v65(x))" │
00:02:42 #1753 [Verbose] > │ let v68 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:42 #1754 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:02:42 #1755 [Verbose] > │ let v69 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:42 #1756 [Verbose] > │ method24(v68) │
00:02:42 #1757 [Verbose] > │ let v70 : string = "v69.unwrap()" │
00:02:42 #1758 [Verbose] > │ let v71 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #1759 [Verbose] > │ () v70 │
00:02:42 #1760 [Verbose] > │ let v72 : (bool * (float * float)) = method25(v45) │
00:02:42 #1761 [Verbose] > │ let v73 : pyo3_Bound<pyo3_PyAny> = method26(v71) │
00:02:42 #1762 [Verbose] > │ let v74 : string = "pyo3::prelude::PyAnyMethods::call(&v73, ((*v72).0, │
00:02:42 #1763 [Verbose] > │ *(*v72).1), None)" │
00:02:42 #1764 [Verbose] > │ let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:02:42 #1765 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:02:42 #1766 [Verbose] > │ let v76 : (pyo3_PyErr -> std_string_String) = method27() │
00:02:42 #1767 [Verbose] > │ let v77 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method23(v75) │
00:02:42 #1768 [Verbose] > │ let v78 : string = "v77.map_err(|x| v76(x))" │
00:02:42 #1769 [Verbose] > │ let v79 : Result<pyo3_Bound<pyo3_PyAny>, std_string_String> = │
00:02:42 #1770 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78 │
00:02:42 #1771 [Verbose] > │ let v80 : string = "v79?" │
00:02:42 #1772 [Verbose] > │ let v81 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #1773 [Verbose] > │ () v80 │
00:02:42 #1774 [Verbose] > │ let v82 : pyo3_Bound<pyo3_PyAny> = method28(v81) │
00:02:42 #1775 [Verbose] > │ let v83 : string = "v82.extract()" │
00:02:42 #1776 [Verbose] > │ let v84 : Result<struct (float * float), pyo3_PyErr> = │
00:02:42 #1777 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83 │
00:02:42 #1778 [Verbose] > │ let v85 : (pyo3_PyErr -> std_string_String) = method29() │
00:02:42 #1779 [Verbose] > │ let v86 : Result<struct (float * float), pyo3_PyErr> = method30(v84) │
00:02:42 #1780 [Verbose] > │ let v87 : string = "v86.map_err(|x| v85(x))" │
00:02:42 #1781 [Verbose] > │ let v88 : Result<struct (float * float), std_string_String> = │
00:02:42 #1782 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87 │
00:02:42 #1783 [Verbose] > │ let v89 : string = "v88?" │
00:02:42 #1784 [Verbose] > │ let struct (v90 : float, v91 : float) = │
00:02:42 #1785 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v89 │
00:02:42 #1786 [Verbose] > │ let v92 : float = method31(v90) │
00:02:42 #1787 [Verbose] > │ let v93 : float = method3(v92) │
00:02:42 #1788 [Verbose] > │ let v94 : float = method32(v91) │
00:02:42 #1789 [Verbose] > │ let v95 : string = "num_complex::Complex::new(v93, v94)" │
00:02:42 #1790 [Verbose] > │ let v96 : num_complex_Complex<float> = │
00:02:42 #1791 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95 │
00:02:42 #1792 [Verbose] > │ let v97 : Result<num_complex_Complex<float>, std_string_String> = Ok v96 │
00:02:42 #1793 [Verbose] > │ v97 │
00:02:42 #1794 [Verbose] > │ and closure5 () (v0 : num_complex_Complex<float>) : US0 = │
00:02:42 #1795 [Verbose] > │ US0_1(v0) │
00:02:42 #1796 [Verbose] > │ and method42 () : float = │
00:02:42 #1797 [Verbose] > │ 3.141592653589793 │
00:02:42 #1798 [Verbose] > │ and method33 (v0 : pyo3_Python, v1 : num_complex_Complex<float>) : │
00:02:42 #1799 [Verbose] > │ num_complex_Complex<float> = │
00:02:42 #1800 [Verbose] > │ let v2 : num_complex_Complex<float> = method34(v1) │
00:02:42 #1801 [Verbose] > │ let v3 : string = "println!(\"zeta / count: {:?} / s: {:?}\", 0, v2)" │
00:02:42 #1802 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:02:42 #1803 [Verbose] > │ let v4 : num_complex_Complex<float> = method13(v2) │
00:02:42 #1804 [Verbose] > │ let v5 : string = "v4.re" │
00:02:42 #1805 [Verbose] > │ let v6 : float = Fable.Core.RustInterop.emitRustExpr () v5 │
00:02:42 #1806 [Verbose] > │ let v7 : bool = v6 > 1.0 │
00:02:42 #1807 [Verbose] > │ if v7 then │
00:02:42 #1808 [Verbose] > │ let v8 : float = method35() │
00:02:42 #1809 [Verbose] > │ let v9 : float = method3(v8) │
00:02:42 #1810 [Verbose] > │ let v10 : float = method4() │
00:02:42 #1811 [Verbose] > │ let v11 : string = "num_complex::Complex::new(v9, v10)" │
00:02:42 #1812 [Verbose] > │ let v12 : num_complex_Complex<float> = │
00:02:42 #1813 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #1814 [Verbose] > │ let v13 : (int32 []) = Array.zeroCreate<int32> (10000) │
00:02:42 #1815 [Verbose] > │ let v14 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #1816 [Verbose] > │ while method36(v14) do │
00:02:42 #1817 [Verbose] > │ let v16 : int32 = v14.l0 │
00:02:42 #1818 [Verbose] > │ v13.[int v16] <- v16 │
00:02:42 #1819 [Verbose] > │ let v17 : int32 = v16 + 1 │
00:02:42 #1820 [Verbose] > │ v14.l0 <- v17 │
00:02:42 #1821 [Verbose] > │ () │
00:02:42 #1822 [Verbose] > │ let v18 : int32 = v13.Length │
00:02:42 #1823 [Verbose] > │ let v19 : Mut2 = {l0 = 0; l1 = v12} : Mut2 │
00:02:42 #1824 [Verbose] > │ while method37(v18, v19) do │
00:02:42 #1825 [Verbose] > │ let v21 : int32 = v19.l0 │
00:02:42 #1826 [Verbose] > │ let v22 : num_complex_Complex<float> = v19.l1 │
00:02:42 #1827 [Verbose] > │ let v23 : int32 = v13.[int v21] │
00:02:42 #1828 [Verbose] > │ let v24 : float = method38() │
00:02:42 #1829 [Verbose] > │ let v25 : float = method3(v24) │
00:02:42 #1830 [Verbose] > │ let v26 : float = method4() │
00:02:42 #1831 [Verbose] > │ let v27 : string = "num_complex::Complex::new(v25, v26)" │
00:02:42 #1832 [Verbose] > │ let v28 : num_complex_Complex<float> = │
00:02:42 #1833 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v27 │
00:02:42 #1834 [Verbose] > │ let v29 : float = float v23 │
00:02:42 #1835 [Verbose] > │ let v30 : float = method31(v29) │
00:02:42 #1836 [Verbose] > │ let v31 : float = method3(v30) │
00:02:42 #1837 [Verbose] > │ let v32 : float = method4() │
00:02:42 #1838 [Verbose] > │ let v33 : string = "num_complex::Complex::new(v31, v32)" │
00:02:42 #1839 [Verbose] > │ let v34 : num_complex_Complex<float> = │
00:02:42 #1840 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v33 │
00:02:42 #1841 [Verbose] > │ let v35 : num_complex_Complex<float> = method39(v34) │
00:02:42 #1842 [Verbose] > │ let v36 : num_complex_Complex<float> = method40(v2) │
00:02:42 #1843 [Verbose] > │ let v37 : string = "num_complex::Complex::powc(v35, v36)" │
00:02:42 #1844 [Verbose] > │ let v38 : num_complex_Complex<float> = │
00:02:42 #1845 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37 │
00:02:42 #1846 [Verbose] > │ let v39 : string = "v28 / v38" │
00:02:42 #1847 [Verbose] > │ let v40 : num_complex_Complex<float> = │
00:02:42 #1848 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v39 │
00:02:42 #1849 [Verbose] > │ let v41 : string = "v22 + v40" │
00:02:42 #1850 [Verbose] > │ let v42 : num_complex_Complex<float> = │
00:02:42 #1851 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v41 │
00:02:42 #1852 [Verbose] > │ let v43 : int32 = v21 + 1 │
00:02:42 #1853 [Verbose] > │ v19.l0 <- v43 │
00:02:42 #1854 [Verbose] > │ v19.l1 <- v42 │
00:02:42 #1855 [Verbose] > │ () │
00:02:42 #1856 [Verbose] > │ let v44 : num_complex_Complex<float> = v19.l1 │
00:02:42 #1857 [Verbose] > │ v44 │
00:02:42 #1858 [Verbose] > │ else │
00:02:42 #1859 [Verbose] > │ let v45 : float = method38() │
00:02:42 #1860 [Verbose] > │ let v46 : float = method3(v45) │
00:02:42 #1861 [Verbose] > │ let v47 : float = method4() │
00:02:42 #1862 [Verbose] > │ let v48 : string = "num_complex::Complex::new(v46, v47)" │
00:02:42 #1863 [Verbose] > │ let v49 : num_complex_Complex<float> = │
00:02:42 #1864 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v48 │
00:02:42 #1865 [Verbose] > │ let v50 : string = "v49 - v2" │
00:02:42 #1866 [Verbose] > │ let v51 : num_complex_Complex<float> = │
00:02:42 #1867 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v50 │
00:02:42 #1868 [Verbose] > │ let v52 : string = $" s = mpmath.gamma(s)" │
00:02:42 #1869 [Verbose] > │ let v53 : num_complex_Complex<float> = method8(v51) │
00:02:42 #1870 [Verbose] > │ let v54 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #1871 [Verbose] > │ method41(v0, v52, v53) │
00:02:42 #1872 [Verbose] > │ let v55 : string = "v54.ok()" │
00:02:42 #1873 [Verbose] > │ let v56 : num_complex_Complex<float> option = │
00:02:42 #1874 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v55 │
00:02:42 #1875 [Verbose] > │ let v57 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #1876 [Verbose] > │ let v58 : US0 = US0_0 │
00:02:42 #1877 [Verbose] > │ let v59 : US0 = v56 |> Option.map v57 |> Option.defaultValue v58 │
00:02:42 #1878 [Verbose] > │ let v60 : string = "f64::NAN" │
00:02:42 #1879 [Verbose] > │ let v61 : float = Fable.Core.RustInterop.emitRustExpr () v60 │
00:02:42 #1880 [Verbose] > │ let v62 : string = "f64::NAN" │
00:02:42 #1881 [Verbose] > │ let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62 │
00:02:42 #1882 [Verbose] > │ let v64 : float = method31(v61) │
00:02:42 #1883 [Verbose] > │ let v65 : float = method3(v64) │
00:02:42 #1884 [Verbose] > │ let v66 : float = method32(v63) │
00:02:42 #1885 [Verbose] > │ let v67 : string = "num_complex::Complex::new(v65, v66)" │
00:02:42 #1886 [Verbose] > │ let v68 : num_complex_Complex<float> = │
00:02:42 #1887 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:02:42 #1888 [Verbose] > │ let v71 : num_complex_Complex<float> = │
00:02:42 #1889 [Verbose] > │ match v59 with │
00:02:42 #1890 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #1891 [Verbose] > │ v68 │
00:02:42 #1892 [Verbose] > │ | US0_1(v69) -> (* Some *) │
00:02:42 #1893 [Verbose] > │ v69 │
00:02:42 #1894 [Verbose] > │ let v72 : float = method42() │
00:02:42 #1895 [Verbose] > │ let v73 : float = method3(v72) │
00:02:42 #1896 [Verbose] > │ let v74 : float = method4() │
00:02:42 #1897 [Verbose] > │ let v75 : string = "num_complex::Complex::new(v73, v74)" │
00:02:42 #1898 [Verbose] > │ let v76 : num_complex_Complex<float> = │
00:02:42 #1899 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v75 │
00:02:42 #1900 [Verbose] > │ let v77 : string = "v76 * v2" │
00:02:42 #1901 [Verbose] > │ let v78 : num_complex_Complex<float> = │
00:02:42 #1902 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v77 │
00:02:42 #1903 [Verbose] > │ let v79 : float = method2() │
00:02:42 #1904 [Verbose] > │ let v80 : float = method3(v79) │
00:02:42 #1905 [Verbose] > │ let v81 : float = method4() │
00:02:42 #1906 [Verbose] > │ let v82 : string = "num_complex::Complex::new(v80, v81)" │
00:02:42 #1907 [Verbose] > │ let v83 : num_complex_Complex<float> = │
00:02:42 #1908 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v82 │
00:02:42 #1909 [Verbose] > │ let v84 : string = "v78 / v83" │
00:02:42 #1910 [Verbose] > │ let v85 : num_complex_Complex<float> = │
00:02:42 #1911 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v84 │
00:02:42 #1912 [Verbose] > │ let v86 : string = "v85.sin()" │
00:02:42 #1913 [Verbose] > │ let v87 : num_complex_Complex<float> = │
00:02:42 #1914 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86 │
00:02:42 #1915 [Verbose] > │ let v88 : num_complex_Complex<float> = method13(v2) │
00:02:42 #1916 [Verbose] > │ let v89 : string = "v88.re" │
00:02:42 #1917 [Verbose] > │ let v90 : float = Fable.Core.RustInterop.emitRustExpr () v89 │
00:02:42 #1918 [Verbose] > │ let v91 : float = 1.0 - v90 │
00:02:42 #1919 [Verbose] > │ let v92 : num_complex_Complex<float> = method14(v2) │
00:02:42 #1920 [Verbose] > │ let v93 : string = "v92.im" │
00:02:42 #1921 [Verbose] > │ let v94 : float = Fable.Core.RustInterop.emitRustExpr () v93 │
00:02:42 #1922 [Verbose] > │ let v95 : float = -v94 │
00:02:42 #1923 [Verbose] > │ let v96 : float = method31(v91) │
00:02:42 #1924 [Verbose] > │ let v97 : float = method3(v96) │
00:02:42 #1925 [Verbose] > │ let v98 : float = method32(v95) │
00:02:42 #1926 [Verbose] > │ let v99 : string = "num_complex::Complex::new(v97, v98)" │
00:02:42 #1927 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:02:42 #1928 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:02:42 #1929 [Verbose] > │ let v101 : num_complex_Complex<float> = method13(v100) │
00:02:42 #1930 [Verbose] > │ let v102 : string = "v101.re" │
00:02:42 #1931 [Verbose] > │ let v103 : float = Fable.Core.RustInterop.emitRustExpr () v102 │
00:02:42 #1932 [Verbose] > │ let v104 : bool = v103 <= 1.0 │
00:02:42 #1933 [Verbose] > │ let v634 : num_complex_Complex<float> = │
00:02:42 #1934 [Verbose] > │ if v104 then │
00:02:42 #1935 [Verbose] > │ let v105 : float = method35() │
00:02:42 #1936 [Verbose] > │ let v106 : float = method3(v105) │
00:02:42 #1937 [Verbose] > │ let v107 : float = method4() │
00:02:42 #1938 [Verbose] > │ let v108 : string = "num_complex::Complex::new(v106, v107)" │
00:02:42 #1939 [Verbose] > │ let v109 : num_complex_Complex<float> = │
00:02:42 #1940 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v108 │
00:02:42 #1941 [Verbose] > │ v109 │
00:02:42 #1942 [Verbose] > │ else │
00:02:42 #1943 [Verbose] > │ let v110 : num_complex_Complex<float> = method34(v100) │
00:02:42 #1944 [Verbose] > │ let v111 : string = "println!(\"zeta / count: {:?} / s: │
00:02:42 #1945 [Verbose] > │ {:?}\", 1, v110)" │
00:02:42 #1946 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v111 │
00:02:42 #1947 [Verbose] > │ let v112 : num_complex_Complex<float> = method13(v110) │
00:02:42 #1948 [Verbose] > │ let v113 : string = "v112.re" │
00:02:42 #1949 [Verbose] > │ let v114 : float = Fable.Core.RustInterop.emitRustExpr () │
00:02:42 #1950 [Verbose] > │ v113 │
00:02:42 #1951 [Verbose] > │ let v115 : bool = v114 > 1.0 │
00:02:42 #1952 [Verbose] > │ if v115 then │
00:02:42 #1953 [Verbose] > │ let v116 : float = method35() │
00:02:42 #1954 [Verbose] > │ let v117 : float = method3(v116) │
00:02:42 #1955 [Verbose] > │ let v118 : float = method4() │
00:02:42 #1956 [Verbose] > │ let v119 : string = "num_complex::Complex::new(v117, │
00:02:42 #1957 [Verbose] > │ v118)" │
00:02:42 #1958 [Verbose] > │ let v120 : num_complex_Complex<float> = │
00:02:42 #1959 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v119 │
00:02:42 #1960 [Verbose] > │ let v121 : (int32 []) = Array.zeroCreate<int32> (10000) │
00:02:42 #1961 [Verbose] > │ let v122 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #1962 [Verbose] > │ while method36(v122) do │
00:02:42 #1963 [Verbose] > │ let v124 : int32 = v122.l0 │
00:02:42 #1964 [Verbose] > │ v121.[int v124] <- v124 │
00:02:42 #1965 [Verbose] > │ let v125 : int32 = v124 + 1 │
00:02:42 #1966 [Verbose] > │ v122.l0 <- v125 │
00:02:42 #1967 [Verbose] > │ () │
00:02:42 #1968 [Verbose] > │ let v126 : int32 = v121.Length │
00:02:42 #1969 [Verbose] > │ let v127 : Mut2 = {l0 = 0; l1 = v120} : Mut2 │
00:02:42 #1970 [Verbose] > │ while method37(v126, v127) do │
00:02:42 #1971 [Verbose] > │ let v129 : int32 = v127.l0 │
00:02:42 #1972 [Verbose] > │ let v130 : num_complex_Complex<float> = v127.l1 │
00:02:42 #1973 [Verbose] > │ let v131 : int32 = v121.[int v129] │
00:02:42 #1974 [Verbose] > │ let v132 : float = method38() │
00:02:42 #1975 [Verbose] > │ let v133 : float = method3(v132) │
00:02:42 #1976 [Verbose] > │ let v134 : float = method4() │
00:02:42 #1977 [Verbose] > │ let v135 : string = "num_complex::Complex::new(v133, │
00:02:42 #1978 [Verbose] > │ v134)" │
00:02:42 #1979 [Verbose] > │ let v136 : num_complex_Complex<float> = │
00:02:42 #1980 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v135 │
00:02:42 #1981 [Verbose] > │ let v137 : float = float v131 │
00:02:42 #1982 [Verbose] > │ let v138 : float = method31(v137) │
00:02:42 #1983 [Verbose] > │ let v139 : float = method3(v138) │
00:02:42 #1984 [Verbose] > │ let v140 : float = method4() │
00:02:42 #1985 [Verbose] > │ let v141 : string = "num_complex::Complex::new(v139, │
00:02:42 #1986 [Verbose] > │ v140)" │
00:02:42 #1987 [Verbose] > │ let v142 : num_complex_Complex<float> = │
00:02:42 #1988 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v141 │
00:02:42 #1989 [Verbose] > │ let v143 : num_complex_Complex<float> = │
00:02:42 #1990 [Verbose] > │ method39(v142) │
00:02:42 #1991 [Verbose] > │ let v144 : num_complex_Complex<float> = │
00:02:42 #1992 [Verbose] > │ method40(v110) │
00:02:42 #1993 [Verbose] > │ let v145 : string = │
00:02:42 #1994 [Verbose] > │ "num_complex::Complex::powc(v143, v144)" │
00:02:42 #1995 [Verbose] > │ let v146 : num_complex_Complex<float> = │
00:02:42 #1996 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v145 │
00:02:42 #1997 [Verbose] > │ let v147 : string = "v136 / v146" │
00:02:42 #1998 [Verbose] > │ let v148 : num_complex_Complex<float> = │
00:02:42 #1999 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v147 │
00:02:42 #2000 [Verbose] > │ let v149 : string = "v130 + v148" │
00:02:42 #2001 [Verbose] > │ let v150 : num_complex_Complex<float> = │
00:02:42 #2002 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v149 │
00:02:42 #2003 [Verbose] > │ let v151 : int32 = v129 + 1 │
00:02:42 #2004 [Verbose] > │ v127.l0 <- v151 │
00:02:42 #2005 [Verbose] > │ v127.l1 <- v150 │
00:02:42 #2006 [Verbose] > │ () │
00:02:42 #2007 [Verbose] > │ let v152 : num_complex_Complex<float> = v127.l1 │
00:02:42 #2008 [Verbose] > │ v152 │
00:02:42 #2009 [Verbose] > │ else │
00:02:42 #2010 [Verbose] > │ let v153 : float = method38() │
00:02:42 #2011 [Verbose] > │ let v154 : float = method3(v153) │
00:02:42 #2012 [Verbose] > │ let v155 : float = method4() │
00:02:42 #2013 [Verbose] > │ let v156 : string = "num_complex::Complex::new(v154, │
00:02:42 #2014 [Verbose] > │ v155)" │
00:02:42 #2015 [Verbose] > │ let v157 : num_complex_Complex<float> = │
00:02:42 #2016 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v156 │
00:02:42 #2017 [Verbose] > │ let v158 : string = "v157 - v110" │
00:02:42 #2018 [Verbose] > │ let v159 : num_complex_Complex<float> = │
00:02:42 #2019 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v158 │
00:02:42 #2020 [Verbose] > │ let v160 : string = $" s = mpmath.gamma(s)" │
00:02:42 #2021 [Verbose] > │ let v161 : num_complex_Complex<float> = method8(v159) │
00:02:42 #2022 [Verbose] > │ let v162 : Result<num_complex_Complex<float>, │
00:02:42 #2023 [Verbose] > │ std_string_String> = method41(v0, v160, v161) │
00:02:42 #2024 [Verbose] > │ let v163 : string = "v162.ok()" │
00:02:42 #2025 [Verbose] > │ let v164 : num_complex_Complex<float> option = │
00:02:42 #2026 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v163 │
00:02:42 #2027 [Verbose] > │ let v165 : US0 = US0_0 │
00:02:42 #2028 [Verbose] > │ let v166 : US0 = v164 |> Option.map v57 |> │
00:02:42 #2029 [Verbose] > │ Option.defaultValue v165 │
00:02:42 #2030 [Verbose] > │ let v167 : string = "f64::NAN" │
00:02:42 #2031 [Verbose] > │ let v168 : float = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #2032 [Verbose] > │ () v167 │
00:02:42 #2033 [Verbose] > │ let v169 : string = "f64::NAN" │
00:02:42 #2034 [Verbose] > │ let v170 : float = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #2035 [Verbose] > │ () v169 │
00:02:42 #2036 [Verbose] > │ let v171 : float = method31(v168) │
00:02:42 #2037 [Verbose] > │ let v172 : float = method3(v171) │
00:02:42 #2038 [Verbose] > │ let v173 : float = method32(v170) │
00:02:42 #2039 [Verbose] > │ let v174 : string = "num_complex::Complex::new(v172, │
00:02:42 #2040 [Verbose] > │ v173)" │
00:02:42 #2041 [Verbose] > │ let v175 : num_complex_Complex<float> = │
00:02:42 #2042 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v174 │
00:02:42 #2043 [Verbose] > │ let v178 : num_complex_Complex<float> = │
00:02:42 #2044 [Verbose] > │ match v166 with │
00:02:42 #2045 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #2046 [Verbose] > │ v175 │
00:02:42 #2047 [Verbose] > │ | US0_1(v176) -> (* Some *) │
00:02:42 #2048 [Verbose] > │ v176 │
00:02:42 #2049 [Verbose] > │ let v179 : float = method42() │
00:02:42 #2050 [Verbose] > │ let v180 : float = method3(v179) │
00:02:42 #2051 [Verbose] > │ let v181 : float = method4() │
00:02:42 #2052 [Verbose] > │ let v182 : string = "num_complex::Complex::new(v180, │
00:02:42 #2053 [Verbose] > │ v181)" │
00:02:42 #2054 [Verbose] > │ let v183 : num_complex_Complex<float> = │
00:02:42 #2055 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v182 │
00:02:42 #2056 [Verbose] > │ let v184 : string = "v183 * v110" │
00:02:42 #2057 [Verbose] > │ let v185 : num_complex_Complex<float> = │
00:02:42 #2058 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v184 │
00:02:42 #2059 [Verbose] > │ let v186 : float = method2() │
00:02:42 #2060 [Verbose] > │ let v187 : float = method3(v186) │
00:02:42 #2061 [Verbose] > │ let v188 : float = method4() │
00:02:42 #2062 [Verbose] > │ let v189 : string = "num_complex::Complex::new(v187, │
00:02:42 #2063 [Verbose] > │ v188)" │
00:02:42 #2064 [Verbose] > │ let v190 : num_complex_Complex<float> = │
00:02:42 #2065 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v189 │
00:02:42 #2066 [Verbose] > │ let v191 : string = "v185 / v190" │
00:02:42 #2067 [Verbose] > │ let v192 : num_complex_Complex<float> = │
00:02:42 #2068 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v191 │
00:02:42 #2069 [Verbose] > │ let v193 : string = "v192.sin()" │
00:02:42 #2070 [Verbose] > │ let v194 : num_complex_Complex<float> = │
00:02:42 #2071 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v193 │
00:02:42 #2072 [Verbose] > │ let v195 : num_complex_Complex<float> = method13(v110) │
00:02:42 #2073 [Verbose] > │ let v196 : string = "v195.re" │
00:02:42 #2074 [Verbose] > │ let v197 : float = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #2075 [Verbose] > │ () v196 │
00:02:42 #2076 [Verbose] > │ let v198 : float = 1.0 - v197 │
00:02:42 #2077 [Verbose] > │ let v199 : num_complex_Complex<float> = method14(v110) │
00:02:42 #2078 [Verbose] > │ let v200 : string = "v199.im" │
00:02:42 #2079 [Verbose] > │ let v201 : float = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #2080 [Verbose] > │ () v200 │
00:02:42 #2081 [Verbose] > │ let v202 : float = -v201 │
00:02:42 #2082 [Verbose] > │ let v203 : float = method31(v198) │
00:02:42 #2083 [Verbose] > │ let v204 : float = method3(v203) │
00:02:42 #2084 [Verbose] > │ let v205 : float = method32(v202) │
00:02:42 #2085 [Verbose] > │ let v206 : string = "num_complex::Complex::new(v204, │
00:02:42 #2086 [Verbose] > │ v205)" │
00:02:42 #2087 [Verbose] > │ let v207 : num_complex_Complex<float> = │
00:02:42 #2088 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v206 │
00:02:42 #2089 [Verbose] > │ let v208 : num_complex_Complex<float> = method13(v207) │
00:02:42 #2090 [Verbose] > │ let v209 : string = "v208.re" │
00:02:42 #2091 [Verbose] > │ let v210 : float = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #2092 [Verbose] > │ () v209 │
00:02:42 #2093 [Verbose] > │ let v211 : bool = v210 <= 1.0 │
00:02:42 #2094 [Verbose] > │ let v610 : num_complex_Complex<float> = │
00:02:42 #2095 [Verbose] > │ if v211 then │
00:02:42 #2096 [Verbose] > │ let v212 : float = method35() │
00:02:42 #2097 [Verbose] > │ let v213 : float = method3(v212) │
00:02:42 #2098 [Verbose] > │ let v214 : float = method4() │
00:02:42 #2099 [Verbose] > │ let v215 : string = │
00:02:42 #2100 [Verbose] > │ "num_complex::Complex::new(v213, v214)" │
00:02:42 #2101 [Verbose] > │ let v216 : num_complex_Complex<float> = │
00:02:42 #2102 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v215 │
00:02:42 #2103 [Verbose] > │ v216 │
00:02:42 #2104 [Verbose] > │ else │
00:02:42 #2105 [Verbose] > │ let v217 : num_complex_Complex<float> = │
00:02:42 #2106 [Verbose] > │ method34(v207) │
00:02:42 #2107 [Verbose] > │ let v218 : string = "println!(\"zeta / count: │
00:02:42 #2108 [Verbose] > │ {:?} / s: {:?}\", 2, v217)" │
00:02:42 #2109 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v218 │
00:02:42 #2110 [Verbose] > │ let v219 : num_complex_Complex<float> = │
00:02:42 #2111 [Verbose] > │ method13(v217) │
00:02:42 #2112 [Verbose] > │ let v220 : string = "v219.re" │
00:02:42 #2113 [Verbose] > │ let v221 : float = │
00:02:42 #2114 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v220 │
00:02:42 #2115 [Verbose] > │ let v222 : bool = v221 > 1.0 │
00:02:42 #2116 [Verbose] > │ if v222 then │
00:02:42 #2117 [Verbose] > │ let v223 : float = method35() │
00:02:42 #2118 [Verbose] > │ let v224 : float = method3(v223) │
00:02:42 #2119 [Verbose] > │ let v225 : float = method4() │
00:02:42 #2120 [Verbose] > │ let v226 : string = │
00:02:42 #2121 [Verbose] > │ "num_complex::Complex::new(v224, v225)" │
00:02:42 #2122 [Verbose] > │ let v227 : num_complex_Complex<float> = │
00:02:42 #2123 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v226 │
00:02:42 #2124 [Verbose] > │ let v228 : (int32 []) = │
00:02:42 #2125 [Verbose] > │ Array.zeroCreate<int32> (10000) │
00:02:42 #2126 [Verbose] > │ let v229 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #2127 [Verbose] > │ while method36(v229) do │
00:02:42 #2128 [Verbose] > │ let v231 : int32 = v229.l0 │
00:02:42 #2129 [Verbose] > │ v228.[int v231] <- v231 │
00:02:42 #2130 [Verbose] > │ let v232 : int32 = v231 + 1 │
00:02:42 #2131 [Verbose] > │ v229.l0 <- v232 │
00:02:42 #2132 [Verbose] > │ () │
00:02:42 #2133 [Verbose] > │ let v233 : int32 = v228.Length │
00:02:42 #2134 [Verbose] > │ let v234 : Mut2 = {l0 = 0; l1 = v227} : Mut2 │
00:02:42 #2135 [Verbose] > │ while method37(v233, v234) do │
00:02:42 #2136 [Verbose] > │ let v236 : int32 = v234.l0 │
00:02:42 #2137 [Verbose] > │ let v237 : num_complex_Complex<float> = │
00:02:42 #2138 [Verbose] > │ v234.l1 │
00:02:42 #2139 [Verbose] > │ let v238 : int32 = v228.[int v236] │
00:02:42 #2140 [Verbose] > │ let v239 : float = method38() │
00:02:42 #2141 [Verbose] > │ let v240 : float = method3(v239) │
00:02:42 #2142 [Verbose] > │ let v241 : float = method4() │
00:02:42 #2143 [Verbose] > │ let v242 : string = │
00:02:42 #2144 [Verbose] > │ "num_complex::Complex::new(v240, v241)" │
00:02:42 #2145 [Verbose] > │ let v243 : num_complex_Complex<float> = │
00:02:42 #2146 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v242 │
00:02:42 #2147 [Verbose] > │ let v244 : float = float v238 │
00:02:42 #2148 [Verbose] > │ let v245 : float = method31(v244) │
00:02:42 #2149 [Verbose] > │ let v246 : float = method3(v245) │
00:02:42 #2150 [Verbose] > │ let v247 : float = method4() │
00:02:42 #2151 [Verbose] > │ let v248 : string = │
00:02:42 #2152 [Verbose] > │ "num_complex::Complex::new(v246, v247)" │
00:02:42 #2153 [Verbose] > │ let v249 : num_complex_Complex<float> = │
00:02:42 #2154 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v248 │
00:02:42 #2155 [Verbose] > │ let v250 : num_complex_Complex<float> = │
00:02:42 #2156 [Verbose] > │ method39(v249) │
00:02:42 #2157 [Verbose] > │ let v251 : num_complex_Complex<float> = │
00:02:42 #2158 [Verbose] > │ method40(v217) │
00:02:42 #2159 [Verbose] > │ let v252 : string = │
00:02:42 #2160 [Verbose] > │ "num_complex::Complex::powc(v250, v251)" │
00:02:42 #2161 [Verbose] > │ let v253 : num_complex_Complex<float> = │
00:02:42 #2162 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v252 │
00:02:42 #2163 [Verbose] > │ let v254 : string = "v243 / v253" │
00:02:42 #2164 [Verbose] > │ let v255 : num_complex_Complex<float> = │
00:02:42 #2165 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v254 │
00:02:42 #2166 [Verbose] > │ let v256 : string = "v237 + v255" │
00:02:42 #2167 [Verbose] > │ let v257 : num_complex_Complex<float> = │
00:02:42 #2168 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v256 │
00:02:42 #2169 [Verbose] > │ let v258 : int32 = v236 + 1 │
00:02:42 #2170 [Verbose] > │ v234.l0 <- v258 │
00:02:42 #2171 [Verbose] > │ v234.l1 <- v257 │
00:02:42 #2172 [Verbose] > │ () │
00:02:42 #2173 [Verbose] > │ let v259 : num_complex_Complex<float> = │
00:02:42 #2174 [Verbose] > │ v234.l1 │
00:02:42 #2175 [Verbose] > │ v259 │
00:02:42 #2176 [Verbose] > │ else │
00:02:42 #2177 [Verbose] > │ let v260 : float = method38() │
00:02:42 #2178 [Verbose] > │ let v261 : float = method3(v260) │
00:02:42 #2179 [Verbose] > │ let v262 : float = method4() │
00:02:42 #2180 [Verbose] > │ let v263 : string = │
00:02:42 #2181 [Verbose] > │ "num_complex::Complex::new(v261, v262)" │
00:02:42 #2182 [Verbose] > │ let v264 : num_complex_Complex<float> = │
00:02:42 #2183 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v263 │
00:02:42 #2184 [Verbose] > │ let v265 : string = "v264 - v217" │
00:02:42 #2185 [Verbose] > │ let v266 : num_complex_Complex<float> = │
00:02:42 #2186 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v265 │
00:02:42 #2187 [Verbose] > │ let v267 : string = $" s = │
00:02:42 #2188 [Verbose] > │ mpmath.gamma(s)" │
00:02:42 #2189 [Verbose] > │ let v268 : num_complex_Complex<float> = │
00:02:42 #2190 [Verbose] > │ method8(v266) │
00:02:42 #2191 [Verbose] > │ let v269 : │
00:02:42 #2192 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v267, │
00:02:42 #2193 [Verbose] > │ v268) │
00:02:42 #2194 [Verbose] > │ let v270 : string = "v269.ok()" │
00:02:42 #2195 [Verbose] > │ let v271 : num_complex_Complex<float> option │
00:02:42 #2196 [Verbose] > │ = Fable.Core.RustInterop.emitRustExpr () v270 │
00:02:42 #2197 [Verbose] > │ let v272 : US0 = US0_0 │
00:02:42 #2198 [Verbose] > │ let v273 : US0 = v271 |> Option.map v57 |> │
00:02:42 #2199 [Verbose] > │ Option.defaultValue v272 │
00:02:42 #2200 [Verbose] > │ let v274 : string = "f64::NAN" │
00:02:42 #2201 [Verbose] > │ let v275 : float = │
00:02:42 #2202 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v274 │
00:02:42 #2203 [Verbose] > │ let v276 : string = "f64::NAN" │
00:02:42 #2204 [Verbose] > │ let v277 : float = │
00:02:42 #2205 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v276 │
00:02:42 #2206 [Verbose] > │ let v278 : float = method31(v275) │
00:02:42 #2207 [Verbose] > │ let v279 : float = method3(v278) │
00:02:42 #2208 [Verbose] > │ let v280 : float = method32(v277) │
00:02:42 #2209 [Verbose] > │ let v281 : string = │
00:02:42 #2210 [Verbose] > │ "num_complex::Complex::new(v279, v280)" │
00:02:42 #2211 [Verbose] > │ let v282 : num_complex_Complex<float> = │
00:02:42 #2212 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v281 │
00:02:42 #2213 [Verbose] > │ let v285 : num_complex_Complex<float> = │
00:02:42 #2214 [Verbose] > │ match v273 with │
00:02:42 #2215 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #2216 [Verbose] > │ v282 │
00:02:42 #2217 [Verbose] > │ | US0_1(v283) -> (* Some *) │
00:02:42 #2218 [Verbose] > │ v283 │
00:02:42 #2219 [Verbose] > │ let v286 : float = method42() │
00:02:42 #2220 [Verbose] > │ let v287 : float = method3(v286) │
00:02:42 #2221 [Verbose] > │ let v288 : float = method4() │
00:02:42 #2222 [Verbose] > │ let v289 : string = │
00:02:42 #2223 [Verbose] > │ "num_complex::Complex::new(v287, v288)" │
00:02:42 #2224 [Verbose] > │ let v290 : num_complex_Complex<float> = │
00:02:42 #2225 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v289 │
00:02:42 #2226 [Verbose] > │ let v291 : string = "v290 * v217" │
00:02:42 #2227 [Verbose] > │ let v292 : num_complex_Complex<float> = │
00:02:42 #2228 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v291 │
00:02:42 #2229 [Verbose] > │ let v293 : float = method2() │
00:02:42 #2230 [Verbose] > │ let v294 : float = method3(v293) │
00:02:42 #2231 [Verbose] > │ let v295 : float = method4() │
00:02:42 #2232 [Verbose] > │ let v296 : string = │
00:02:42 #2233 [Verbose] > │ "num_complex::Complex::new(v294, v295)" │
00:02:42 #2234 [Verbose] > │ let v297 : num_complex_Complex<float> = │
00:02:42 #2235 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v296 │
00:02:42 #2236 [Verbose] > │ let v298 : string = "v292 / v297" │
00:02:42 #2237 [Verbose] > │ let v299 : num_complex_Complex<float> = │
00:02:42 #2238 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v298 │
00:02:42 #2239 [Verbose] > │ let v300 : string = "v299.sin()" │
00:02:42 #2240 [Verbose] > │ let v301 : num_complex_Complex<float> = │
00:02:42 #2241 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v300 │
00:02:42 #2242 [Verbose] > │ let v302 : num_complex_Complex<float> = │
00:02:42 #2243 [Verbose] > │ method13(v217) │
00:02:42 #2244 [Verbose] > │ let v303 : string = "v302.re" │
00:02:42 #2245 [Verbose] > │ let v304 : float = │
00:02:42 #2246 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v303 │
00:02:42 #2247 [Verbose] > │ let v305 : float = 1.0 - v304 │
00:02:42 #2248 [Verbose] > │ let v306 : num_complex_Complex<float> = │
00:02:42 #2249 [Verbose] > │ method14(v217) │
00:02:42 #2250 [Verbose] > │ let v307 : string = "v306.im" │
00:02:42 #2251 [Verbose] > │ let v308 : float = │
00:02:42 #2252 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v307 │
00:02:42 #2253 [Verbose] > │ let v309 : float = -v308 │
00:02:42 #2254 [Verbose] > │ let v310 : float = method31(v305) │
00:02:42 #2255 [Verbose] > │ let v311 : float = method3(v310) │
00:02:42 #2256 [Verbose] > │ let v312 : float = method32(v309) │
00:02:42 #2257 [Verbose] > │ let v313 : string = │
00:02:42 #2258 [Verbose] > │ "num_complex::Complex::new(v311, v312)" │
00:02:42 #2259 [Verbose] > │ let v314 : num_complex_Complex<float> = │
00:02:42 #2260 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v313 │
00:02:42 #2261 [Verbose] > │ let v315 : num_complex_Complex<float> = │
00:02:42 #2262 [Verbose] > │ method13(v314) │
00:02:42 #2263 [Verbose] > │ let v316 : string = "v315.re" │
00:02:42 #2264 [Verbose] > │ let v317 : float = │
00:02:42 #2265 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v316 │
00:02:42 #2266 [Verbose] > │ let v318 : bool = v317 <= 1.0 │
00:02:42 #2267 [Verbose] > │ let v586 : num_complex_Complex<float> = │
00:02:42 #2268 [Verbose] > │ if v318 then │
00:02:42 #2269 [Verbose] > │ let v319 : float = method35() │
00:02:42 #2270 [Verbose] > │ let v320 : float = method3(v319) │
00:02:42 #2271 [Verbose] > │ let v321 : float = method4() │
00:02:42 #2272 [Verbose] > │ let v322 : string = │
00:02:42 #2273 [Verbose] > │ "num_complex::Complex::new(v320, v321)" │
00:02:42 #2274 [Verbose] > │ let v323 : │
00:02:42 #2275 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v322 │
00:02:42 #2276 [Verbose] > │ v323 │
00:02:42 #2277 [Verbose] > │ else │
00:02:42 #2278 [Verbose] > │ let v324 : │
00:02:42 #2279 [Verbose] > │ num_complex_Complex<float> = method34(v314) │
00:02:42 #2280 [Verbose] > │ let v325 : string = "println!(\"zeta │
00:02:42 #2281 [Verbose] > │ / count: {:?} / s: {:?}\", 3, v324)" │
00:02:42 #2282 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr │
00:02:42 #2283 [Verbose] > │ () v325 │
00:02:42 #2284 [Verbose] > │ let v326 : │
00:02:42 #2285 [Verbose] > │ num_complex_Complex<float> = method13(v324) │
00:02:42 #2286 [Verbose] > │ let v327 : string = "v326.re" │
00:02:42 #2287 [Verbose] > │ let v328 : float = │
00:02:42 #2288 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v327 │
00:02:42 #2289 [Verbose] > │ let v329 : bool = v328 > 1.0 │
00:02:42 #2290 [Verbose] > │ if v329 then │
00:02:42 #2291 [Verbose] > │ let v330 : float = method35() │
00:02:42 #2292 [Verbose] > │ let v331 : float = method3(v330) │
00:02:42 #2293 [Verbose] > │ let v332 : float = method4() │
00:02:42 #2294 [Verbose] > │ let v333 : string = │
00:02:42 #2295 [Verbose] > │ "num_complex::Complex::new(v331, v332)" │
00:02:42 #2296 [Verbose] > │ let v334 : │
00:02:42 #2297 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v333 │
00:02:42 #2298 [Verbose] > │ let v335 : (int32 []) = │
00:02:42 #2299 [Verbose] > │ Array.zeroCreate<int32> (10000) │
00:02:42 #2300 [Verbose] > │ let v336 : Mut0 = {l0 = 0} : │
00:02:42 #2301 [Verbose] > │ Mut0 │
00:02:42 #2302 [Verbose] > │ while method36(v336) do │
00:02:42 #2303 [Verbose] > │ let v338 : int32 = v336.l0 │
00:02:42 #2304 [Verbose] > │ v335.[int v338] <- v338 │
00:02:42 #2305 [Verbose] > │ let v339 : int32 = v338 + 1 │
00:02:42 #2306 [Verbose] > │ v336.l0 <- v339 │
00:02:42 #2307 [Verbose] > │ () │
00:02:42 #2308 [Verbose] > │ let v340 : int32 = v335.Length │
00:02:42 #2309 [Verbose] > │ let v341 : Mut2 = {l0 = 0; l1 = │
00:02:42 #2310 [Verbose] > │ v334} : Mut2 │
00:02:42 #2311 [Verbose] > │ while method37(v340, v341) do │
00:02:42 #2312 [Verbose] > │ let v343 : int32 = v341.l0 │
00:02:42 #2313 [Verbose] > │ let v344 : │
00:02:42 #2314 [Verbose] > │ num_complex_Complex<float> = v341.l1 │
00:02:42 #2315 [Verbose] > │ let v345 : int32 = v335.[int │
00:02:42 #2316 [Verbose] > │ v343] │
00:02:42 #2317 [Verbose] > │ let v346 : float = │
00:02:42 #2318 [Verbose] > │ method38() │
00:02:42 #2319 [Verbose] > │ let v347 : float = │
00:02:42 #2320 [Verbose] > │ method3(v346) │
00:02:42 #2321 [Verbose] > │ let v348 : float = method4() │
00:02:42 #2322 [Verbose] > │ let v349 : string = │
00:02:42 #2323 [Verbose] > │ "num_complex::Complex::new(v347, v348)" │
00:02:42 #2324 [Verbose] > │ let v350 : │
00:02:42 #2325 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v349 │
00:02:42 #2326 [Verbose] > │ let v351 : float = float │
00:02:42 #2327 [Verbose] > │ v345 │
00:02:42 #2328 [Verbose] > │ let v352 : float = │
00:02:42 #2329 [Verbose] > │ method31(v351) │
00:02:42 #2330 [Verbose] > │ let v353 : float = │
00:02:42 #2331 [Verbose] > │ method3(v352) │
00:02:42 #2332 [Verbose] > │ let v354 : float = method4() │
00:02:42 #2333 [Verbose] > │ let v355 : string = │
00:02:42 #2334 [Verbose] > │ "num_complex::Complex::new(v353, v354)" │
00:02:42 #2335 [Verbose] > │ let v356 : │
00:02:42 #2336 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v355 │
00:02:42 #2337 [Verbose] > │ let v357 : │
00:02:42 #2338 [Verbose] > │ num_complex_Complex<float> = method39(v356) │
00:02:42 #2339 [Verbose] > │ let v358 : │
00:02:42 #2340 [Verbose] > │ num_complex_Complex<float> = method40(v324) │
00:02:42 #2341 [Verbose] > │ let v359 : string = │
00:02:42 #2342 [Verbose] > │ "num_complex::Complex::powc(v357, v358)" │
00:02:42 #2343 [Verbose] > │ let v360 : │
00:02:42 #2344 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v359 │
00:02:42 #2345 [Verbose] > │ let v361 : string = "v350 / │
00:02:42 #2346 [Verbose] > │ v360" │
00:02:42 #2347 [Verbose] > │ let v362 : │
00:02:42 #2348 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v361 │
00:02:42 #2349 [Verbose] > │ let v363 : string = "v344 + │
00:02:42 #2350 [Verbose] > │ v362" │
00:02:42 #2351 [Verbose] > │ let v364 : │
00:02:42 #2352 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v363 │
00:02:42 #2353 [Verbose] > │ let v365 : int32 = v343 + 1 │
00:02:42 #2354 [Verbose] > │ v341.l0 <- v365 │
00:02:42 #2355 [Verbose] > │ v341.l1 <- v364 │
00:02:42 #2356 [Verbose] > │ () │
00:02:42 #2357 [Verbose] > │ let v366 : │
00:02:42 #2358 [Verbose] > │ num_complex_Complex<float> = v341.l1 │
00:02:42 #2359 [Verbose] > │ v366 │
00:02:42 #2360 [Verbose] > │ else │
00:02:42 #2361 [Verbose] > │ let v367 : float = method38() │
00:02:42 #2362 [Verbose] > │ let v368 : float = method3(v367) │
00:02:42 #2363 [Verbose] > │ let v369 : float = method4() │
00:02:42 #2364 [Verbose] > │ let v370 : string = │
00:02:42 #2365 [Verbose] > │ "num_complex::Complex::new(v368, v369)" │
00:02:42 #2366 [Verbose] > │ let v371 : │
00:02:42 #2367 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v370 │
00:02:42 #2368 [Verbose] > │ let v372 : string = "v371 - │
00:02:42 #2369 [Verbose] > │ v324" │
00:02:42 #2370 [Verbose] > │ let v373 : │
00:02:42 #2371 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v372 │
00:02:42 #2372 [Verbose] > │ let v374 : string = $" s │
00:02:42 #2373 [Verbose] > │ = mpmath.gamma(s)" │
00:02:42 #2374 [Verbose] > │ let v375 : │
00:02:42 #2375 [Verbose] > │ num_complex_Complex<float> = method8(v373) │
00:02:42 #2376 [Verbose] > │ let v376 : │
00:02:42 #2377 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v374, │
00:02:42 #2378 [Verbose] > │ v375) │
00:02:42 #2379 [Verbose] > │ let v377 : string = "v376.ok()" │
00:02:42 #2380 [Verbose] > │ let v378 : │
00:02:42 #2381 [Verbose] > │ num_complex_Complex<float> option = Fable.Core.RustInterop.emitRustExpr () │
00:02:42 #2382 [Verbose] > │ v377 │
00:02:42 #2383 [Verbose] > │ let v379 : US0 = US0_0 │
00:02:42 #2384 [Verbose] > │ let v380 : US0 = v378 |> │
00:02:42 #2385 [Verbose] > │ Option.map v57 |> Option.defaultValue v379 │
00:02:42 #2386 [Verbose] > │ let v381 : string = "f64::NAN" │
00:02:42 #2387 [Verbose] > │ let v382 : float = │
00:02:42 #2388 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v381 │
00:02:42 #2389 [Verbose] > │ let v383 : string = "f64::NAN" │
00:02:42 #2390 [Verbose] > │ let v384 : float = │
00:02:42 #2391 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v383 │
00:02:42 #2392 [Verbose] > │ let v385 : float = │
00:02:42 #2393 [Verbose] > │ method31(v382) │
00:02:42 #2394 [Verbose] > │ let v386 : float = method3(v385) │
00:02:42 #2395 [Verbose] > │ let v387 : float = │
00:02:42 #2396 [Verbose] > │ method32(v384) │
00:02:42 #2397 [Verbose] > │ let v388 : string = │
00:02:42 #2398 [Verbose] > │ "num_complex::Complex::new(v386, v387)" │
00:02:42 #2399 [Verbose] > │ let v389 : │
00:02:42 #2400 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v388 │
00:02:42 #2401 [Verbose] > │ let v392 : │
00:02:42 #2402 [Verbose] > │ num_complex_Complex<float> = │
00:02:42 #2403 [Verbose] > │ match v380 with │
00:02:42 #2404 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #2405 [Verbose] > │ v389 │
00:02:42 #2406 [Verbose] > │ | US0_1(v390) -> (* Some *) │
00:02:42 #2407 [Verbose] > │ v390 │
00:02:42 #2408 [Verbose] > │ let v393 : float = method42() │
00:02:42 #2409 [Verbose] > │ let v394 : float = method3(v393) │
00:02:42 #2410 [Verbose] > │ let v395 : float = method4() │
00:02:42 #2411 [Verbose] > │ let v396 : string = │
00:02:42 #2412 [Verbose] > │ "num_complex::Complex::new(v394, v395)" │
00:02:42 #2413 [Verbose] > │ let v397 : │
00:02:42 #2414 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v396 │
00:02:42 #2415 [Verbose] > │ let v398 : string = "v397 * │
00:02:42 #2416 [Verbose] > │ v324" │
00:02:42 #2417 [Verbose] > │ let v399 : │
00:02:42 #2418 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v398 │
00:02:42 #2419 [Verbose] > │ let v400 : float = method2() │
00:02:42 #2420 [Verbose] > │ let v401 : float = method3(v400) │
00:02:42 #2421 [Verbose] > │ let v402 : float = method4() │
00:02:42 #2422 [Verbose] > │ let v403 : string = │
00:02:42 #2423 [Verbose] > │ "num_complex::Complex::new(v401, v402)" │
00:02:42 #2424 [Verbose] > │ let v404 : │
00:02:42 #2425 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v403 │
00:02:42 #2426 [Verbose] > │ let v405 : string = "v399 / │
00:02:42 #2427 [Verbose] > │ v404" │
00:02:42 #2428 [Verbose] > │ let v406 : │
00:02:42 #2429 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v405 │
00:02:42 #2430 [Verbose] > │ let v407 : string = "v406.sin()" │
00:02:42 #2431 [Verbose] > │ let v408 : │
00:02:42 #2432 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v407 │
00:02:42 #2433 [Verbose] > │ let v409 : │
00:02:42 #2434 [Verbose] > │ num_complex_Complex<float> = method13(v324) │
00:02:42 #2435 [Verbose] > │ let v410 : string = "v409.re" │
00:02:42 #2436 [Verbose] > │ let v411 : float = │
00:02:42 #2437 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v410 │
00:02:42 #2438 [Verbose] > │ let v412 : float = 1.0 - v411 │
00:02:42 #2439 [Verbose] > │ let v413 : │
00:02:42 #2440 [Verbose] > │ num_complex_Complex<float> = method14(v324) │
00:02:42 #2441 [Verbose] > │ let v414 : string = "v413.im" │
00:02:42 #2442 [Verbose] > │ let v415 : float = │
00:02:42 #2443 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v414 │
00:02:42 #2444 [Verbose] > │ let v416 : float = -v415 │
00:02:42 #2445 [Verbose] > │ let v417 : float = │
00:02:42 #2446 [Verbose] > │ method31(v412) │
00:02:42 #2447 [Verbose] > │ let v418 : float = method3(v417) │
00:02:42 #2448 [Verbose] > │ let v419 : float = │
00:02:42 #2449 [Verbose] > │ method32(v416) │
00:02:42 #2450 [Verbose] > │ let v420 : string = │
00:02:42 #2451 [Verbose] > │ "num_complex::Complex::new(v418, v419)" │
00:02:42 #2452 [Verbose] > │ let v421 : │
00:02:42 #2453 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v420 │
00:02:42 #2454 [Verbose] > │ let v422 : │
00:02:42 #2455 [Verbose] > │ num_complex_Complex<float> = method13(v421) │
00:02:42 #2456 [Verbose] > │ let v423 : string = "v422.re" │
00:02:42 #2457 [Verbose] > │ let v424 : float = │
00:02:42 #2458 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v423 │
00:02:42 #2459 [Verbose] > │ let v425 : bool = v424 <= 1.0 │
00:02:42 #2460 [Verbose] > │ let v562 : │
00:02:42 #2461 [Verbose] > │ num_complex_Complex<float> = │
00:02:42 #2462 [Verbose] > │ if v425 then │
00:02:42 #2463 [Verbose] > │ let v426 : float = │
00:02:42 #2464 [Verbose] > │ method35() │
00:02:42 #2465 [Verbose] > │ let v427 : float = │
00:02:42 #2466 [Verbose] > │ method3(v426) │
00:02:42 #2467 [Verbose] > │ let v428 : float = │
00:02:42 #2468 [Verbose] > │ method4() │
00:02:42 #2469 [Verbose] > │ let v429 : string = │
00:02:42 #2470 [Verbose] > │ "num_complex::Complex::new(v427, v428)" │
00:02:42 #2471 [Verbose] > │ let v430 : │
00:02:42 #2472 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v429 │
00:02:42 #2473 [Verbose] > │ v430 │
00:02:42 #2474 [Verbose] > │ else │
00:02:42 #2475 [Verbose] > │ let v431 : │
00:02:42 #2476 [Verbose] > │ num_complex_Complex<float> = method34(v421) │
00:02:42 #2477 [Verbose] > │ let v432 : string = │
00:02:42 #2478 [Verbose] > │ "println!(\"zeta / count: {:?} / s: {:?}\", 4, v431)" │
00:02:42 #2479 [Verbose] > │ │
00:02:42 #2480 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v432 │
00:02:42 #2481 [Verbose] > │ let v433 : │
00:02:42 #2482 [Verbose] > │ num_complex_Complex<float> = method13(v431) │
00:02:42 #2483 [Verbose] > │ let v434 : string = │
00:02:42 #2484 [Verbose] > │ "v433.re" │
00:02:42 #2485 [Verbose] > │ let v435 : float = │
00:02:42 #2486 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v434 │
00:02:42 #2487 [Verbose] > │ let v436 : bool = v435 > │
00:02:42 #2488 [Verbose] > │ 1.0 │
00:02:42 #2489 [Verbose] > │ if v436 then │
00:02:42 #2490 [Verbose] > │ let v437 : float = │
00:02:42 #2491 [Verbose] > │ method35() │
00:02:42 #2492 [Verbose] > │ let v438 : float = │
00:02:42 #2493 [Verbose] > │ method3(v437) │
00:02:42 #2494 [Verbose] > │ let v439 : float = │
00:02:42 #2495 [Verbose] > │ method4() │
00:02:42 #2496 [Verbose] > │ let v440 : string = │
00:02:42 #2497 [Verbose] > │ "num_complex::Complex::new(v438, v439)" │
00:02:42 #2498 [Verbose] > │ let v441 : │
00:02:42 #2499 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v440 │
00:02:42 #2500 [Verbose] > │ let v442 : (int32 [ │
00:02:42 #2501 [Verbose] > │ ]) = Array.zeroCreate<int32> (10000) │
00:02:42 #2502 [Verbose] > │ let v443 : Mut0 = │
00:02:42 #2503 [Verbose] > │ {l0 = 0} : Mut0 │
00:02:42 #2504 [Verbose] > │ while method36(v443) │
00:02:42 #2505 [Verbose] > │ do │
00:02:42 #2506 [Verbose] > │ let v445 : int32 │
00:02:42 #2507 [Verbose] > │ = v443.l0 │
00:02:42 #2508 [Verbose] > │ v442.[int v445] │
00:02:42 #2509 [Verbose] > │ <- v445 │
00:02:42 #2510 [Verbose] > │ let v446 : int32 │
00:02:42 #2511 [Verbose] > │ = v445 + 1 │
00:02:42 #2512 [Verbose] > │ v443.l0 <- v446 │
00:02:42 #2513 [Verbose] > │ () │
00:02:42 #2514 [Verbose] > │ let v447 : int32 = │
00:02:42 #2515 [Verbose] > │ v442.Length │
00:02:42 #2516 [Verbose] > │ let v448 : Mut2 = │
00:02:42 #2517 [Verbose] > │ {l0 = 0; l1 = v441} : Mut2 │
00:02:42 #2518 [Verbose] > │ while method37(v447, │
00:02:42 #2519 [Verbose] > │ v448) do │
00:02:42 #2520 [Verbose] > │ let v450 : int32 │
00:02:42 #2521 [Verbose] > │ = v448.l0 │
00:02:42 #2522 [Verbose] > │ let v451 : │
00:02:42 #2523 [Verbose] > │ num_complex_Complex<float> = v448.l1 │
00:02:42 #2524 [Verbose] > │ let v452 : int32 │
00:02:42 #2525 [Verbose] > │ = v442.[int v450] │
00:02:42 #2526 [Verbose] > │ let v453 : float │
00:02:42 #2527 [Verbose] > │ = method38() │
00:02:42 #2528 [Verbose] > │ let v454 : float │
00:02:42 #2529 [Verbose] > │ = method3(v453) │
00:02:42 #2530 [Verbose] > │ let v455 : float │
00:02:42 #2531 [Verbose] > │ = method4() │
00:02:42 #2532 [Verbose] > │ let v456 : │
00:02:42 #2533 [Verbose] > │ string = "num_complex::Complex::new(v454, v455)" │
00:02:42 #2534 [Verbose] > │ let v457 : │
00:02:42 #2535 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v456 │
00:02:42 #2536 [Verbose] > │ let v458 : float │
00:02:42 #2537 [Verbose] > │ = float v452 │
00:02:42 #2538 [Verbose] > │ let v459 : float │
00:02:42 #2539 [Verbose] > │ = method31(v458) │
00:02:42 #2540 [Verbose] > │ let v460 : float │
00:02:42 #2541 [Verbose] > │ = method3(v459) │
00:02:42 #2542 [Verbose] > │ let v461 : float │
00:02:42 #2543 [Verbose] > │ = method4() │
00:02:42 #2544 [Verbose] > │ let v462 : │
00:02:42 #2545 [Verbose] > │ string = "num_complex::Complex::new(v460, v461)" │
00:02:42 #2546 [Verbose] > │ let v463 : │
00:02:42 #2547 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v462 │
00:02:42 #2548 [Verbose] > │ let v464 : │
00:02:42 #2549 [Verbose] > │ num_complex_Complex<float> = method39(v463) │
00:02:42 #2550 [Verbose] > │ let v465 : │
00:02:42 #2551 [Verbose] > │ num_complex_Complex<float> = method40(v431) │
00:02:42 #2552 [Verbose] > │ let v466 : │
00:02:42 #2553 [Verbose] > │ string = "num_complex::Complex::powc(v464, v465)" │
00:02:42 #2554 [Verbose] > │ let v467 : │
00:02:42 #2555 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v466 │
00:02:42 #2556 [Verbose] > │ let v468 : │
00:02:42 #2557 [Verbose] > │ string = "v457 / v467" │
00:02:42 #2558 [Verbose] > │ let v469 : │
00:02:42 #2559 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v468 │
00:02:42 #2560 [Verbose] > │ let v470 : │
00:02:42 #2561 [Verbose] > │ string = "v451 + v469" │
00:02:42 #2562 [Verbose] > │ let v471 : │
00:02:42 #2563 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v470 │
00:02:42 #2564 [Verbose] > │ let v472 : int32 │
00:02:42 #2565 [Verbose] > │ = v450 + 1 │
00:02:42 #2566 [Verbose] > │ v448.l0 <- v472 │
00:02:42 #2567 [Verbose] > │ v448.l1 <- v471 │
00:02:42 #2568 [Verbose] > │ () │
00:02:42 #2569 [Verbose] > │ let v473 : │
00:02:42 #2570 [Verbose] > │ num_complex_Complex<float> = v448.l1 │
00:02:42 #2571 [Verbose] > │ v473 │
00:02:42 #2572 [Verbose] > │ else │
00:02:42 #2573 [Verbose] > │ let v474 : float = │
00:02:42 #2574 [Verbose] > │ method38() │
00:02:42 #2575 [Verbose] > │ let v475 : float = │
00:02:42 #2576 [Verbose] > │ method3(v474) │
00:02:42 #2577 [Verbose] > │ let v476 : float = │
00:02:42 #2578 [Verbose] > │ method4() │
00:02:42 #2579 [Verbose] > │ let v477 : string = │
00:02:42 #2580 [Verbose] > │ "num_complex::Complex::new(v475, v476)" │
00:02:42 #2581 [Verbose] > │ let v478 : │
00:02:42 #2582 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v477 │
00:02:42 #2583 [Verbose] > │ let v479 : string = │
00:02:42 #2584 [Verbose] > │ "v478 - v431" │
00:02:42 #2585 [Verbose] > │ let v480 : │
00:02:42 #2586 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v479 │
00:02:42 #2587 [Verbose] > │ let v481 : string = │
00:02:42 #2588 [Verbose] > │ $" s = mpmath.gamma(s)" │
00:02:42 #2589 [Verbose] > │ let v482 : │
00:02:42 #2590 [Verbose] > │ num_complex_Complex<float> = method8(v480) │
00:02:42 #2591 [Verbose] > │ let v483 : │
00:02:42 #2592 [Verbose] > │ Result<num_complex_Complex<float>, std_string_String> = method41(v0, v481, │
00:02:42 #2593 [Verbose] > │ v482) │
00:02:42 #2594 [Verbose] > │ let v484 : string = │
00:02:42 #2595 [Verbose] > │ "v483.ok()" │
00:02:42 #2596 [Verbose] > │ let v485 : │
00:02:42 #2597 [Verbose] > │ num_complex_Complex<float> option = Fable.Core.RustInterop.emitRustExpr () │
00:02:42 #2598 [Verbose] > │ v484 │
00:02:42 #2599 [Verbose] > │ let v486 : US0 = │
00:02:42 #2600 [Verbose] > │ US0_0 │
00:02:42 #2601 [Verbose] > │ let v487 : US0 = │
00:02:42 #2602 [Verbose] > │ v485 |> Option.map v57 |> Option.defaultValue v486 │
00:02:42 #2603 [Verbose] > │ let v488 : string = │
00:02:42 #2604 [Verbose] > │ "f64::NAN" │
00:02:42 #2605 [Verbose] > │ let v489 : float = │
00:02:42 #2606 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v488 │
00:02:42 #2607 [Verbose] > │ let v490 : string = │
00:02:42 #2608 [Verbose] > │ "f64::NAN" │
00:02:42 #2609 [Verbose] > │ let v491 : float = │
00:02:42 #2610 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v490 │
00:02:42 #2611 [Verbose] > │ let v492 : float = │
00:02:42 #2612 [Verbose] > │ method31(v489) │
00:02:42 #2613 [Verbose] > │ let v493 : float = │
00:02:42 #2614 [Verbose] > │ method3(v492) │
00:02:42 #2615 [Verbose] > │ let v494 : float = │
00:02:42 #2616 [Verbose] > │ method32(v491) │
00:02:42 #2617 [Verbose] > │ let v495 : string = │
00:02:42 #2618 [Verbose] > │ "num_complex::Complex::new(v493, v494)" │
00:02:42 #2619 [Verbose] > │ let v496 : │
00:02:42 #2620 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v495 │
00:02:42 #2621 [Verbose] > │ let v499 : │
00:02:42 #2622 [Verbose] > │ num_complex_Complex<float> = │
00:02:42 #2623 [Verbose] > │ match v487 with │
00:02:42 #2624 [Verbose] > │ | US0_0 -> (* │
00:02:42 #2625 [Verbose] > │ None *) │
00:02:42 #2626 [Verbose] > │ v496 │
00:02:42 #2627 [Verbose] > │ | US0_1(v497) -> │
00:02:42 #2628 [Verbose] > │ (* Some *) │
00:02:42 #2629 [Verbose] > │ v497 │
00:02:42 #2630 [Verbose] > │ let v500 : float = │
00:02:42 #2631 [Verbose] > │ method42() │
00:02:42 #2632 [Verbose] > │ let v501 : float = │
00:02:42 #2633 [Verbose] > │ method3(v500) │
00:02:42 #2634 [Verbose] > │ let v502 : float = │
00:02:42 #2635 [Verbose] > │ method4() │
00:02:42 #2636 [Verbose] > │ let v503 : string = │
00:02:42 #2637 [Verbose] > │ "num_complex::Complex::new(v501, v502)" │
00:02:42 #2638 [Verbose] > │ let v504 : │
00:02:42 #2639 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v503 │
00:02:42 #2640 [Verbose] > │ let v505 : string = │
00:02:42 #2641 [Verbose] > │ "v504 * v431" │
00:02:42 #2642 [Verbose] > │ let v506 : │
00:02:42 #2643 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v505 │
00:02:42 #2644 [Verbose] > │ let v507 : float = │
00:02:42 #2645 [Verbose] > │ method2() │
00:02:42 #2646 [Verbose] > │ let v508 : float = │
00:02:42 #2647 [Verbose] > │ method3(v507) │
00:02:42 #2648 [Verbose] > │ let v509 : float = │
00:02:42 #2649 [Verbose] > │ method4() │
00:02:42 #2650 [Verbose] > │ let v510 : string = │
00:02:42 #2651 [Verbose] > │ "num_complex::Complex::new(v508, v509)" │
00:02:42 #2652 [Verbose] > │ let v511 : │
00:02:42 #2653 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v510 │
00:02:42 #2654 [Verbose] > │ let v512 : string = │
00:02:42 #2655 [Verbose] > │ "v506 / v511" │
00:02:42 #2656 [Verbose] > │ let v513 : │
00:02:42 #2657 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v512 │
00:02:42 #2658 [Verbose] > │ let v514 : string = │
00:02:42 #2659 [Verbose] > │ "v513.sin()" │
00:02:42 #2660 [Verbose] > │ let v515 : │
00:02:42 #2661 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v514 │
00:02:42 #2662 [Verbose] > │ let v516 : │
00:02:42 #2663 [Verbose] > │ num_complex_Complex<float> = method13(v431) │
00:02:42 #2664 [Verbose] > │ let v517 : string = │
00:02:42 #2665 [Verbose] > │ "v516.re" │
00:02:42 #2666 [Verbose] > │ let v518 : float = │
00:02:42 #2667 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v517 │
00:02:42 #2668 [Verbose] > │ let v519 : float = │
00:02:42 #2669 [Verbose] > │ 1.0 - v518 │
00:02:42 #2670 [Verbose] > │ let v520 : │
00:02:42 #2671 [Verbose] > │ num_complex_Complex<float> = method14(v431) │
00:02:42 #2672 [Verbose] > │ let v521 : string = │
00:02:42 #2673 [Verbose] > │ "v520.im" │
00:02:42 #2674 [Verbose] > │ let v522 : float = │
00:02:42 #2675 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v521 │
00:02:42 #2676 [Verbose] > │ let v523 : float = │
00:02:42 #2677 [Verbose] > │ -v522 │
00:02:42 #2678 [Verbose] > │ let v524 : float = │
00:02:42 #2679 [Verbose] > │ method31(v519) │
00:02:42 #2680 [Verbose] > │ let v525 : float = │
00:02:42 #2681 [Verbose] > │ method3(v524) │
00:02:42 #2682 [Verbose] > │ let v526 : float = │
00:02:42 #2683 [Verbose] > │ method32(v523) │
00:02:42 #2684 [Verbose] > │ let v527 : string = │
00:02:42 #2685 [Verbose] > │ "num_complex::Complex::new(v525, v526)" │
00:02:42 #2686 [Verbose] > │ let v528 : │
00:02:42 #2687 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v527 │
00:02:42 #2688 [Verbose] > │ let v529 : │
00:02:42 #2689 [Verbose] > │ num_complex_Complex<float> = method13(v528) │
00:02:42 #2690 [Verbose] > │ let v530 : string = │
00:02:42 #2691 [Verbose] > │ "v529.re" │
00:02:42 #2692 [Verbose] > │ let v531 : float = │
00:02:42 #2693 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v530 │
00:02:42 #2694 [Verbose] > │ let v532 : bool = │
00:02:42 #2695 [Verbose] > │ v531 <= 1.0 │
00:02:42 #2696 [Verbose] > │ let v538 : │
00:02:42 #2697 [Verbose] > │ num_complex_Complex<float> = │
00:02:42 #2698 [Verbose] > │ if v532 then │
00:02:42 #2699 [Verbose] > │ let v533 : │
00:02:42 #2700 [Verbose] > │ float = method35() │
00:02:42 #2701 [Verbose] > │ let v534 : │
00:02:42 #2702 [Verbose] > │ float = method3(v533) │
00:02:42 #2703 [Verbose] > │ let v535 : │
00:02:42 #2704 [Verbose] > │ float = method4() │
00:02:42 #2705 [Verbose] > │ let v536 : │
00:02:42 #2706 [Verbose] > │ string = "num_complex::Complex::new(v534, v535)" │
00:02:42 #2707 [Verbose] > │ let v537 : │
00:02:42 #2708 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v536 │
00:02:42 #2709 [Verbose] > │ v537 │
00:02:42 #2710 [Verbose] > │ else │
00:02:42 #2711 [Verbose] > │ v528 │
00:02:42 #2712 [Verbose] > │ let v539 : float = │
00:02:42 #2713 [Verbose] > │ method2() │
00:02:42 #2714 [Verbose] > │ let v540 : float = │
00:02:42 #2715 [Verbose] > │ method3(v539) │
00:02:42 #2716 [Verbose] > │ let v541 : float = │
00:02:42 #2717 [Verbose] > │ method4() │
00:02:42 #2718 [Verbose] > │ let v542 : string = │
00:02:42 #2719 [Verbose] > │ "num_complex::Complex::new(v540, v541)" │
00:02:42 #2720 [Verbose] > │ let v543 : │
00:02:42 #2721 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v542 │
00:02:42 #2722 [Verbose] > │ let v544 : float = │
00:02:42 #2723 [Verbose] > │ method42() │
00:02:42 #2724 [Verbose] > │ let v545 : float = │
00:02:42 #2725 [Verbose] > │ method3(v544) │
00:02:42 #2726 [Verbose] > │ let v546 : float = │
00:02:42 #2727 [Verbose] > │ method4() │
00:02:42 #2728 [Verbose] > │ let v547 : string = │
00:02:42 #2729 [Verbose] > │ "num_complex::Complex::new(v545, v546)" │
00:02:42 #2730 [Verbose] > │ let v548 : │
00:02:42 #2731 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v547 │
00:02:42 #2732 [Verbose] > │ let v549 : │
00:02:42 #2733 [Verbose] > │ num_complex_Complex<float> = method39(v548) │
00:02:42 #2734 [Verbose] > │ let v550 : │
00:02:42 #2735 [Verbose] > │ num_complex_Complex<float> = method40(v431) │
00:02:42 #2736 [Verbose] > │ let v551 : string = │
00:02:42 #2737 [Verbose] > │ "num_complex::Complex::powc(v549, v550)" │
00:02:42 #2738 [Verbose] > │ let v552 : │
00:02:42 #2739 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v551 │
00:02:42 #2740 [Verbose] > │ let v553 : string = │
00:02:42 #2741 [Verbose] > │ "v543 * v552" │
00:02:42 #2742 [Verbose] > │ let v554 : │
00:02:42 #2743 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v553 │
00:02:42 #2744 [Verbose] > │ let v555 : string = │
00:02:42 #2745 [Verbose] > │ "v554 * v515" │
00:02:42 #2746 [Verbose] > │ let v556 : │
00:02:42 #2747 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v555 │
00:02:42 #2748 [Verbose] > │ let v557 : string = │
00:02:42 #2749 [Verbose] > │ "v556 * v499" │
00:02:42 #2750 [Verbose] > │ let v558 : │
00:02:42 #2751 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v557 │
00:02:42 #2752 [Verbose] > │ let v559 : string = │
00:02:42 #2753 [Verbose] > │ "v558 * v538" │
00:02:42 #2754 [Verbose] > │ let v560 : │
00:02:42 #2755 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v559 │
00:02:42 #2756 [Verbose] > │ v560 │
00:02:42 #2757 [Verbose] > │ let v563 : float = method2() │
00:02:42 #2758 [Verbose] > │ let v564 : float = method3(v563) │
00:02:42 #2759 [Verbose] > │ let v565 : float = method4() │
00:02:42 #2760 [Verbose] > │ let v566 : string = │
00:02:42 #2761 [Verbose] > │ "num_complex::Complex::new(v564, v565)" │
00:02:42 #2762 [Verbose] > │ let v567 : │
00:02:42 #2763 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v566 │
00:02:42 #2764 [Verbose] > │ let v568 : float = method42() │
00:02:42 #2765 [Verbose] > │ let v569 : float = method3(v568) │
00:02:42 #2766 [Verbose] > │ let v570 : float = method4() │
00:02:42 #2767 [Verbose] > │ let v571 : string = │
00:02:42 #2768 [Verbose] > │ "num_complex::Complex::new(v569, v570)" │
00:02:42 #2769 [Verbose] > │ let v572 : │
00:02:42 #2770 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v571 │
00:02:42 #2771 [Verbose] > │ let v573 : │
00:02:42 #2772 [Verbose] > │ num_complex_Complex<float> = method39(v572) │
00:02:42 #2773 [Verbose] > │ let v574 : │
00:02:42 #2774 [Verbose] > │ num_complex_Complex<float> = method40(v324) │
00:02:42 #2775 [Verbose] > │ let v575 : string = │
00:02:42 #2776 [Verbose] > │ "num_complex::Complex::powc(v573, v574)" │
00:02:42 #2777 [Verbose] > │ let v576 : │
00:02:42 #2778 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v575 │
00:02:42 #2779 [Verbose] > │ let v577 : string = "v567 * │
00:02:42 #2780 [Verbose] > │ v576" │
00:02:42 #2781 [Verbose] > │ let v578 : │
00:02:42 #2782 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v577 │
00:02:42 #2783 [Verbose] > │ let v579 : string = "v578 * │
00:02:42 #2784 [Verbose] > │ v408" │
00:02:42 #2785 [Verbose] > │ let v580 : │
00:02:42 #2786 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v579 │
00:02:42 #2787 [Verbose] > │ let v581 : string = "v580 * │
00:02:42 #2788 [Verbose] > │ v392" │
00:02:42 #2789 [Verbose] > │ let v582 : │
00:02:42 #2790 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v581 │
00:02:42 #2791 [Verbose] > │ let v583 : string = "v582 * │
00:02:42 #2792 [Verbose] > │ v562" │
00:02:42 #2793 [Verbose] > │ let v584 : │
00:02:42 #2794 [Verbose] > │ num_complex_Complex<float> = Fable.Core.RustInterop.emitRustExpr () v583 │
00:02:42 #2795 [Verbose] > │ v584 │
00:02:42 #2796 [Verbose] > │ let v587 : float = method2() │
00:02:42 #2797 [Verbose] > │ let v588 : float = method3(v587) │
00:02:42 #2798 [Verbose] > │ let v589 : float = method4() │
00:02:42 #2799 [Verbose] > │ let v590 : string = │
00:02:42 #2800 [Verbose] > │ "num_complex::Complex::new(v588, v589)" │
00:02:42 #2801 [Verbose] > │ let v591 : num_complex_Complex<float> = │
00:02:42 #2802 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v590 │
00:02:42 #2803 [Verbose] > │ let v592 : float = method42() │
00:02:42 #2804 [Verbose] > │ let v593 : float = method3(v592) │
00:02:42 #2805 [Verbose] > │ let v594 : float = method4() │
00:02:42 #2806 [Verbose] > │ let v595 : string = │
00:02:42 #2807 [Verbose] > │ "num_complex::Complex::new(v593, v594)" │
00:02:42 #2808 [Verbose] > │ let v596 : num_complex_Complex<float> = │
00:02:42 #2809 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v595 │
00:02:42 #2810 [Verbose] > │ let v597 : num_complex_Complex<float> = │
00:02:42 #2811 [Verbose] > │ method39(v596) │
00:02:42 #2812 [Verbose] > │ let v598 : num_complex_Complex<float> = │
00:02:42 #2813 [Verbose] > │ method40(v217) │
00:02:42 #2814 [Verbose] > │ let v599 : string = │
00:02:42 #2815 [Verbose] > │ "num_complex::Complex::powc(v597, v598)" │
00:02:42 #2816 [Verbose] > │ let v600 : num_complex_Complex<float> = │
00:02:42 #2817 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v599 │
00:02:42 #2818 [Verbose] > │ let v601 : string = "v591 * v600" │
00:02:42 #2819 [Verbose] > │ let v602 : num_complex_Complex<float> = │
00:02:42 #2820 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v601 │
00:02:42 #2821 [Verbose] > │ let v603 : string = "v602 * v301" │
00:02:42 #2822 [Verbose] > │ let v604 : num_complex_Complex<float> = │
00:02:42 #2823 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v603 │
00:02:42 #2824 [Verbose] > │ let v605 : string = "v604 * v285" │
00:02:42 #2825 [Verbose] > │ let v606 : num_complex_Complex<float> = │
00:02:42 #2826 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v605 │
00:02:42 #2827 [Verbose] > │ let v607 : string = "v606 * v586" │
00:02:42 #2828 [Verbose] > │ let v608 : num_complex_Complex<float> = │
00:02:42 #2829 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v607 │
00:02:42 #2830 [Verbose] > │ v608 │
00:02:42 #2831 [Verbose] > │ let v611 : float = method2() │
00:02:42 #2832 [Verbose] > │ let v612 : float = method3(v611) │
00:02:42 #2833 [Verbose] > │ let v613 : float = method4() │
00:02:42 #2834 [Verbose] > │ let v614 : string = "num_complex::Complex::new(v612, │
00:02:42 #2835 [Verbose] > │ v613)" │
00:02:42 #2836 [Verbose] > │ let v615 : num_complex_Complex<float> = │
00:02:42 #2837 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v614 │
00:02:42 #2838 [Verbose] > │ let v616 : float = method42() │
00:02:42 #2839 [Verbose] > │ let v617 : float = method3(v616) │
00:02:42 #2840 [Verbose] > │ let v618 : float = method4() │
00:02:42 #2841 [Verbose] > │ let v619 : string = "num_complex::Complex::new(v617, │
00:02:42 #2842 [Verbose] > │ v618)" │
00:02:42 #2843 [Verbose] > │ let v620 : num_complex_Complex<float> = │
00:02:42 #2844 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v619 │
00:02:42 #2845 [Verbose] > │ let v621 : num_complex_Complex<float> = method39(v620) │
00:02:42 #2846 [Verbose] > │ let v622 : num_complex_Complex<float> = method40(v110) │
00:02:42 #2847 [Verbose] > │ let v623 : string = "num_complex::Complex::powc(v621, │
00:02:42 #2848 [Verbose] > │ v622)" │
00:02:42 #2849 [Verbose] > │ let v624 : num_complex_Complex<float> = │
00:02:42 #2850 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v623 │
00:02:42 #2851 [Verbose] > │ let v625 : string = "v615 * v624" │
00:02:42 #2852 [Verbose] > │ let v626 : num_complex_Complex<float> = │
00:02:42 #2853 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v625 │
00:02:42 #2854 [Verbose] > │ let v627 : string = "v626 * v194" │
00:02:42 #2855 [Verbose] > │ let v628 : num_complex_Complex<float> = │
00:02:42 #2856 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v627 │
00:02:42 #2857 [Verbose] > │ let v629 : string = "v628 * v178" │
00:02:42 #2858 [Verbose] > │ let v630 : num_complex_Complex<float> = │
00:02:42 #2859 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v629 │
00:02:42 #2860 [Verbose] > │ let v631 : string = "v630 * v610" │
00:02:42 #2861 [Verbose] > │ let v632 : num_complex_Complex<float> = │
00:02:42 #2862 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v631 │
00:02:42 #2863 [Verbose] > │ v632 │
00:02:42 #2864 [Verbose] > │ let v635 : float = method2() │
00:02:42 #2865 [Verbose] > │ let v636 : float = method3(v635) │
00:02:42 #2866 [Verbose] > │ let v637 : float = method4() │
00:02:42 #2867 [Verbose] > │ let v638 : string = "num_complex::Complex::new(v636, v637)" │
00:02:42 #2868 [Verbose] > │ let v639 : num_complex_Complex<float> = │
00:02:42 #2869 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v638 │
00:02:42 #2870 [Verbose] > │ let v640 : float = method42() │
00:02:42 #2871 [Verbose] > │ let v641 : float = method3(v640) │
00:02:42 #2872 [Verbose] > │ let v642 : float = method4() │
00:02:42 #2873 [Verbose] > │ let v643 : string = "num_complex::Complex::new(v641, v642)" │
00:02:42 #2874 [Verbose] > │ let v644 : num_complex_Complex<float> = │
00:02:42 #2875 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v643 │
00:02:42 #2876 [Verbose] > │ let v645 : num_complex_Complex<float> = method39(v644) │
00:02:42 #2877 [Verbose] > │ let v646 : num_complex_Complex<float> = method40(v2) │
00:02:42 #2878 [Verbose] > │ let v647 : string = "num_complex::Complex::powc(v645, v646)" │
00:02:42 #2879 [Verbose] > │ let v648 : num_complex_Complex<float> = │
00:02:42 #2880 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v647 │
00:02:42 #2881 [Verbose] > │ let v649 : string = "v639 * v648" │
00:02:42 #2882 [Verbose] > │ let v650 : num_complex_Complex<float> = │
00:02:42 #2883 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v649 │
00:02:42 #2884 [Verbose] > │ let v651 : string = "v650 * v87" │
00:02:42 #2885 [Verbose] > │ let v652 : num_complex_Complex<float> = │
00:02:42 #2886 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v651 │
00:02:42 #2887 [Verbose] > │ let v653 : string = "v652 * v71" │
00:02:42 #2888 [Verbose] > │ let v654 : num_complex_Complex<float> = │
00:02:42 #2889 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v653 │
00:02:42 #2890 [Verbose] > │ let v655 : string = "v654 * v634" │
00:02:42 #2891 [Verbose] > │ let v656 : num_complex_Complex<float> = │
00:02:42 #2892 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v655 │
00:02:42 #2893 [Verbose] > │ v656 │
00:02:42 #2894 [Verbose] > │ and method43 (v0 : bool) : bool = │
00:02:42 #2895 [Verbose] > │ v0 │
00:02:42 #2896 [Verbose] > │ and method1 (v0 : pyo3_Python) : unit = │
00:02:42 #2897 [Verbose] > │ let v1 : float = method2() │
00:02:42 #2898 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #2899 [Verbose] > │ let v3 : float = method4() │
00:02:42 #2900 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #2901 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #2902 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #2903 [Verbose] > │ let v6 : float = method5() │
00:02:42 #2904 [Verbose] > │ let v7 : float = method3(v6) │
00:02:42 #2905 [Verbose] > │ let v8 : float = method4() │
00:02:42 #2906 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:02:42 #2907 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:02:42 #2908 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:02:42 #2909 [Verbose] > │ let v11 : (struct (num_complex_Complex<float> * float) []) = [|struct │
00:02:42 #2910 [Verbose] > │ (v5, 1.6449340668482264); struct (v10, -0.08333333333333333)|] │
00:02:42 #2911 [Verbose] > │ let v12 : (struct (num_complex_Complex<float> * float) []) = │
00:02:42 #2912 [Verbose] > │ method6(v11) │
00:02:42 #2913 [Verbose] > │ let v13 : int32 = v12.Length │
00:02:42 #2914 [Verbose] > │ let v14 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #2915 [Verbose] > │ while method7(v13, v14) do │
00:02:42 #2916 [Verbose] > │ let v16 : int32 = v14.l0 │
00:02:42 #2917 [Verbose] > │ let struct (v17 : num_complex_Complex<float>, v18 : float) = v12.[ │
00:02:42 #2918 [Verbose] > │ int v16] │
00:02:42 #2919 [Verbose] > │ let v19 : string = $" s = mpmath.zeta(s)" │
00:02:42 #2920 [Verbose] > │ let v20 : num_complex_Complex<float> = method8(v17) │
00:02:42 #2921 [Verbose] > │ let v21 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #2922 [Verbose] > │ method9(v0, v19, v20) │
00:02:42 #2923 [Verbose] > │ let v22 : num_complex_Complex<float> = method33(v0, v17) │
00:02:42 #2924 [Verbose] > │ let v23 : string = "v21.ok()" │
00:02:42 #2925 [Verbose] > │ let v24 : num_complex_Complex<float> option = │
00:02:42 #2926 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v23 │
00:02:42 #2927 [Verbose] > │ let v25 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #2928 [Verbose] > │ let v26 : US0 = US0_0 │
00:02:42 #2929 [Verbose] > │ let v27 : US0 = v24 |> Option.map v25 |> Option.defaultValue v26 │
00:02:42 #2930 [Verbose] > │ let v28 : string = "f64::NAN" │
00:02:42 #2931 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:02:42 #2932 [Verbose] > │ let v30 : string = "f64::NAN" │
00:02:42 #2933 [Verbose] > │ let v31 : float = Fable.Core.RustInterop.emitRustExpr () v30 │
00:02:42 #2934 [Verbose] > │ let v32 : float = method31(v29) │
00:02:42 #2935 [Verbose] > │ let v33 : float = method3(v32) │
00:02:42 #2936 [Verbose] > │ let v34 : float = method32(v31) │
00:02:42 #2937 [Verbose] > │ let v35 : string = "num_complex::Complex::new(v33, v34)" │
00:02:42 #2938 [Verbose] > │ let v36 : num_complex_Complex<float> = │
00:02:42 #2939 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v35 │
00:02:42 #2940 [Verbose] > │ let v39 : num_complex_Complex<float> = │
00:02:42 #2941 [Verbose] > │ match v27 with │
00:02:42 #2942 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #2943 [Verbose] > │ v36 │
00:02:42 #2944 [Verbose] > │ | US0_1(v37) -> (* Some *) │
00:02:42 #2945 [Verbose] > │ v37 │
00:02:42 #2946 [Verbose] > │ let v40 : num_complex_Complex<float> = method14(v39) │
00:02:42 #2947 [Verbose] > │ let v41 : string = "v40.im" │
00:02:42 #2948 [Verbose] > │ let v42 : float = Fable.Core.RustInterop.emitRustExpr () v41 │
00:02:42 #2949 [Verbose] > │ let v43 : string = $"%A{v42}" │
00:02:42 #2950 [Verbose] > │ System.Console.WriteLine v43 │
00:02:42 #2951 [Verbose] > │ let v44 : bool = v42 = 0.0 │
00:02:42 #2952 [Verbose] > │ let v46 : bool = │
00:02:42 #2953 [Verbose] > │ if v44 then │
00:02:42 #2954 [Verbose] > │ true │
00:02:42 #2955 [Verbose] > │ else │
00:02:42 #2956 [Verbose] > │ method43(v44) │
00:02:42 #2957 [Verbose] > │ let v47 : string = $"__expect / actual: %A{v42} / expected: %A{0.0}" │
00:02:42 #2958 [Verbose] > │ let v48 : bool = v46 = false │
00:02:42 #2959 [Verbose] > │ if v48 then │
00:02:42 #2960 [Verbose] > │ failwith<unit> v47 │
00:02:42 #2961 [Verbose] > │ let v49 : num_complex_Complex<float> = method13(v39) │
00:02:42 #2962 [Verbose] > │ let v50 : string = "v49.re" │
00:02:42 #2963 [Verbose] > │ let v51 : float = Fable.Core.RustInterop.emitRustExpr () v50 │
00:02:42 #2964 [Verbose] > │ let v52 : float = v51 - v18 │
00:02:42 #2965 [Verbose] > │ let v53 : float = -v52 │
00:02:42 #2966 [Verbose] > │ let v54 : bool = v52 >= v53 │
00:02:42 #2967 [Verbose] > │ let v55 : float = │
00:02:42 #2968 [Verbose] > │ if v54 then │
00:02:42 #2969 [Verbose] > │ v52 │
00:02:42 #2970 [Verbose] > │ else │
00:02:42 #2971 [Verbose] > │ v53 │
00:02:42 #2972 [Verbose] > │ let v56 : string = $"%A{v55}" │
00:02:42 #2973 [Verbose] > │ System.Console.WriteLine v56 │
00:02:42 #2974 [Verbose] > │ let v57 : bool = v55 < 0.0001 │
00:02:42 #2975 [Verbose] > │ let v59 : bool = │
00:02:42 #2976 [Verbose] > │ if v57 then │
00:02:42 #2977 [Verbose] > │ true │
00:02:42 #2978 [Verbose] > │ else │
00:02:42 #2979 [Verbose] > │ method43(v57) │
00:02:42 #2980 [Verbose] > │ let v60 : string = $"__expect / actual: %A{v55} / expected: │
00:02:42 #2981 [Verbose] > │ %A{0.0001}" │
00:02:42 #2982 [Verbose] > │ let v61 : bool = v59 = false │
00:02:42 #2983 [Verbose] > │ if v61 then │
00:02:42 #2984 [Verbose] > │ failwith<unit> v60 │
00:02:42 #2985 [Verbose] > │ let v62 : int32 = v16 + 1 │
00:02:42 #2986 [Verbose] > │ v14.l0 <- v62 │
00:02:42 #2987 [Verbose] > │ () │
00:02:42 #2988 [Verbose] > │ () │
00:02:42 #2989 [Verbose] > │ and method44 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> = │
00:02:42 #2990 [Verbose] > │ v0 │
00:02:42 #2991 [Verbose] > │ and method45 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> = │
00:02:42 #2992 [Verbose] > │ v0 │
00:02:42 #2993 [Verbose] > │ and method0 () : unit = │
00:02:42 #2994 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #2995 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #2996 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #2997 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #2998 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #2999 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3000 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3001 [Verbose] > │ method1(v3) │
00:02:42 #3002 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3003 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3004 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3005 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3006 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3007 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3008 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3009 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3010 [Verbose] > │ () v8 │
00:02:42 #3011 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3012 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3013 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3014 [Verbose] > │ () │
00:02:42 #3015 [Verbose] > │ and method48 () : float = │
00:02:42 #3016 [Verbose] > │ -2.0 │
00:02:42 #3017 [Verbose] > │ and method47 (v0 : pyo3_Python) : unit = │
00:02:42 #3018 [Verbose] > │ let v1 : float = method2() │
00:02:42 #3019 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #3020 [Verbose] > │ let v3 : float = method48() │
00:02:42 #3021 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #3022 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #3023 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #3024 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3025 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:02:42 #3026 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3027 [Verbose] > │ method9(v0, v6, v7) │
00:02:42 #3028 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:02:42 #3029 [Verbose] > │ let v10 : string = "v8.ok()" │
00:02:42 #3030 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:02:42 #3031 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:02:42 #3032 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3033 [Verbose] > │ let v13 : US0 = US0_0 │
00:02:42 #3034 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:02:42 #3035 [Verbose] > │ let v15 : string = "f64::NAN" │
00:02:42 #3036 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:02:42 #3037 [Verbose] > │ let v17 : string = "f64::NAN" │
00:02:42 #3038 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:02:42 #3039 [Verbose] > │ let v19 : float = method31(v16) │
00:02:42 #3040 [Verbose] > │ let v20 : float = method3(v19) │
00:02:42 #3041 [Verbose] > │ let v21 : float = method32(v18) │
00:02:42 #3042 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:02:42 #3043 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:02:42 #3044 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:02:42 #3045 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:02:42 #3046 [Verbose] > │ match v14 with │
00:02:42 #3047 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3048 [Verbose] > │ v23 │
00:02:42 #3049 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:02:42 #3050 [Verbose] > │ v24 │
00:02:42 #3051 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v26) │
00:02:42 #3052 [Verbose] > │ let v28 : string = "v27.re" │
00:02:42 #3053 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:02:42 #3054 [Verbose] > │ let v30 : float = v29 - 0.8673 │
00:02:42 #3055 [Verbose] > │ let v31 : float = -v30 │
00:02:42 #3056 [Verbose] > │ let v32 : bool = v30 >= v31 │
00:02:42 #3057 [Verbose] > │ let v33 : float = │
00:02:42 #3058 [Verbose] > │ if v32 then │
00:02:42 #3059 [Verbose] > │ v30 │
00:02:42 #3060 [Verbose] > │ else │
00:02:42 #3061 [Verbose] > │ v31 │
00:02:42 #3062 [Verbose] > │ let v34 : string = $"%A{v33}" │
00:02:42 #3063 [Verbose] > │ System.Console.WriteLine v34 │
00:02:42 #3064 [Verbose] > │ let v35 : bool = v33 < 0.001 │
00:02:42 #3065 [Verbose] > │ let v37 : bool = │
00:02:42 #3066 [Verbose] > │ if v35 then │
00:02:42 #3067 [Verbose] > │ true │
00:02:42 #3068 [Verbose] > │ else │
00:02:42 #3069 [Verbose] > │ method43(v35) │
00:02:42 #3070 [Verbose] > │ let v38 : string = $"__expect / actual: %A{v33} / expected: %A{0.001}" │
00:02:42 #3071 [Verbose] > │ let v39 : bool = v37 = false │
00:02:42 #3072 [Verbose] > │ if v39 then │
00:02:42 #3073 [Verbose] > │ failwith<unit> v38 │
00:02:42 #3074 [Verbose] > │ let v40 : num_complex_Complex<float> = method14(v26) │
00:02:42 #3075 [Verbose] > │ let v41 : string = "v40.im" │
00:02:42 #3076 [Verbose] > │ let v42 : float = Fable.Core.RustInterop.emitRustExpr () v41 │
00:02:42 #3077 [Verbose] > │ let v43 : float = v42 - 0.275 │
00:02:42 #3078 [Verbose] > │ let v44 : float = -v43 │
00:02:42 #3079 [Verbose] > │ let v45 : bool = v43 >= v44 │
00:02:42 #3080 [Verbose] > │ let v46 : float = │
00:02:42 #3081 [Verbose] > │ if v45 then │
00:02:42 #3082 [Verbose] > │ v43 │
00:02:42 #3083 [Verbose] > │ else │
00:02:42 #3084 [Verbose] > │ v44 │
00:02:42 #3085 [Verbose] > │ let v47 : string = $"%A{v46}" │
00:02:42 #3086 [Verbose] > │ System.Console.WriteLine v47 │
00:02:42 #3087 [Verbose] > │ let v48 : bool = v46 < 0.001 │
00:02:42 #3088 [Verbose] > │ let v50 : bool = │
00:02:42 #3089 [Verbose] > │ if v48 then │
00:02:42 #3090 [Verbose] > │ true │
00:02:42 #3091 [Verbose] > │ else │
00:02:42 #3092 [Verbose] > │ method43(v48) │
00:02:42 #3093 [Verbose] > │ let v51 : string = $"__expect / actual: %A{v46} / expected: %A{0.001}" │
00:02:42 #3094 [Verbose] > │ let v52 : bool = v50 = false │
00:02:42 #3095 [Verbose] > │ if v52 then │
00:02:42 #3096 [Verbose] > │ failwith<unit> v51 │
00:02:42 #3097 [Verbose] > │ and method46 () : unit = │
00:02:42 #3098 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3099 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3100 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3101 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3102 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3103 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3104 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3105 [Verbose] > │ method47(v3) │
00:02:42 #3106 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3107 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3108 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3109 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3110 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3111 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3112 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3113 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3114 [Verbose] > │ () v8 │
00:02:42 #3115 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3116 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3117 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3118 [Verbose] > │ () │
00:02:42 #3119 [Verbose] > │ and method51 () : UH0 = │
00:02:42 #3120 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:02:42 #3121 [Verbose] > │ let v1 : UH0 = UH0_0(-40.0, v0) │
00:02:42 #3122 [Verbose] > │ let v2 : UH0 = UH0_0(-38.0, v1) │
00:02:42 #3123 [Verbose] > │ let v3 : UH0 = UH0_0(-36.0, v2) │
00:02:42 #3124 [Verbose] > │ let v4 : UH0 = UH0_0(-34.0, v3) │
00:02:42 #3125 [Verbose] > │ let v5 : UH0 = UH0_0(-32.0, v4) │
00:02:42 #3126 [Verbose] > │ let v6 : UH0 = UH0_0(-30.0, v5) │
00:02:42 #3127 [Verbose] > │ let v7 : UH0 = UH0_0(-28.0, v6) │
00:02:42 #3128 [Verbose] > │ let v8 : UH0 = UH0_0(-26.0, v7) │
00:02:42 #3129 [Verbose] > │ let v9 : UH0 = UH0_0(-24.0, v8) │
00:02:42 #3130 [Verbose] > │ let v10 : UH0 = UH0_0(-22.0, v9) │
00:02:42 #3131 [Verbose] > │ let v11 : UH0 = UH0_0(-20.0, v10) │
00:02:42 #3132 [Verbose] > │ let v12 : UH0 = UH0_0(-18.0, v11) │
00:02:42 #3133 [Verbose] > │ let v13 : UH0 = UH0_0(-16.0, v12) │
00:02:42 #3134 [Verbose] > │ let v14 : UH0 = UH0_0(-14.0, v13) │
00:02:42 #3135 [Verbose] > │ let v15 : UH0 = UH0_0(-12.0, v14) │
00:02:42 #3136 [Verbose] > │ let v16 : UH0 = UH0_0(-10.0, v15) │
00:02:42 #3137 [Verbose] > │ let v17 : UH0 = UH0_0(-8.0, v16) │
00:02:42 #3138 [Verbose] > │ let v18 : UH0 = UH0_0(-6.0, v17) │
00:02:42 #3139 [Verbose] > │ let v19 : UH0 = UH0_0(-4.0, v18) │
00:02:42 #3140 [Verbose] > │ UH0_0(-2.0, v19) │
00:02:42 #3141 [Verbose] > │ and method52 (v0 : pyo3_Python, v1 : UH0) : unit = │
00:02:42 #3142 [Verbose] > │ match v1 with │
00:02:42 #3143 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:02:42 #3144 [Verbose] > │ let v4 : float = method31(v2) │
00:02:42 #3145 [Verbose] > │ let v5 : float = method3(v4) │
00:02:42 #3146 [Verbose] > │ let v6 : float = method4() │
00:02:42 #3147 [Verbose] > │ let v7 : string = "num_complex::Complex::new(v5, v6)" │
00:02:42 #3148 [Verbose] > │ let v8 : num_complex_Complex<float> = │
00:02:42 #3149 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3150 [Verbose] > │ let v9 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3151 [Verbose] > │ let v10 : num_complex_Complex<float> = method8(v8) │
00:02:42 #3152 [Verbose] > │ let v11 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3153 [Verbose] > │ method9(v0, v9, v10) │
00:02:42 #3154 [Verbose] > │ let v12 : num_complex_Complex<float> = method33(v0, v8) │
00:02:42 #3155 [Verbose] > │ let v13 : string = "v11.ok()" │
00:02:42 #3156 [Verbose] > │ let v14 : num_complex_Complex<float> option = │
00:02:42 #3157 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13 │
00:02:42 #3158 [Verbose] > │ let v15 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3159 [Verbose] > │ let v16 : US0 = US0_0 │
00:02:42 #3160 [Verbose] > │ let v17 : US0 = v14 |> Option.map v15 |> Option.defaultValue v16 │
00:02:42 #3161 [Verbose] > │ let v18 : string = "f64::NAN" │
00:02:42 #3162 [Verbose] > │ let v19 : float = Fable.Core.RustInterop.emitRustExpr () v18 │
00:02:42 #3163 [Verbose] > │ let v20 : string = "f64::NAN" │
00:02:42 #3164 [Verbose] > │ let v21 : float = Fable.Core.RustInterop.emitRustExpr () v20 │
00:02:42 #3165 [Verbose] > │ let v22 : float = method31(v19) │
00:02:42 #3166 [Verbose] > │ let v23 : float = method3(v22) │
00:02:42 #3167 [Verbose] > │ let v24 : float = method32(v21) │
00:02:42 #3168 [Verbose] > │ let v25 : string = "num_complex::Complex::new(v23, v24)" │
00:02:42 #3169 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:02:42 #3170 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v25 │
00:02:42 #3171 [Verbose] > │ let v29 : num_complex_Complex<float> = │
00:02:42 #3172 [Verbose] > │ match v17 with │
00:02:42 #3173 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3174 [Verbose] > │ v26 │
00:02:42 #3175 [Verbose] > │ | US0_1(v27) -> (* Some *) │
00:02:42 #3176 [Verbose] > │ v27 │
00:02:42 #3177 [Verbose] > │ let v30 : num_complex_Complex<float> = method13(v29) │
00:02:42 #3178 [Verbose] > │ let v31 : string = "v30.re" │
00:02:42 #3179 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:02:42 #3180 [Verbose] > │ let v33 : string = $"%A{v32}" │
00:02:42 #3181 [Verbose] > │ System.Console.WriteLine v33 │
00:02:42 #3182 [Verbose] > │ let v34 : bool = v32 = 0.0 │
00:02:42 #3183 [Verbose] > │ let v36 : bool = │
00:02:42 #3184 [Verbose] > │ if v34 then │
00:02:42 #3185 [Verbose] > │ true │
00:02:42 #3186 [Verbose] > │ else │
00:02:42 #3187 [Verbose] > │ method43(v34) │
00:02:42 #3188 [Verbose] > │ let v37 : string = $"__expect / actual: %A{v32} / expected: %A{0.0}" │
00:02:42 #3189 [Verbose] > │ let v38 : bool = v36 = false │
00:02:42 #3190 [Verbose] > │ if v38 then │
00:02:42 #3191 [Verbose] > │ failwith<unit> v37 │
00:02:42 #3192 [Verbose] > │ let v39 : num_complex_Complex<float> = method14(v29) │
00:02:42 #3193 [Verbose] > │ let v40 : string = "v39.im" │
00:02:42 #3194 [Verbose] > │ let v41 : float = Fable.Core.RustInterop.emitRustExpr () v40 │
00:02:42 #3195 [Verbose] > │ let v42 : string = $"%A{v41}" │
00:02:42 #3196 [Verbose] > │ System.Console.WriteLine v42 │
00:02:42 #3197 [Verbose] > │ let v43 : bool = v41 = 0.0 │
00:02:42 #3198 [Verbose] > │ let v45 : bool = │
00:02:42 #3199 [Verbose] > │ if v43 then │
00:02:42 #3200 [Verbose] > │ true │
00:02:42 #3201 [Verbose] > │ else │
00:02:42 #3202 [Verbose] > │ method43(v43) │
00:02:42 #3203 [Verbose] > │ let v46 : string = $"__expect / actual: %A{v41} / expected: %A{0.0}" │
00:02:42 #3204 [Verbose] > │ let v47 : bool = v45 = false │
00:02:42 #3205 [Verbose] > │ if v47 then │
00:02:42 #3206 [Verbose] > │ failwith<unit> v46 │
00:02:42 #3207 [Verbose] > │ method52(v0, v3) │
00:02:42 #3208 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:02:42 #3209 [Verbose] > │ () │
00:02:42 #3210 [Verbose] > │ and method50 (v0 : pyo3_Python) : unit = │
00:02:42 #3211 [Verbose] > │ let v1 : UH0 = method51() │
00:02:42 #3212 [Verbose] > │ method52(v0, v1) │
00:02:42 #3213 [Verbose] > │ and method49 () : unit = │
00:02:42 #3214 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3215 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3216 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3217 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3218 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3219 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3220 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3221 [Verbose] > │ method50(v3) │
00:02:42 #3222 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3223 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3224 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3225 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3226 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3227 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3228 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3229 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3230 [Verbose] > │ () v8 │
00:02:42 #3231 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3232 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3233 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3234 [Verbose] > │ () │
00:02:42 #3235 [Verbose] > │ and method55 () : float = │
00:02:42 #3236 [Verbose] > │ 0.5 │
00:02:42 #3237 [Verbose] > │ and method56 () : float = │
00:02:42 #3238 [Verbose] > │ 14.134725 │
00:02:42 #3239 [Verbose] > │ and method57 () : float = │
00:02:42 #3240 [Verbose] > │ 21.02204 │
00:02:42 #3241 [Verbose] > │ and method58 () : float = │
00:02:42 #3242 [Verbose] > │ 25.010857 │
00:02:42 #3243 [Verbose] > │ and method59 () : float = │
00:02:42 #3244 [Verbose] > │ 30.424876 │
00:02:42 #3245 [Verbose] > │ and method60 () : float = │
00:02:42 #3246 [Verbose] > │ 32.935062 │
00:02:42 #3247 [Verbose] > │ and method61 () : float = │
00:02:42 #3248 [Verbose] > │ 37.586178 │
00:02:42 #3249 [Verbose] > │ and method62 (v0 : (num_complex_Complex<float> [])) : │
00:02:42 #3250 [Verbose] > │ (num_complex_Complex<float> []) = │
00:02:42 #3251 [Verbose] > │ v0 │
00:02:42 #3252 [Verbose] > │ and method54 (v0 : pyo3_Python) : unit = │
00:02:42 #3253 [Verbose] > │ let v1 : float = method55() │
00:02:42 #3254 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #3255 [Verbose] > │ let v3 : float = method56() │
00:02:42 #3256 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #3257 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #3258 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #3259 [Verbose] > │ let v6 : float = method55() │
00:02:42 #3260 [Verbose] > │ let v7 : float = method3(v6) │
00:02:42 #3261 [Verbose] > │ let v8 : float = method57() │
00:02:42 #3262 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:02:42 #3263 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:02:42 #3264 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:02:42 #3265 [Verbose] > │ let v11 : float = method55() │
00:02:42 #3266 [Verbose] > │ let v12 : float = method3(v11) │
00:02:42 #3267 [Verbose] > │ let v13 : float = method58() │
00:02:42 #3268 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:02:42 #3269 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:02:42 #3270 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:02:42 #3271 [Verbose] > │ let v16 : float = method55() │
00:02:42 #3272 [Verbose] > │ let v17 : float = method3(v16) │
00:02:42 #3273 [Verbose] > │ let v18 : float = method59() │
00:02:42 #3274 [Verbose] > │ let v19 : string = "num_complex::Complex::new(v17, v18)" │
00:02:42 #3275 [Verbose] > │ let v20 : num_complex_Complex<float> = │
00:02:42 #3276 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19 │
00:02:42 #3277 [Verbose] > │ let v21 : float = method55() │
00:02:42 #3278 [Verbose] > │ let v22 : float = method3(v21) │
00:02:42 #3279 [Verbose] > │ let v23 : float = method60() │
00:02:42 #3280 [Verbose] > │ let v24 : string = "num_complex::Complex::new(v22, v23)" │
00:02:42 #3281 [Verbose] > │ let v25 : num_complex_Complex<float> = │
00:02:42 #3282 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v24 │
00:02:42 #3283 [Verbose] > │ let v26 : float = method55() │
00:02:42 #3284 [Verbose] > │ let v27 : float = method3(v26) │
00:02:42 #3285 [Verbose] > │ let v28 : float = method61() │
00:02:42 #3286 [Verbose] > │ let v29 : string = "num_complex::Complex::new(v27, v28)" │
00:02:42 #3287 [Verbose] > │ let v30 : num_complex_Complex<float> = │
00:02:42 #3288 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v29 │
00:02:42 #3289 [Verbose] > │ let v31 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20; v25; │
00:02:42 #3290 [Verbose] > │ v30|] │
00:02:42 #3291 [Verbose] > │ let v32 : (num_complex_Complex<float> []) = method62(v31) │
00:02:42 #3292 [Verbose] > │ let v33 : int32 = v32.Length │
00:02:42 #3293 [Verbose] > │ let v34 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #3294 [Verbose] > │ while method7(v33, v34) do │
00:02:42 #3295 [Verbose] > │ let v36 : int32 = v34.l0 │
00:02:42 #3296 [Verbose] > │ let v37 : num_complex_Complex<float> = v32.[int v36] │
00:02:42 #3297 [Verbose] > │ let v38 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3298 [Verbose] > │ let v39 : num_complex_Complex<float> = method8(v37) │
00:02:42 #3299 [Verbose] > │ let v40 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3300 [Verbose] > │ method9(v0, v38, v39) │
00:02:42 #3301 [Verbose] > │ let v41 : num_complex_Complex<float> = method33(v0, v37) │
00:02:42 #3302 [Verbose] > │ let v42 : string = "v40.ok()" │
00:02:42 #3303 [Verbose] > │ let v43 : num_complex_Complex<float> option = │
00:02:42 #3304 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:02:42 #3305 [Verbose] > │ let v44 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3306 [Verbose] > │ let v45 : US0 = US0_0 │
00:02:42 #3307 [Verbose] > │ let v46 : US0 = v43 |> Option.map v44 |> Option.defaultValue v45 │
00:02:42 #3308 [Verbose] > │ let v47 : string = "f64::NAN" │
00:02:42 #3309 [Verbose] > │ let v48 : float = Fable.Core.RustInterop.emitRustExpr () v47 │
00:02:42 #3310 [Verbose] > │ let v49 : string = "f64::NAN" │
00:02:42 #3311 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:02:42 #3312 [Verbose] > │ let v51 : float = method31(v48) │
00:02:42 #3313 [Verbose] > │ let v52 : float = method3(v51) │
00:02:42 #3314 [Verbose] > │ let v53 : float = method32(v50) │
00:02:42 #3315 [Verbose] > │ let v54 : string = "num_complex::Complex::new(v52, v53)" │
00:02:42 #3316 [Verbose] > │ let v55 : num_complex_Complex<float> = │
00:02:42 #3317 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:02:42 #3318 [Verbose] > │ let v58 : num_complex_Complex<float> = │
00:02:42 #3319 [Verbose] > │ match v46 with │
00:02:42 #3320 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3321 [Verbose] > │ v55 │
00:02:42 #3322 [Verbose] > │ | US0_1(v56) -> (* Some *) │
00:02:42 #3323 [Verbose] > │ v56 │
00:02:42 #3324 [Verbose] > │ let v59 : num_complex_Complex<float> = method13(v58) │
00:02:42 #3325 [Verbose] > │ let v60 : string = "v59.re" │
00:02:42 #3326 [Verbose] > │ let v61 : float = Fable.Core.RustInterop.emitRustExpr () v60 │
00:02:42 #3327 [Verbose] > │ let v62 : float = -v61 │
00:02:42 #3328 [Verbose] > │ let v63 : bool = v61 >= v62 │
00:02:42 #3329 [Verbose] > │ let v64 : float = │
00:02:42 #3330 [Verbose] > │ if v63 then │
00:02:42 #3331 [Verbose] > │ v61 │
00:02:42 #3332 [Verbose] > │ else │
00:02:42 #3333 [Verbose] > │ v62 │
00:02:42 #3334 [Verbose] > │ let v65 : string = $"%A{v64}" │
00:02:42 #3335 [Verbose] > │ System.Console.WriteLine v65 │
00:02:42 #3336 [Verbose] > │ let v66 : bool = v64 < 0.0001 │
00:02:42 #3337 [Verbose] > │ let v68 : bool = │
00:02:42 #3338 [Verbose] > │ if v66 then │
00:02:42 #3339 [Verbose] > │ true │
00:02:42 #3340 [Verbose] > │ else │
00:02:42 #3341 [Verbose] > │ method43(v66) │
00:02:42 #3342 [Verbose] > │ let v69 : string = $"__expect / actual: %A{v64} / expected: │
00:02:42 #3343 [Verbose] > │ %A{0.0001}" │
00:02:42 #3344 [Verbose] > │ let v70 : bool = v68 = false │
00:02:42 #3345 [Verbose] > │ if v70 then │
00:02:42 #3346 [Verbose] > │ failwith<unit> v69 │
00:02:42 #3347 [Verbose] > │ let v71 : num_complex_Complex<float> = method14(v58) │
00:02:42 #3348 [Verbose] > │ let v72 : string = "v71.im" │
00:02:42 #3349 [Verbose] > │ let v73 : float = Fable.Core.RustInterop.emitRustExpr () v72 │
00:02:42 #3350 [Verbose] > │ let v74 : float = -v73 │
00:02:42 #3351 [Verbose] > │ let v75 : bool = v73 >= v74 │
00:02:42 #3352 [Verbose] > │ let v76 : float = │
00:02:42 #3353 [Verbose] > │ if v75 then │
00:02:42 #3354 [Verbose] > │ v73 │
00:02:42 #3355 [Verbose] > │ else │
00:02:42 #3356 [Verbose] > │ v74 │
00:02:42 #3357 [Verbose] > │ let v77 : string = $"%A{v76}" │
00:02:42 #3358 [Verbose] > │ System.Console.WriteLine v77 │
00:02:42 #3359 [Verbose] > │ let v78 : bool = v76 < 0.0001 │
00:02:42 #3360 [Verbose] > │ let v80 : bool = │
00:02:42 #3361 [Verbose] > │ if v78 then │
00:02:42 #3362 [Verbose] > │ true │
00:02:42 #3363 [Verbose] > │ else │
00:02:42 #3364 [Verbose] > │ method43(v78) │
00:02:42 #3365 [Verbose] > │ let v81 : string = $"__expect / actual: %A{v76} / expected: │
00:02:42 #3366 [Verbose] > │ %A{0.0001}" │
00:02:42 #3367 [Verbose] > │ let v82 : bool = v80 = false │
00:02:42 #3368 [Verbose] > │ if v82 then │
00:02:42 #3369 [Verbose] > │ failwith<unit> v81 │
00:02:42 #3370 [Verbose] > │ let v83 : int32 = v36 + 1 │
00:02:42 #3371 [Verbose] > │ v34.l0 <- v83 │
00:02:42 #3372 [Verbose] > │ () │
00:02:42 #3373 [Verbose] > │ () │
00:02:42 #3374 [Verbose] > │ and method53 () : unit = │
00:02:42 #3375 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3376 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3377 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3378 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3379 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3380 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3381 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3382 [Verbose] > │ method54(v3) │
00:02:42 #3383 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3384 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3385 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3386 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3387 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3388 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3389 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3390 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3391 [Verbose] > │ () v8 │
00:02:42 #3392 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3393 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3394 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3395 [Verbose] > │ () │
00:02:42 #3396 [Verbose] > │ and method65 (v0 : (float [])) : (float []) = │
00:02:42 #3397 [Verbose] > │ v0 │
00:02:42 #3398 [Verbose] > │ and method64 (v0 : pyo3_Python) : unit = │
00:02:42 #3399 [Verbose] > │ let v1 : (float []) = [|2.0; 3.0; 4.0; 5.0; 10.0; 20.0; 50.0|] │
00:02:42 #3400 [Verbose] > │ let v2 : (float []) = method65(v1) │
00:02:42 #3401 [Verbose] > │ let v3 : int32 = v2.Length │
00:02:42 #3402 [Verbose] > │ let v4 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #3403 [Verbose] > │ while method7(v3, v4) do │
00:02:42 #3404 [Verbose] > │ let v6 : int32 = v4.l0 │
00:02:42 #3405 [Verbose] > │ let v7 : float = v2.[int v6] │
00:02:42 #3406 [Verbose] > │ let v8 : float = method31(v7) │
00:02:42 #3407 [Verbose] > │ let v9 : float = method3(v8) │
00:02:42 #3408 [Verbose] > │ let v10 : float = method4() │
00:02:42 #3409 [Verbose] > │ let v11 : string = "num_complex::Complex::new(v9, v10)" │
00:02:42 #3410 [Verbose] > │ let v12 : num_complex_Complex<float> = │
00:02:42 #3411 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3412 [Verbose] > │ let v13 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3413 [Verbose] > │ let v14 : num_complex_Complex<float> = method8(v12) │
00:02:42 #3414 [Verbose] > │ let v15 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3415 [Verbose] > │ method9(v0, v13, v14) │
00:02:42 #3416 [Verbose] > │ let v16 : num_complex_Complex<float> = method33(v0, v12) │
00:02:42 #3417 [Verbose] > │ let v17 : string = "v15.ok()" │
00:02:42 #3418 [Verbose] > │ let v18 : num_complex_Complex<float> option = │
00:02:42 #3419 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v17 │
00:02:42 #3420 [Verbose] > │ let v19 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3421 [Verbose] > │ let v20 : US0 = US0_0 │
00:02:42 #3422 [Verbose] > │ let v21 : US0 = v18 |> Option.map v19 |> Option.defaultValue v20 │
00:02:42 #3423 [Verbose] > │ let v22 : string = "f64::NAN" │
00:02:42 #3424 [Verbose] > │ let v23 : float = Fable.Core.RustInterop.emitRustExpr () v22 │
00:02:42 #3425 [Verbose] > │ let v24 : string = "f64::NAN" │
00:02:42 #3426 [Verbose] > │ let v25 : float = Fable.Core.RustInterop.emitRustExpr () v24 │
00:02:42 #3427 [Verbose] > │ let v26 : float = method31(v23) │
00:02:42 #3428 [Verbose] > │ let v27 : float = method3(v26) │
00:02:42 #3429 [Verbose] > │ let v28 : float = method32(v25) │
00:02:42 #3430 [Verbose] > │ let v29 : string = "num_complex::Complex::new(v27, v28)" │
00:02:42 #3431 [Verbose] > │ let v30 : num_complex_Complex<float> = │
00:02:42 #3432 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v29 │
00:02:42 #3433 [Verbose] > │ let v33 : num_complex_Complex<float> = │
00:02:42 #3434 [Verbose] > │ match v21 with │
00:02:42 #3435 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3436 [Verbose] > │ v30 │
00:02:42 #3437 [Verbose] > │ | US0_1(v31) -> (* Some *) │
00:02:42 #3438 [Verbose] > │ v31 │
00:02:42 #3439 [Verbose] > │ let v34 : num_complex_Complex<float> = method13(v33) │
00:02:42 #3440 [Verbose] > │ let v35 : string = "v34.re" │
00:02:42 #3441 [Verbose] > │ let v36 : float = Fable.Core.RustInterop.emitRustExpr () v35 │
00:02:42 #3442 [Verbose] > │ let v37 : string = $"%A{v36}" │
00:02:42 #3443 [Verbose] > │ System.Console.WriteLine v37 │
00:02:42 #3444 [Verbose] > │ let v38 : bool = v36 > 0.0 │
00:02:42 #3445 [Verbose] > │ let v40 : bool = │
00:02:42 #3446 [Verbose] > │ if v38 then │
00:02:42 #3447 [Verbose] > │ true │
00:02:42 #3448 [Verbose] > │ else │
00:02:42 #3449 [Verbose] > │ method43(v38) │
00:02:42 #3450 [Verbose] > │ let v41 : string = $"__expect / actual: %A{v36} / expected: %A{0.0}" │
00:02:42 #3451 [Verbose] > │ let v42 : bool = v40 = false │
00:02:42 #3452 [Verbose] > │ if v42 then │
00:02:42 #3453 [Verbose] > │ failwith<unit> v41 │
00:02:42 #3454 [Verbose] > │ let v43 : num_complex_Complex<float> = method14(v33) │
00:02:42 #3455 [Verbose] > │ let v44 : string = "v43.im" │
00:02:42 #3456 [Verbose] > │ let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44 │
00:02:42 #3457 [Verbose] > │ let v46 : string = $"%A{v45}" │
00:02:42 #3458 [Verbose] > │ System.Console.WriteLine v46 │
00:02:42 #3459 [Verbose] > │ let v47 : bool = v45 = 0.0 │
00:02:42 #3460 [Verbose] > │ let v49 : bool = │
00:02:42 #3461 [Verbose] > │ if v47 then │
00:02:42 #3462 [Verbose] > │ true │
00:02:42 #3463 [Verbose] > │ else │
00:02:42 #3464 [Verbose] > │ method43(v47) │
00:02:42 #3465 [Verbose] > │ let v50 : string = $"__expect / actual: %A{v45} / expected: %A{0.0}" │
00:02:42 #3466 [Verbose] > │ let v51 : bool = v49 = false │
00:02:42 #3467 [Verbose] > │ if v51 then │
00:02:42 #3468 [Verbose] > │ failwith<unit> v50 │
00:02:42 #3469 [Verbose] > │ let v52 : int32 = v6 + 1 │
00:02:42 #3470 [Verbose] > │ v4.l0 <- v52 │
00:02:42 #3471 [Verbose] > │ () │
00:02:42 #3472 [Verbose] > │ () │
00:02:42 #3473 [Verbose] > │ and method63 () : unit = │
00:02:42 #3474 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3475 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3476 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3477 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3478 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3479 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3480 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3481 [Verbose] > │ method64(v3) │
00:02:42 #3482 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3483 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3484 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3485 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3486 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3487 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3488 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3489 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3490 [Verbose] > │ () v8 │
00:02:42 #3491 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3492 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3493 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3494 [Verbose] > │ () │
00:02:42 #3495 [Verbose] > │ and method67 (v0 : pyo3_Python) : unit = │
00:02:42 #3496 [Verbose] > │ let v1 : float = method38() │
00:02:42 #3497 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #3498 [Verbose] > │ let v3 : float = method4() │
00:02:42 #3499 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #3500 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #3501 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #3502 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3503 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:02:42 #3504 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3505 [Verbose] > │ method9(v0, v6, v7) │
00:02:42 #3506 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:02:42 #3507 [Verbose] > │ let v10 : string = "v8.ok()" │
00:02:42 #3508 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:02:42 #3509 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:02:42 #3510 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3511 [Verbose] > │ let v13 : US0 = US0_0 │
00:02:42 #3512 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:02:42 #3513 [Verbose] > │ let v15 : string = "f64::NAN" │
00:02:42 #3514 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:02:42 #3515 [Verbose] > │ let v17 : string = "f64::NAN" │
00:02:42 #3516 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:02:42 #3517 [Verbose] > │ let v19 : float = method31(v16) │
00:02:42 #3518 [Verbose] > │ let v20 : float = method3(v19) │
00:02:42 #3519 [Verbose] > │ let v21 : float = method32(v18) │
00:02:42 #3520 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:02:42 #3521 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:02:42 #3522 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:02:42 #3523 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:02:42 #3524 [Verbose] > │ match v14 with │
00:02:42 #3525 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3526 [Verbose] > │ v23 │
00:02:42 #3527 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:02:42 #3528 [Verbose] > │ v24 │
00:02:42 #3529 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v26) │
00:02:42 #3530 [Verbose] > │ let v28 : string = "v27.re" │
00:02:42 #3531 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:02:42 #3532 [Verbose] > │ let v30 : string = $"%A{v29}" │
00:02:42 #3533 [Verbose] > │ System.Console.WriteLine v30 │
00:02:42 #3534 [Verbose] > │ let v31 : bool = v29 = infinity │
00:02:42 #3535 [Verbose] > │ let v33 : bool = │
00:02:42 #3536 [Verbose] > │ if v31 then │
00:02:42 #3537 [Verbose] > │ true │
00:02:42 #3538 [Verbose] > │ else │
00:02:42 #3539 [Verbose] > │ method43(v31) │
00:02:42 #3540 [Verbose] > │ let v34 : string = $"__expect / actual: %A{v29} / expected: │
00:02:42 #3541 [Verbose] > │ %A{infinity}" │
00:02:42 #3542 [Verbose] > │ let v35 : bool = v33 = false │
00:02:42 #3543 [Verbose] > │ if v35 then │
00:02:42 #3544 [Verbose] > │ failwith<unit> v34 │
00:02:42 #3545 [Verbose] > │ let v36 : num_complex_Complex<float> = method14(v26) │
00:02:42 #3546 [Verbose] > │ let v37 : string = "v36.im" │
00:02:42 #3547 [Verbose] > │ let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37 │
00:02:42 #3548 [Verbose] > │ let v39 : string = $"%A{v38}" │
00:02:42 #3549 [Verbose] > │ System.Console.WriteLine v39 │
00:02:42 #3550 [Verbose] > │ let v40 : bool = v38 = 0.0 │
00:02:42 #3551 [Verbose] > │ let v42 : bool = │
00:02:42 #3552 [Verbose] > │ if v40 then │
00:02:42 #3553 [Verbose] > │ true │
00:02:42 #3554 [Verbose] > │ else │
00:02:42 #3555 [Verbose] > │ method43(v40) │
00:02:42 #3556 [Verbose] > │ let v43 : string = $"__expect / actual: %A{v38} / expected: %A{0.0}" │
00:02:42 #3557 [Verbose] > │ let v44 : bool = v42 = false │
00:02:42 #3558 [Verbose] > │ if v44 then │
00:02:42 #3559 [Verbose] > │ failwith<unit> v43 │
00:02:42 #3560 [Verbose] > │ and method66 () : unit = │
00:02:42 #3561 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3562 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3563 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3564 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3565 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3566 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3567 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3568 [Verbose] > │ method67(v3) │
00:02:42 #3569 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3570 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3571 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3572 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3573 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3574 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3575 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3576 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3577 [Verbose] > │ () v8 │
00:02:42 #3578 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3579 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3580 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3581 [Verbose] > │ () │
00:02:42 #3582 [Verbose] > │ and method70 () : float = │
00:02:42 #3583 [Verbose] > │ 10.0 │
00:02:42 #3584 [Verbose] > │ and method69 (v0 : pyo3_Python) : unit = │
00:02:42 #3585 [Verbose] > │ let v1 : float = method2() │
00:02:42 #3586 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #3587 [Verbose] > │ let v3 : float = method70() │
00:02:42 #3588 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #3589 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #3590 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #3591 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3592 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:02:42 #3593 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3594 [Verbose] > │ method9(v0, v6, v7) │
00:02:42 #3595 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:02:42 #3596 [Verbose] > │ let v10 : string = "v8.ok()" │
00:02:42 #3597 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:02:42 #3598 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:02:42 #3599 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3600 [Verbose] > │ let v13 : US0 = US0_0 │
00:02:42 #3601 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:02:42 #3602 [Verbose] > │ let v15 : string = "f64::NAN" │
00:02:42 #3603 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:02:42 #3604 [Verbose] > │ let v17 : string = "f64::NAN" │
00:02:42 #3605 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:02:42 #3606 [Verbose] > │ let v19 : float = method31(v16) │
00:02:42 #3607 [Verbose] > │ let v20 : float = method3(v19) │
00:02:42 #3608 [Verbose] > │ let v21 : float = method32(v18) │
00:02:42 #3609 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:02:42 #3610 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:02:42 #3611 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:02:42 #3612 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:02:42 #3613 [Verbose] > │ match v14 with │
00:02:42 #3614 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3615 [Verbose] > │ v23 │
00:02:42 #3616 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:02:42 #3617 [Verbose] > │ v24 │
00:02:42 #3618 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v5) │
00:02:42 #3619 [Verbose] > │ let v28 : string = "v27.re" │
00:02:42 #3620 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:02:42 #3621 [Verbose] > │ let v30 : num_complex_Complex<float> = method14(v5) │
00:02:42 #3622 [Verbose] > │ let v31 : string = "v30.im" │
00:02:42 #3623 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:02:42 #3624 [Verbose] > │ let v33 : float = -v32 │
00:02:42 #3625 [Verbose] > │ let v34 : float = method31(v29) │
00:02:42 #3626 [Verbose] > │ let v35 : float = method3(v34) │
00:02:42 #3627 [Verbose] > │ let v36 : float = method32(v33) │
00:02:42 #3628 [Verbose] > │ let v37 : string = "num_complex::Complex::new(v35, v36)" │
00:02:42 #3629 [Verbose] > │ let v38 : num_complex_Complex<float> = │
00:02:42 #3630 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37 │
00:02:42 #3631 [Verbose] > │ let v39 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3632 [Verbose] > │ let v40 : num_complex_Complex<float> = method8(v38) │
00:02:42 #3633 [Verbose] > │ let v41 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3634 [Verbose] > │ method9(v0, v39, v40) │
00:02:42 #3635 [Verbose] > │ let v42 : num_complex_Complex<float> = method33(v0, v38) │
00:02:42 #3636 [Verbose] > │ let v43 : string = "v41.ok()" │
00:02:42 #3637 [Verbose] > │ let v44 : num_complex_Complex<float> option = │
00:02:42 #3638 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v43 │
00:02:42 #3639 [Verbose] > │ let v45 : US0 = US0_0 │
00:02:42 #3640 [Verbose] > │ let v46 : US0 = v44 |> Option.map v12 |> Option.defaultValue v45 │
00:02:42 #3641 [Verbose] > │ let v47 : string = "f64::NAN" │
00:02:42 #3642 [Verbose] > │ let v48 : float = Fable.Core.RustInterop.emitRustExpr () v47 │
00:02:42 #3643 [Verbose] > │ let v49 : string = "f64::NAN" │
00:02:42 #3644 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:02:42 #3645 [Verbose] > │ let v51 : float = method31(v48) │
00:02:42 #3646 [Verbose] > │ let v52 : float = method3(v51) │
00:02:42 #3647 [Verbose] > │ let v53 : float = method32(v50) │
00:02:42 #3648 [Verbose] > │ let v54 : string = "num_complex::Complex::new(v52, v53)" │
00:02:42 #3649 [Verbose] > │ let v55 : num_complex_Complex<float> = │
00:02:42 #3650 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:02:42 #3651 [Verbose] > │ let v58 : num_complex_Complex<float> = │
00:02:42 #3652 [Verbose] > │ match v46 with │
00:02:42 #3653 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3654 [Verbose] > │ v55 │
00:02:42 #3655 [Verbose] > │ | US0_1(v56) -> (* Some *) │
00:02:42 #3656 [Verbose] > │ v56 │
00:02:42 #3657 [Verbose] > │ let v59 : string = "v58.conj()" │
00:02:42 #3658 [Verbose] > │ let v60 : num_complex_Complex<float> = │
00:02:42 #3659 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v59 │
00:02:42 #3660 [Verbose] > │ let v61 : num_complex_Complex<float> = method13(v26) │
00:02:42 #3661 [Verbose] > │ let v62 : string = "v61.re" │
00:02:42 #3662 [Verbose] > │ let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62 │
00:02:42 #3663 [Verbose] > │ let v64 : num_complex_Complex<float> = method13(v60) │
00:02:42 #3664 [Verbose] > │ let v65 : string = "v64.re" │
00:02:42 #3665 [Verbose] > │ let v66 : float = Fable.Core.RustInterop.emitRustExpr () v65 │
00:02:42 #3666 [Verbose] > │ let v67 : string = $"%A{v63}" │
00:02:42 #3667 [Verbose] > │ System.Console.WriteLine v67 │
00:02:42 #3668 [Verbose] > │ let v68 : bool = v63 = v66 │
00:02:42 #3669 [Verbose] > │ let v70 : bool = │
00:02:42 #3670 [Verbose] > │ if v68 then │
00:02:42 #3671 [Verbose] > │ true │
00:02:42 #3672 [Verbose] > │ else │
00:02:42 #3673 [Verbose] > │ method43(v68) │
00:02:42 #3674 [Verbose] > │ let v71 : string = $"__expect / actual: %A{v63} / expected: %A{v66}" │
00:02:42 #3675 [Verbose] > │ let v72 : bool = v70 = false │
00:02:42 #3676 [Verbose] > │ if v72 then │
00:02:42 #3677 [Verbose] > │ failwith<unit> v71 │
00:02:42 #3678 [Verbose] > │ let v73 : num_complex_Complex<float> = method14(v26) │
00:02:42 #3679 [Verbose] > │ let v74 : string = "v73.im" │
00:02:42 #3680 [Verbose] > │ let v75 : float = Fable.Core.RustInterop.emitRustExpr () v74 │
00:02:42 #3681 [Verbose] > │ let v76 : num_complex_Complex<float> = method14(v60) │
00:02:42 #3682 [Verbose] > │ let v77 : string = "v76.im" │
00:02:42 #3683 [Verbose] > │ let v78 : float = Fable.Core.RustInterop.emitRustExpr () v77 │
00:02:42 #3684 [Verbose] > │ let v79 : string = $"%A{v75}" │
00:02:42 #3685 [Verbose] > │ System.Console.WriteLine v79 │
00:02:42 #3686 [Verbose] > │ let v80 : bool = v75 = v78 │
00:02:42 #3687 [Verbose] > │ let v82 : bool = │
00:02:42 #3688 [Verbose] > │ if v80 then │
00:02:42 #3689 [Verbose] > │ true │
00:02:42 #3690 [Verbose] > │ else │
00:02:42 #3691 [Verbose] > │ method43(v80) │
00:02:42 #3692 [Verbose] > │ let v83 : string = $"__expect / actual: %A{v75} / expected: %A{v78}" │
00:02:42 #3693 [Verbose] > │ let v84 : bool = v82 = false │
00:02:42 #3694 [Verbose] > │ if v84 then │
00:02:42 #3695 [Verbose] > │ failwith<unit> v83 │
00:02:42 #3696 [Verbose] > │ and method68 () : unit = │
00:02:42 #3697 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3698 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3699 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3700 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3701 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3702 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3703 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3704 [Verbose] > │ method69(v3) │
00:02:42 #3705 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3706 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3707 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3708 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3709 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3710 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3711 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3712 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3713 [Verbose] > │ () v8 │
00:02:42 #3714 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3715 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3716 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3717 [Verbose] > │ () │
00:02:42 #3718 [Verbose] > │ and method73 () : float = │
00:02:42 #3719 [Verbose] > │ 0.01 │
00:02:42 #3720 [Verbose] > │ and method74 () : float = │
00:02:42 #3721 [Verbose] > │ 0.01 │
00:02:42 #3722 [Verbose] > │ and method72 (v0 : pyo3_Python) : unit = │
00:02:42 #3723 [Verbose] > │ let v1 : float = method73() │
00:02:42 #3724 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #3725 [Verbose] > │ let v3 : float = method74() │
00:02:42 #3726 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #3727 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #3728 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #3729 [Verbose] > │ let v6 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3730 [Verbose] > │ let v7 : num_complex_Complex<float> = method8(v5) │
00:02:42 #3731 [Verbose] > │ let v8 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3732 [Verbose] > │ method9(v0, v6, v7) │
00:02:42 #3733 [Verbose] > │ let v9 : num_complex_Complex<float> = method33(v0, v5) │
00:02:42 #3734 [Verbose] > │ let v10 : string = "v8.ok()" │
00:02:42 #3735 [Verbose] > │ let v11 : num_complex_Complex<float> option = │
00:02:42 #3736 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:02:42 #3737 [Verbose] > │ let v12 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3738 [Verbose] > │ let v13 : US0 = US0_0 │
00:02:42 #3739 [Verbose] > │ let v14 : US0 = v11 |> Option.map v12 |> Option.defaultValue v13 │
00:02:42 #3740 [Verbose] > │ let v15 : string = "f64::NAN" │
00:02:42 #3741 [Verbose] > │ let v16 : float = Fable.Core.RustInterop.emitRustExpr () v15 │
00:02:42 #3742 [Verbose] > │ let v17 : string = "f64::NAN" │
00:02:42 #3743 [Verbose] > │ let v18 : float = Fable.Core.RustInterop.emitRustExpr () v17 │
00:02:42 #3744 [Verbose] > │ let v19 : float = method31(v16) │
00:02:42 #3745 [Verbose] > │ let v20 : float = method3(v19) │
00:02:42 #3746 [Verbose] > │ let v21 : float = method32(v18) │
00:02:42 #3747 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:02:42 #3748 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:02:42 #3749 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:02:42 #3750 [Verbose] > │ let v26 : num_complex_Complex<float> = │
00:02:42 #3751 [Verbose] > │ match v14 with │
00:02:42 #3752 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3753 [Verbose] > │ v23 │
00:02:42 #3754 [Verbose] > │ | US0_1(v24) -> (* Some *) │
00:02:42 #3755 [Verbose] > │ v24 │
00:02:42 #3756 [Verbose] > │ let v27 : num_complex_Complex<float> = method13(v26) │
00:02:42 #3757 [Verbose] > │ let v28 : string = "v27.re" │
00:02:42 #3758 [Verbose] > │ let v29 : float = Fable.Core.RustInterop.emitRustExpr () v28 │
00:02:42 #3759 [Verbose] > │ let v30 : string = $"%A{v29}" │
00:02:42 #3760 [Verbose] > │ System.Console.WriteLine v30 │
00:02:42 #3761 [Verbose] > │ let v31 : bool = v29 < infinity │
00:02:42 #3762 [Verbose] > │ let v33 : bool = │
00:02:42 #3763 [Verbose] > │ if v31 then │
00:02:42 #3764 [Verbose] > │ true │
00:02:42 #3765 [Verbose] > │ else │
00:02:42 #3766 [Verbose] > │ method43(v31) │
00:02:42 #3767 [Verbose] > │ let v34 : string = $"__expect / actual: %A{v29} / expected: │
00:02:42 #3768 [Verbose] > │ %A{infinity}" │
00:02:42 #3769 [Verbose] > │ let v35 : bool = v33 = false │
00:02:42 #3770 [Verbose] > │ if v35 then │
00:02:42 #3771 [Verbose] > │ failwith<unit> v34 │
00:02:42 #3772 [Verbose] > │ let v36 : num_complex_Complex<float> = method14(v26) │
00:02:42 #3773 [Verbose] > │ let v37 : string = "v36.im" │
00:02:42 #3774 [Verbose] > │ let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37 │
00:02:42 #3775 [Verbose] > │ let v39 : string = $"%A{v38}" │
00:02:42 #3776 [Verbose] > │ System.Console.WriteLine v39 │
00:02:42 #3777 [Verbose] > │ let v40 : bool = v38 < infinity │
00:02:42 #3778 [Verbose] > │ let v42 : bool = │
00:02:42 #3779 [Verbose] > │ if v40 then │
00:02:42 #3780 [Verbose] > │ true │
00:02:42 #3781 [Verbose] > │ else │
00:02:42 #3782 [Verbose] > │ method43(v40) │
00:02:42 #3783 [Verbose] > │ let v43 : string = $"__expect / actual: %A{v38} / expected: │
00:02:42 #3784 [Verbose] > │ %A{infinity}" │
00:02:42 #3785 [Verbose] > │ let v44 : bool = v42 = false │
00:02:42 #3786 [Verbose] > │ if v44 then │
00:02:42 #3787 [Verbose] > │ failwith<unit> v43 │
00:02:42 #3788 [Verbose] > │ and method71 () : unit = │
00:02:42 #3789 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3790 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3791 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3792 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3793 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3794 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3795 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3796 [Verbose] > │ method72(v3) │
00:02:42 #3797 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3798 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3799 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3800 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3801 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3802 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3803 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3804 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3805 [Verbose] > │ () v8 │
00:02:42 #3806 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3807 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3808 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3809 [Verbose] > │ () │
00:02:42 #3810 [Verbose] > │ and method77 () : (float []) = │
00:02:42 #3811 [Verbose] > │ let v0 : (float []) = [|10.0; 20.0; 30.0; 40.0; 50.0; 60.0; 70.0; 80.0; │
00:02:42 #3812 [Verbose] > │ 90.0; 100.0|] │
00:02:42 #3813 [Verbose] > │ let v1 : (float []) = method65(v0) │
00:02:42 #3814 [Verbose] > │ v1 │
00:02:42 #3815 [Verbose] > │ and method78 (v0 : bool) : bool = │
00:02:42 #3816 [Verbose] > │ let v1 : bool = v0 = false │
00:02:42 #3817 [Verbose] > │ v1 │
00:02:42 #3818 [Verbose] > │ and method76 (v0 : pyo3_Python) : unit = │
00:02:42 #3819 [Verbose] > │ let v1 : (float []) = method77() │
00:02:42 #3820 [Verbose] > │ let v2 : int32 = v1.Length │
00:02:42 #3821 [Verbose] > │ let v3 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #3822 [Verbose] > │ while method7(v2, v3) do │
00:02:42 #3823 [Verbose] > │ let v5 : int32 = v3.l0 │
00:02:42 #3824 [Verbose] > │ let v6 : float = v1.[int v5] │
00:02:42 #3825 [Verbose] > │ let v7 : float = method35() │
00:02:42 #3826 [Verbose] > │ let v8 : float = method3(v7) │
00:02:42 #3827 [Verbose] > │ let v9 : float = method32(v6) │
00:02:42 #3828 [Verbose] > │ let v10 : string = "num_complex::Complex::new(v8, v9)" │
00:02:42 #3829 [Verbose] > │ let v11 : num_complex_Complex<float> = │
00:02:42 #3830 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:02:42 #3831 [Verbose] > │ let v12 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3832 [Verbose] > │ let v13 : num_complex_Complex<float> = method8(v11) │
00:02:42 #3833 [Verbose] > │ let v14 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3834 [Verbose] > │ method9(v0, v12, v13) │
00:02:42 #3835 [Verbose] > │ let v15 : num_complex_Complex<float> = method33(v0, v11) │
00:02:42 #3836 [Verbose] > │ let v16 : string = "v14.ok()" │
00:02:42 #3837 [Verbose] > │ let v17 : num_complex_Complex<float> option = │
00:02:42 #3838 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v16 │
00:02:42 #3839 [Verbose] > │ let v18 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3840 [Verbose] > │ let v19 : US0 = US0_0 │
00:02:42 #3841 [Verbose] > │ let v20 : US0 = v17 |> Option.map v18 |> Option.defaultValue v19 │
00:02:42 #3842 [Verbose] > │ let v21 : string = "f64::NAN" │
00:02:42 #3843 [Verbose] > │ let v22 : float = Fable.Core.RustInterop.emitRustExpr () v21 │
00:02:42 #3844 [Verbose] > │ let v23 : string = "f64::NAN" │
00:02:42 #3845 [Verbose] > │ let v24 : float = Fable.Core.RustInterop.emitRustExpr () v23 │
00:02:42 #3846 [Verbose] > │ let v25 : float = method31(v22) │
00:02:42 #3847 [Verbose] > │ let v26 : float = method3(v25) │
00:02:42 #3848 [Verbose] > │ let v27 : float = method32(v24) │
00:02:42 #3849 [Verbose] > │ let v28 : string = "num_complex::Complex::new(v26, v27)" │
00:02:42 #3850 [Verbose] > │ let v29 : num_complex_Complex<float> = │
00:02:42 #3851 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v28 │
00:02:42 #3852 [Verbose] > │ let v32 : num_complex_Complex<float> = │
00:02:42 #3853 [Verbose] > │ match v20 with │
00:02:42 #3854 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3855 [Verbose] > │ v29 │
00:02:42 #3856 [Verbose] > │ | US0_1(v30) -> (* Some *) │
00:02:42 #3857 [Verbose] > │ v30 │
00:02:42 #3858 [Verbose] > │ let v33 : num_complex_Complex<float> = method13(v32) │
00:02:42 #3859 [Verbose] > │ let v34 : string = "v33.re" │
00:02:42 #3860 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:02:42 #3861 [Verbose] > │ let v36 : string = $"%A{v35}" │
00:02:42 #3862 [Verbose] > │ System.Console.WriteLine v36 │
00:02:42 #3863 [Verbose] > │ let v37 : bool = v35 = 0.0 │
00:02:42 #3864 [Verbose] > │ let v38 : bool = method78(v37) │
00:02:42 #3865 [Verbose] > │ let v40 : bool = │
00:02:42 #3866 [Verbose] > │ if v38 then │
00:02:42 #3867 [Verbose] > │ true │
00:02:42 #3868 [Verbose] > │ else │
00:02:42 #3869 [Verbose] > │ method43(v38) │
00:02:42 #3870 [Verbose] > │ let v41 : string = $"__expect / actual: %A{v35} / expected: %A{0.0}" │
00:02:42 #3871 [Verbose] > │ let v42 : bool = v40 = false │
00:02:42 #3872 [Verbose] > │ if v42 then │
00:02:42 #3873 [Verbose] > │ failwith<unit> v41 │
00:02:42 #3874 [Verbose] > │ let v43 : num_complex_Complex<float> = method14(v32) │
00:02:42 #3875 [Verbose] > │ let v44 : string = "v43.im" │
00:02:42 #3876 [Verbose] > │ let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44 │
00:02:42 #3877 [Verbose] > │ let v46 : string = $"%A{v45}" │
00:02:42 #3878 [Verbose] > │ System.Console.WriteLine v46 │
00:02:42 #3879 [Verbose] > │ let v47 : bool = v45 = 0.0 │
00:02:42 #3880 [Verbose] > │ let v48 : bool = method78(v47) │
00:02:42 #3881 [Verbose] > │ let v50 : bool = │
00:02:42 #3882 [Verbose] > │ if v48 then │
00:02:42 #3883 [Verbose] > │ true │
00:02:42 #3884 [Verbose] > │ else │
00:02:42 #3885 [Verbose] > │ method43(v48) │
00:02:42 #3886 [Verbose] > │ let v51 : string = $"__expect / actual: %A{v45} / expected: %A{0.0}" │
00:02:42 #3887 [Verbose] > │ let v52 : bool = v50 = false │
00:02:42 #3888 [Verbose] > │ if v52 then │
00:02:42 #3889 [Verbose] > │ failwith<unit> v51 │
00:02:42 #3890 [Verbose] > │ let v53 : int32 = v5 + 1 │
00:02:42 #3891 [Verbose] > │ v3.l0 <- v53 │
00:02:42 #3892 [Verbose] > │ () │
00:02:42 #3893 [Verbose] > │ () │
00:02:42 #3894 [Verbose] > │ and method75 () : unit = │
00:02:42 #3895 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #3896 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #3897 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #3898 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #3899 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #3900 [Verbose] > │ let v2 : string = "py" │
00:02:42 #3901 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #3902 [Verbose] > │ method76(v3) │
00:02:42 #3903 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #3904 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #3905 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #3906 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #3907 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #3908 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #3909 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #3910 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #3911 [Verbose] > │ () v8 │
00:02:42 #3912 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #3913 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #3914 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #3915 [Verbose] > │ () │
00:02:42 #3916 [Verbose] > │ and method81 () : float = │
00:02:42 #3917 [Verbose] > │ 0.75 │
00:02:42 #3918 [Verbose] > │ and method82 () : float = │
00:02:42 #3919 [Verbose] > │ 20.5 │
00:02:42 #3920 [Verbose] > │ and method83 () : float = │
00:02:42 #3921 [Verbose] > │ 1.25 │
00:02:42 #3922 [Verbose] > │ and method84 () : float = │
00:02:42 #3923 [Verbose] > │ 30.1 │
00:02:42 #3924 [Verbose] > │ and method85 () : float = │
00:02:42 #3925 [Verbose] > │ 0.25 │
00:02:42 #3926 [Verbose] > │ and method86 () : float = │
00:02:42 #3927 [Verbose] > │ 40.0 │
00:02:42 #3928 [Verbose] > │ and method87 () : float = │
00:02:42 #3929 [Verbose] > │ 50.0 │
00:02:42 #3930 [Verbose] > │ and method80 (v0 : pyo3_Python) : unit = │
00:02:42 #3931 [Verbose] > │ let v1 : float = method55() │
00:02:42 #3932 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #3933 [Verbose] > │ let v3 : float = method56() │
00:02:42 #3934 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #3935 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #3936 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #3937 [Verbose] > │ let v6 : float = method81() │
00:02:42 #3938 [Verbose] > │ let v7 : float = method3(v6) │
00:02:42 #3939 [Verbose] > │ let v8 : float = method82() │
00:02:42 #3940 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:02:42 #3941 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:02:42 #3942 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:02:42 #3943 [Verbose] > │ let v11 : float = method83() │
00:02:42 #3944 [Verbose] > │ let v12 : float = method3(v11) │
00:02:42 #3945 [Verbose] > │ let v13 : float = method84() │
00:02:42 #3946 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:02:42 #3947 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:02:42 #3948 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:02:42 #3949 [Verbose] > │ let v16 : float = method85() │
00:02:42 #3950 [Verbose] > │ let v17 : float = method3(v16) │
00:02:42 #3951 [Verbose] > │ let v18 : float = method86() │
00:02:42 #3952 [Verbose] > │ let v19 : string = "num_complex::Complex::new(v17, v18)" │
00:02:42 #3953 [Verbose] > │ let v20 : num_complex_Complex<float> = │
00:02:42 #3954 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19 │
00:02:42 #3955 [Verbose] > │ let v21 : float = method38() │
00:02:42 #3956 [Verbose] > │ let v22 : float = method3(v21) │
00:02:42 #3957 [Verbose] > │ let v23 : float = method87() │
00:02:42 #3958 [Verbose] > │ let v24 : string = "num_complex::Complex::new(v22, v23)" │
00:02:42 #3959 [Verbose] > │ let v25 : num_complex_Complex<float> = │
00:02:42 #3960 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v24 │
00:02:42 #3961 [Verbose] > │ let v26 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20; v25|] │
00:02:42 #3962 [Verbose] > │ let v27 : (num_complex_Complex<float> []) = method62(v26) │
00:02:42 #3963 [Verbose] > │ let v28 : int32 = v27.Length │
00:02:42 #3964 [Verbose] > │ let v29 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #3965 [Verbose] > │ while method7(v28, v29) do │
00:02:42 #3966 [Verbose] > │ let v31 : int32 = v29.l0 │
00:02:42 #3967 [Verbose] > │ let v32 : num_complex_Complex<float> = v27.[int v31] │
00:02:42 #3968 [Verbose] > │ let v33 : string = $" s = mpmath.zeta(s)" │
00:02:42 #3969 [Verbose] > │ let v34 : num_complex_Complex<float> = method8(v32) │
00:02:42 #3970 [Verbose] > │ let v35 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #3971 [Verbose] > │ method9(v0, v33, v34) │
00:02:42 #3972 [Verbose] > │ let v36 : num_complex_Complex<float> = method33(v0, v32) │
00:02:42 #3973 [Verbose] > │ let v37 : string = "v35.ok()" │
00:02:42 #3974 [Verbose] > │ let v38 : num_complex_Complex<float> option = │
00:02:42 #3975 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v37 │
00:02:42 #3976 [Verbose] > │ let v39 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #3977 [Verbose] > │ let v40 : US0 = US0_0 │
00:02:42 #3978 [Verbose] > │ let v41 : US0 = v38 |> Option.map v39 |> Option.defaultValue v40 │
00:02:42 #3979 [Verbose] > │ let v42 : string = "f64::NAN" │
00:02:42 #3980 [Verbose] > │ let v43 : float = Fable.Core.RustInterop.emitRustExpr () v42 │
00:02:42 #3981 [Verbose] > │ let v44 : string = "f64::NAN" │
00:02:42 #3982 [Verbose] > │ let v45 : float = Fable.Core.RustInterop.emitRustExpr () v44 │
00:02:42 #3983 [Verbose] > │ let v46 : float = method31(v43) │
00:02:42 #3984 [Verbose] > │ let v47 : float = method3(v46) │
00:02:42 #3985 [Verbose] > │ let v48 : float = method32(v45) │
00:02:42 #3986 [Verbose] > │ let v49 : string = "num_complex::Complex::new(v47, v48)" │
00:02:42 #3987 [Verbose] > │ let v50 : num_complex_Complex<float> = │
00:02:42 #3988 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v49 │
00:02:42 #3989 [Verbose] > │ let v53 : num_complex_Complex<float> = │
00:02:42 #3990 [Verbose] > │ match v41 with │
00:02:42 #3991 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #3992 [Verbose] > │ v50 │
00:02:42 #3993 [Verbose] > │ | US0_1(v51) -> (* Some *) │
00:02:42 #3994 [Verbose] > │ v51 │
00:02:42 #3995 [Verbose] > │ let v54 : num_complex_Complex<float> = method13(v53) │
00:02:42 #3996 [Verbose] > │ let v55 : string = "v54.re" │
00:02:42 #3997 [Verbose] > │ let v56 : float = Fable.Core.RustInterop.emitRustExpr () v55 │
00:02:42 #3998 [Verbose] > │ let v57 : string = $"%A{v56}" │
00:02:42 #3999 [Verbose] > │ System.Console.WriteLine v57 │
00:02:42 #4000 [Verbose] > │ let v58 : bool = v56 = 0.0 │
00:02:42 #4001 [Verbose] > │ let v59 : bool = method78(v58) │
00:02:42 #4002 [Verbose] > │ let v61 : bool = │
00:02:42 #4003 [Verbose] > │ if v59 then │
00:02:42 #4004 [Verbose] > │ true │
00:02:42 #4005 [Verbose] > │ else │
00:02:42 #4006 [Verbose] > │ method43(v59) │
00:02:42 #4007 [Verbose] > │ let v62 : string = $"__expect / actual: %A{v56} / expected: %A{0.0}" │
00:02:42 #4008 [Verbose] > │ let v63 : bool = v61 = false │
00:02:42 #4009 [Verbose] > │ if v63 then │
00:02:42 #4010 [Verbose] > │ failwith<unit> v62 │
00:02:42 #4011 [Verbose] > │ let v64 : num_complex_Complex<float> = method14(v53) │
00:02:42 #4012 [Verbose] > │ let v65 : string = "v64.im" │
00:02:42 #4013 [Verbose] > │ let v66 : float = Fable.Core.RustInterop.emitRustExpr () v65 │
00:02:42 #4014 [Verbose] > │ let v67 : string = $"%A{v66}" │
00:02:42 #4015 [Verbose] > │ System.Console.WriteLine v67 │
00:02:42 #4016 [Verbose] > │ let v68 : bool = v66 = 0.0 │
00:02:42 #4017 [Verbose] > │ let v69 : bool = method78(v68) │
00:02:42 #4018 [Verbose] > │ let v71 : bool = │
00:02:42 #4019 [Verbose] > │ if v69 then │
00:02:42 #4020 [Verbose] > │ true │
00:02:42 #4021 [Verbose] > │ else │
00:02:42 #4022 [Verbose] > │ method43(v69) │
00:02:42 #4023 [Verbose] > │ let v72 : string = $"__expect / actual: %A{v66} / expected: %A{0.0}" │
00:02:42 #4024 [Verbose] > │ let v73 : bool = v71 = false │
00:02:42 #4025 [Verbose] > │ if v73 then │
00:02:42 #4026 [Verbose] > │ failwith<unit> v72 │
00:02:42 #4027 [Verbose] > │ let v74 : int32 = v31 + 1 │
00:02:42 #4028 [Verbose] > │ v29.l0 <- v74 │
00:02:42 #4029 [Verbose] > │ () │
00:02:42 #4030 [Verbose] > │ () │
00:02:42 #4031 [Verbose] > │ and method79 () : unit = │
00:02:42 #4032 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:42 #4033 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:42 #4034 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:42 #4035 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:42 #4036 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:42 #4037 [Verbose] > │ let v2 : string = "py" │
00:02:42 #4038 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:42 #4039 [Verbose] > │ method80(v3) │
00:02:42 #4040 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:42 #4041 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:42 #4042 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:42 #4043 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:42 #4044 [Verbose] > │ let v7 : string = "{ //" │
00:02:42 #4045 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:42 #4046 [Verbose] > │ let v8 : string = "__result" │
00:02:42 #4047 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:42 #4048 [Verbose] > │ () v8 │
00:02:42 #4049 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:42 #4050 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:42 #4051 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:42 #4052 [Verbose] > │ () │
00:02:42 #4053 [Verbose] > │ and method90 () : float = │
00:02:42 #4054 [Verbose] > │ 3.0 │
00:02:42 #4055 [Verbose] > │ and method91 () : float = │
00:02:42 #4056 [Verbose] > │ 4.0 │
00:02:42 #4057 [Verbose] > │ and method92 () : float = │
00:02:42 #4058 [Verbose] > │ 2.5 │
00:02:42 #4059 [Verbose] > │ and method93 () : float = │
00:02:42 #4060 [Verbose] > │ -3.5 │
00:02:42 #4061 [Verbose] > │ and method94 () : float = │
00:02:42 #4062 [Verbose] > │ 1.5 │
00:02:42 #4063 [Verbose] > │ and method95 () : float = │
00:02:42 #4064 [Verbose] > │ 2.5 │
00:02:42 #4065 [Verbose] > │ and method89 (v0 : pyo3_Python) : unit = │
00:02:42 #4066 [Verbose] > │ let v1 : float = method90() │
00:02:42 #4067 [Verbose] > │ let v2 : float = method3(v1) │
00:02:42 #4068 [Verbose] > │ let v3 : float = method91() │
00:02:42 #4069 [Verbose] > │ let v4 : string = "num_complex::Complex::new(v2, v3)" │
00:02:42 #4070 [Verbose] > │ let v5 : num_complex_Complex<float> = │
00:02:42 #4071 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:42 #4072 [Verbose] > │ let v6 : float = method92() │
00:02:42 #4073 [Verbose] > │ let v7 : float = method3(v6) │
00:02:42 #4074 [Verbose] > │ let v8 : float = method93() │
00:02:42 #4075 [Verbose] > │ let v9 : string = "num_complex::Complex::new(v7, v8)" │
00:02:42 #4076 [Verbose] > │ let v10 : num_complex_Complex<float> = │
00:02:42 #4077 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:02:42 #4078 [Verbose] > │ let v11 : float = method94() │
00:02:42 #4079 [Verbose] > │ let v12 : float = method3(v11) │
00:02:42 #4080 [Verbose] > │ let v13 : float = method95() │
00:02:42 #4081 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:02:42 #4082 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:02:42 #4083 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:02:42 #4084 [Verbose] > │ let v16 : float = method55() │
00:02:42 #4085 [Verbose] > │ let v17 : float = method3(v16) │
00:02:42 #4086 [Verbose] > │ let v18 : float = method56() │
00:02:42 #4087 [Verbose] > │ let v19 : string = "num_complex::Complex::new(v17, v18)" │
00:02:42 #4088 [Verbose] > │ let v20 : num_complex_Complex<float> = │
00:02:42 #4089 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v19 │
00:02:42 #4090 [Verbose] > │ let v21 : (num_complex_Complex<float> []) = [|v5; v10; v15; v20|] │
00:02:42 #4091 [Verbose] > │ let v22 : (num_complex_Complex<float> []) = method62(v21) │
00:02:42 #4092 [Verbose] > │ let v23 : int32 = v22.Length │
00:02:42 #4093 [Verbose] > │ let v24 : Mut0 = {l0 = 0} : Mut0 │
00:02:42 #4094 [Verbose] > │ while method7(v23, v24) do │
00:02:42 #4095 [Verbose] > │ let v26 : int32 = v24.l0 │
00:02:42 #4096 [Verbose] > │ let v27 : num_complex_Complex<float> = v22.[int v26] │
00:02:42 #4097 [Verbose] > │ let v28 : string = $" s = mpmath.zeta(s)" │
00:02:42 #4098 [Verbose] > │ let v29 : num_complex_Complex<float> = method8(v27) │
00:02:42 #4099 [Verbose] > │ let v30 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:42 #4100 [Verbose] > │ method9(v0, v28, v29) │
00:02:42 #4101 [Verbose] > │ let v31 : num_complex_Complex<float> = method33(v0, v27) │
00:02:42 #4102 [Verbose] > │ let v32 : string = "v30.ok()" │
00:02:42 #4103 [Verbose] > │ let v33 : num_complex_Complex<float> option = │
00:02:42 #4104 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v32 │
00:02:42 #4105 [Verbose] > │ let v34 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:42 #4106 [Verbose] > │ let v35 : US0 = US0_0 │
00:02:42 #4107 [Verbose] > │ let v36 : US0 = v33 |> Option.map v34 |> Option.defaultValue v35 │
00:02:42 #4108 [Verbose] > │ let v37 : string = "f64::NAN" │
00:02:42 #4109 [Verbose] > │ let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37 │
00:02:42 #4110 [Verbose] > │ let v39 : string = "f64::NAN" │
00:02:42 #4111 [Verbose] > │ let v40 : float = Fable.Core.RustInterop.emitRustExpr () v39 │
00:02:42 #4112 [Verbose] > │ let v41 : float = method31(v38) │
00:02:42 #4113 [Verbose] > │ let v42 : float = method3(v41) │
00:02:42 #4114 [Verbose] > │ let v43 : float = method32(v40) │
00:02:42 #4115 [Verbose] > │ let v44 : string = "num_complex::Complex::new(v42, v43)" │
00:02:42 #4116 [Verbose] > │ let v45 : num_complex_Complex<float> = │
00:02:42 #4117 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v44 │
00:02:42 #4118 [Verbose] > │ let v48 : num_complex_Complex<float> = │
00:02:42 #4119 [Verbose] > │ match v36 with │
00:02:42 #4120 [Verbose] > │ | US0_0 -> (* None *) │
00:02:42 #4121 [Verbose] > │ v45 │
00:02:42 #4122 [Verbose] > │ | US0_1(v46) -> (* Some *) │
00:02:42 #4123 [Verbose] > │ v46 │
00:02:42 #4124 [Verbose] > │ let v49 : float = method2() │
00:02:42 #4125 [Verbose] > │ let v50 : float = method3(v49) │
00:02:42 #4126 [Verbose] > │ let v51 : float = method4() │
00:02:42 #4127 [Verbose] > │ let v52 : string = "num_complex::Complex::new(v50, v51)" │
00:02:42 #4128 [Verbose] > │ let v53 : num_complex_Complex<float> = │
00:02:42 #4129 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v52 │
00:02:42 #4130 [Verbose] > │ let v54 : num_complex_Complex<float> = method39(v53) │
00:02:42 #4131 [Verbose] > │ let v55 : num_complex_Complex<float> = method40(v27) │
00:02:42 #4132 [Verbose] > │ let v56 : string = "num_complex::Complex::powc(v54, v55)" │
00:02:42 #4133 [Verbose] > │ let v57 : num_complex_Complex<float> = │
00:02:42 #4134 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v56 │
00:02:42 #4135 [Verbose] > │ let v58 : float = method42() │
00:02:42 #4136 [Verbose] > │ let v59 : float = method3(v58) │
00:02:42 #4137 [Verbose] > │ let v60 : float = method4() │
00:02:42 #4138 [Verbose] > │ let v61 : string = "num_complex::Complex::new(v59, v60)" │
00:02:42 #4139 [Verbose] > │ let v62 : num_complex_Complex<float> = │
00:02:42 #4140 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v61 │
00:02:42 #4141 [Verbose] > │ let v63 : float = method38() │
00:02:42 #4142 [Verbose] > │ let v64 : float = method3(v63) │
00:02:42 #4143 [Verbose] > │ let v65 : float = method4() │
00:02:42 #4144 [Verbose] > │ let v66 : string = "num_complex::Complex::new(v64, v65)" │
00:02:42 #4145 [Verbose] > │ let v67 : num_complex_Complex<float> = │
00:02:42 #4146 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v66 │
00:02:42 #4147 [Verbose] > │ let v68 : string = "v27 - v67" │
00:02:42 #4148 [Verbose] > │ let v69 : num_complex_Complex<float> = │
00:02:42 #4149 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v68 │
00:02:42 #4150 [Verbose] > │ let v70 : num_complex_Complex<float> = method39(v62) │
00:02:42 #4151 [Verbose] > │ let v71 : num_complex_Complex<float> = method40(v69) │
00:02:42 #4152 [Verbose] > │ let v72 : string = "num_complex::Complex::powc(v70, v71)" │
00:02:42 #4153 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:02:42 #4154 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:02:42 #4155 [Verbose] > │ let v74 : string = "v57 * v73" │
00:02:42 #4156 [Verbose] > │ let v75 : num_complex_Complex<float> = │
00:02:42 #4157 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:02:42 #4158 [Verbose] > │ let v76 : float = method42() │
00:02:42 #4159 [Verbose] > │ let v77 : float = method3(v76) │
00:02:42 #4160 [Verbose] > │ let v78 : float = method4() │
00:02:42 #4161 [Verbose] > │ let v79 : string = "num_complex::Complex::new(v77, v78)" │
00:02:42 #4162 [Verbose] > │ let v80 : num_complex_Complex<float> = │
00:02:42 #4163 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v79 │
00:02:42 #4164 [Verbose] > │ let v81 : string = "v80 * v27" │
00:02:42 #4165 [Verbose] > │ let v82 : num_complex_Complex<float> = │
00:02:42 #4166 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v81 │
00:02:42 #4167 [Verbose] > │ let v83 : float = method2() │
00:02:42 #4168 [Verbose] > │ let v84 : float = method3(v83) │
00:02:42 #4169 [Verbose] > │ let v85 : float = method4() │
00:02:42 #4170 [Verbose] > │ let v86 : string = "num_complex::Complex::new(v84, v85)" │
00:02:42 #4171 [Verbose] > │ let v87 : num_complex_Complex<float> = │
00:02:42 #4172 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86 │
00:02:42 #4173 [Verbose] > │ let v88 : string = "v82 / v87" │
00:02:42 #4174 [Verbose] > │ let v89 : num_complex_Complex<float> = │
00:02:42 #4175 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v88 │
00:02:42 #4176 [Verbose] > │ let v90 : string = "v89.sin()" │
00:02:42 #4177 [Verbose] > │ let v91 : num_complex_Complex<float> = │
00:02:42 #4178 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v90 │
00:02:42 #4179 [Verbose] > │ let v92 : string = "v75 * v91" │
00:02:42 #4180 [Verbose] > │ let v93 : num_complex_Complex<float> = │
00:02:42 #4181 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v92 │
00:02:42 #4182 [Verbose] > │ let v94 : float = method38() │
00:02:42 #4183 [Verbose] > │ let v95 : float = method3(v94) │
00:02:42 #4184 [Verbose] > │ let v96 : float = method4() │
00:02:42 #4185 [Verbose] > │ let v97 : string = "num_complex::Complex::new(v95, v96)" │
00:02:42 #4186 [Verbose] > │ let v98 : num_complex_Complex<float> = │
00:02:42 #4187 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v97 │
00:02:42 #4188 [Verbose] > │ let v99 : string = "v98 - v27" │
00:02:42 #4189 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:02:42 #4190 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:02:42 #4191 [Verbose] > │ let v101 : string = $" s = mpmath.gamma(s)" │
00:02:42 #4192 [Verbose] > │ let v102 : num_complex_Complex<float> = method8(v100) │
00:02:42 #4193 [Verbose] > │ let v103 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:43 #4194 [Verbose] > │ method41(v0, v101, v102) │
00:02:43 #4195 [Verbose] > │ let v104 : string = "v103.ok()" │
00:02:43 #4196 [Verbose] > │ let v105 : num_complex_Complex<float> option = │
00:02:43 #4197 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v104 │
00:02:43 #4198 [Verbose] > │ let v106 : US0 = US0_0 │
00:02:43 #4199 [Verbose] > │ let v107 : US0 = v105 |> Option.map v34 |> Option.defaultValue v106 │
00:02:43 #4200 [Verbose] > │ let v108 : string = "f64::NAN" │
00:02:43 #4201 [Verbose] > │ let v109 : float = Fable.Core.RustInterop.emitRustExpr () v108 │
00:02:43 #4202 [Verbose] > │ let v110 : string = "f64::NAN" │
00:02:43 #4203 [Verbose] > │ let v111 : float = Fable.Core.RustInterop.emitRustExpr () v110 │
00:02:43 #4204 [Verbose] > │ let v112 : float = method31(v109) │
00:02:43 #4205 [Verbose] > │ let v113 : float = method3(v112) │
00:02:43 #4206 [Verbose] > │ let v114 : float = method32(v111) │
00:02:43 #4207 [Verbose] > │ let v115 : string = "num_complex::Complex::new(v113, v114)" │
00:02:43 #4208 [Verbose] > │ let v116 : num_complex_Complex<float> = │
00:02:43 #4209 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v115 │
00:02:43 #4210 [Verbose] > │ let v119 : num_complex_Complex<float> = │
00:02:43 #4211 [Verbose] > │ match v107 with │
00:02:43 #4212 [Verbose] > │ | US0_0 -> (* None *) │
00:02:43 #4213 [Verbose] > │ v116 │
00:02:43 #4214 [Verbose] > │ | US0_1(v117) -> (* Some *) │
00:02:43 #4215 [Verbose] > │ v117 │
00:02:43 #4216 [Verbose] > │ let v120 : string = "v93 * v119" │
00:02:43 #4217 [Verbose] > │ let v121 : num_complex_Complex<float> = │
00:02:43 #4218 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v120 │
00:02:43 #4219 [Verbose] > │ let v122 : num_complex_Complex<float> = method13(v27) │
00:02:43 #4220 [Verbose] > │ let v123 : string = "v122.re" │
00:02:43 #4221 [Verbose] > │ let v124 : float = Fable.Core.RustInterop.emitRustExpr () v123 │
00:02:43 #4222 [Verbose] > │ let v125 : float = 1.0 - v124 │
00:02:43 #4223 [Verbose] > │ let v126 : num_complex_Complex<float> = method14(v27) │
00:02:43 #4224 [Verbose] > │ let v127 : string = "v126.im" │
00:02:43 #4225 [Verbose] > │ let v128 : float = Fable.Core.RustInterop.emitRustExpr () v127 │
00:02:43 #4226 [Verbose] > │ let v129 : float = -v128 │
00:02:43 #4227 [Verbose] > │ let v130 : float = method31(v125) │
00:02:43 #4228 [Verbose] > │ let v131 : float = method3(v130) │
00:02:43 #4229 [Verbose] > │ let v132 : float = method32(v129) │
00:02:43 #4230 [Verbose] > │ let v133 : string = "num_complex::Complex::new(v131, v132)" │
00:02:43 #4231 [Verbose] > │ let v134 : num_complex_Complex<float> = │
00:02:43 #4232 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v133 │
00:02:43 #4233 [Verbose] > │ let v135 : string = $" s = mpmath.zeta(s)" │
00:02:43 #4234 [Verbose] > │ let v136 : num_complex_Complex<float> = method8(v134) │
00:02:43 #4235 [Verbose] > │ let v137 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:43 #4236 [Verbose] > │ method9(v0, v135, v136) │
00:02:43 #4237 [Verbose] > │ let v138 : num_complex_Complex<float> = method33(v0, v134) │
00:02:43 #4238 [Verbose] > │ let v139 : string = "v137.ok()" │
00:02:43 #4239 [Verbose] > │ let v140 : num_complex_Complex<float> option = │
00:02:43 #4240 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v139 │
00:02:43 #4241 [Verbose] > │ let v141 : US0 = US0_0 │
00:02:43 #4242 [Verbose] > │ let v142 : US0 = v140 |> Option.map v34 |> Option.defaultValue v141 │
00:02:43 #4243 [Verbose] > │ let v143 : string = "f64::NAN" │
00:02:43 #4244 [Verbose] > │ let v144 : float = Fable.Core.RustInterop.emitRustExpr () v143 │
00:02:43 #4245 [Verbose] > │ let v145 : string = "f64::NAN" │
00:02:43 #4246 [Verbose] > │ let v146 : float = Fable.Core.RustInterop.emitRustExpr () v145 │
00:02:43 #4247 [Verbose] > │ let v147 : float = method31(v144) │
00:02:43 #4248 [Verbose] > │ let v148 : float = method3(v147) │
00:02:43 #4249 [Verbose] > │ let v149 : float = method32(v146) │
00:02:43 #4250 [Verbose] > │ let v150 : string = "num_complex::Complex::new(v148, v149)" │
00:02:43 #4251 [Verbose] > │ let v151 : num_complex_Complex<float> = │
00:02:43 #4252 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v150 │
00:02:43 #4253 [Verbose] > │ let v154 : num_complex_Complex<float> = │
00:02:43 #4254 [Verbose] > │ match v142 with │
00:02:43 #4255 [Verbose] > │ | US0_0 -> (* None *) │
00:02:43 #4256 [Verbose] > │ v151 │
00:02:43 #4257 [Verbose] > │ | US0_1(v152) -> (* Some *) │
00:02:43 #4258 [Verbose] > │ v152 │
00:02:43 #4259 [Verbose] > │ let v155 : string = "v121 * v154" │
00:02:43 #4260 [Verbose] > │ let v156 : num_complex_Complex<float> = │
00:02:43 #4261 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v155 │
00:02:43 #4262 [Verbose] > │ let v157 : num_complex_Complex<float> = method13(v48) │
00:02:43 #4263 [Verbose] > │ let v158 : string = "v157.re" │
00:02:43 #4264 [Verbose] > │ let v159 : float = Fable.Core.RustInterop.emitRustExpr () v158 │
00:02:43 #4265 [Verbose] > │ let v160 : num_complex_Complex<float> = method13(v156) │
00:02:43 #4266 [Verbose] > │ let v161 : string = "v160.re" │
00:02:43 #4267 [Verbose] > │ let v162 : float = Fable.Core.RustInterop.emitRustExpr () v161 │
00:02:43 #4268 [Verbose] > │ let v163 : float = v159 - v162 │
00:02:43 #4269 [Verbose] > │ let v164 : float = -v163 │
00:02:43 #4270 [Verbose] > │ let v165 : bool = v163 >= v164 │
00:02:43 #4271 [Verbose] > │ let v166 : float = │
00:02:43 #4272 [Verbose] > │ if v165 then │
00:02:43 #4273 [Verbose] > │ v163 │
00:02:43 #4274 [Verbose] > │ else │
00:02:43 #4275 [Verbose] > │ v164 │
00:02:43 #4276 [Verbose] > │ let v167 : string = $"%A{v166}" │
00:02:43 #4277 [Verbose] > │ System.Console.WriteLine v167 │
00:02:43 #4278 [Verbose] > │ let v168 : bool = v166 < 0.0001 │
00:02:43 #4279 [Verbose] > │ let v170 : bool = │
00:02:43 #4280 [Verbose] > │ if v168 then │
00:02:43 #4281 [Verbose] > │ true │
00:02:43 #4282 [Verbose] > │ else │
00:02:43 #4283 [Verbose] > │ method43(v168) │
00:02:43 #4284 [Verbose] > │ let v171 : string = $"__expect / actual: %A{v166} / expected: │
00:02:43 #4285 [Verbose] > │ %A{0.0001}" │
00:02:43 #4286 [Verbose] > │ let v172 : bool = v170 = false │
00:02:43 #4287 [Verbose] > │ if v172 then │
00:02:43 #4288 [Verbose] > │ failwith<unit> v171 │
00:02:43 #4289 [Verbose] > │ let v173 : num_complex_Complex<float> = method14(v48) │
00:02:43 #4290 [Verbose] > │ let v174 : string = "v173.im" │
00:02:43 #4291 [Verbose] > │ let v175 : float = Fable.Core.RustInterop.emitRustExpr () v174 │
00:02:43 #4292 [Verbose] > │ let v176 : num_complex_Complex<float> = method14(v156) │
00:02:43 #4293 [Verbose] > │ let v177 : string = "v176.im" │
00:02:43 #4294 [Verbose] > │ let v178 : float = Fable.Core.RustInterop.emitRustExpr () v177 │
00:02:43 #4295 [Verbose] > │ let v179 : float = v175 - v178 │
00:02:43 #4296 [Verbose] > │ let v180 : float = -v179 │
00:02:43 #4297 [Verbose] > │ let v181 : bool = v179 >= v180 │
00:02:43 #4298 [Verbose] > │ let v182 : float = │
00:02:43 #4299 [Verbose] > │ if v181 then │
00:02:43 #4300 [Verbose] > │ v179 │
00:02:43 #4301 [Verbose] > │ else │
00:02:43 #4302 [Verbose] > │ v180 │
00:02:43 #4303 [Verbose] > │ let v183 : string = $"%A{v182}" │
00:02:43 #4304 [Verbose] > │ System.Console.WriteLine v183 │
00:02:43 #4305 [Verbose] > │ let v184 : bool = v182 < 0.0001 │
00:02:43 #4306 [Verbose] > │ let v186 : bool = │
00:02:43 #4307 [Verbose] > │ if v184 then │
00:02:43 #4308 [Verbose] > │ true │
00:02:43 #4309 [Verbose] > │ else │
00:02:43 #4310 [Verbose] > │ method43(v184) │
00:02:43 #4311 [Verbose] > │ let v187 : string = $"__expect / actual: %A{v182} / expected: │
00:02:43 #4312 [Verbose] > │ %A{0.0001}" │
00:02:43 #4313 [Verbose] > │ let v188 : bool = v186 = false │
00:02:43 #4314 [Verbose] > │ if v188 then │
00:02:43 #4315 [Verbose] > │ failwith<unit> v187 │
00:02:43 #4316 [Verbose] > │ let v189 : int32 = v26 + 1 │
00:02:43 #4317 [Verbose] > │ v24.l0 <- v189 │
00:02:43 #4318 [Verbose] > │ () │
00:02:43 #4319 [Verbose] > │ () │
00:02:43 #4320 [Verbose] > │ and method88 () : unit = │
00:02:43 #4321 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:43 #4322 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:43 #4323 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:43 #4324 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:43 #4325 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:43 #4326 [Verbose] > │ let v2 : string = "py" │
00:02:43 #4327 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:43 #4328 [Verbose] > │ method89(v3) │
00:02:43 #4329 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:43 #4330 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:43 #4331 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:43 #4332 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:43 #4333 [Verbose] > │ let v7 : string = "{ //" │
00:02:43 #4334 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:43 #4335 [Verbose] > │ let v8 : string = "__result" │
00:02:43 #4336 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:43 #4337 [Verbose] > │ () v8 │
00:02:43 #4338 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:43 #4339 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:43 #4340 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:43 #4341 [Verbose] > │ () │
00:02:43 #4342 [Verbose] > │ and method98 (v0 : int32, v1 : Mut3) : bool = │
00:02:43 #4343 [Verbose] > │ let v2 : int32 = v1.l0 │
00:02:43 #4344 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:43 #4345 [Verbose] > │ v3 │
00:02:43 #4346 [Verbose] > │ and method97 (v0 : pyo3_Python) : unit = │
00:02:43 #4347 [Verbose] > │ let v1 : (float []) = [|2.0; 2.5; 3.0; 3.5; 4.0; 4.5; 5.0|] │
00:02:43 #4348 [Verbose] > │ let v2 : (float []) = method65(v1) │
00:02:43 #4349 [Verbose] > │ let v3 : (float []) = [|2.0; 3.0; 5.0; 7.0; 11.0; 13.0; 17.0; 19.0; │
00:02:43 #4350 [Verbose] > │ 23.0; 29.0; 31.0; 37.0; 41.0; 43.0; 47.0; 53.0; 59.0; 61.0; 67.0; 71.0|] │
00:02:43 #4351 [Verbose] > │ let v4 : (float []) = method65(v3) │
00:02:43 #4352 [Verbose] > │ let v5 : int32 = v2.Length │
00:02:43 #4353 [Verbose] > │ let v6 : Mut0 = {l0 = 0} : Mut0 │
00:02:43 #4354 [Verbose] > │ while method7(v5, v6) do │
00:02:43 #4355 [Verbose] > │ let v8 : int32 = v6.l0 │
00:02:43 #4356 [Verbose] > │ let v9 : float = v2.[int v8] │
00:02:43 #4357 [Verbose] > │ let v10 : float = method31(v9) │
00:02:43 #4358 [Verbose] > │ let v11 : float = method3(v10) │
00:02:43 #4359 [Verbose] > │ let v12 : float = method4() │
00:02:43 #4360 [Verbose] > │ let v13 : string = "num_complex::Complex::new(v11, v12)" │
00:02:43 #4361 [Verbose] > │ let v14 : num_complex_Complex<float> = │
00:02:43 #4362 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13 │
00:02:43 #4363 [Verbose] > │ let v15 : int32 = v4.Length │
00:02:43 #4364 [Verbose] > │ let v16 : Mut3 = {l0 = 0; l1 = 1.0} : Mut3 │
00:02:43 #4365 [Verbose] > │ while method98(v15, v16) do │
00:02:43 #4366 [Verbose] > │ let v18 : int32 = v16.l0 │
00:02:43 #4367 [Verbose] > │ let v19 : float = v16.l1 │
00:02:43 #4368 [Verbose] > │ let v20 : float = v4.[int v18] │
00:02:43 #4369 [Verbose] > │ let v21 : float = -v9 │
00:02:43 #4370 [Verbose] > │ let v22 : float = v20 ** v21 │
00:02:43 #4371 [Verbose] > │ let v23 : float = 1.0 - v22 │
00:02:43 #4372 [Verbose] > │ let v24 : float = v19 / v23 │
00:02:43 #4373 [Verbose] > │ let v25 : int32 = v18 + 1 │
00:02:43 #4374 [Verbose] > │ v16.l0 <- v25 │
00:02:43 #4375 [Verbose] > │ v16.l1 <- v24 │
00:02:43 #4376 [Verbose] > │ () │
00:02:43 #4377 [Verbose] > │ let v26 : float = v16.l1 │
00:02:43 #4378 [Verbose] > │ let v27 : string = $" s = mpmath.zeta(s)" │
00:02:43 #4379 [Verbose] > │ let v28 : num_complex_Complex<float> = method8(v14) │
00:02:43 #4380 [Verbose] > │ let v29 : Result<num_complex_Complex<float>, std_string_String> = │
00:02:43 #4381 [Verbose] > │ method9(v0, v27, v28) │
00:02:43 #4382 [Verbose] > │ let v30 : num_complex_Complex<float> = method33(v0, v14) │
00:02:43 #4383 [Verbose] > │ let v31 : string = "v29.ok()" │
00:02:43 #4384 [Verbose] > │ let v32 : num_complex_Complex<float> option = │
00:02:43 #4385 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v31 │
00:02:43 #4386 [Verbose] > │ let v33 : (num_complex_Complex<float> -> US0) = closure5() │
00:02:43 #4387 [Verbose] > │ let v34 : US0 = US0_0 │
00:02:43 #4388 [Verbose] > │ let v35 : US0 = v32 |> Option.map v33 |> Option.defaultValue v34 │
00:02:43 #4389 [Verbose] > │ let v36 : string = "f64::NAN" │
00:02:43 #4390 [Verbose] > │ let v37 : float = Fable.Core.RustInterop.emitRustExpr () v36 │
00:02:43 #4391 [Verbose] > │ let v38 : string = "f64::NAN" │
00:02:43 #4392 [Verbose] > │ let v39 : float = Fable.Core.RustInterop.emitRustExpr () v38 │
00:02:43 #4393 [Verbose] > │ let v40 : float = method31(v37) │
00:02:43 #4394 [Verbose] > │ let v41 : float = method3(v40) │
00:02:43 #4395 [Verbose] > │ let v42 : float = method32(v39) │
00:02:43 #4396 [Verbose] > │ let v43 : string = "num_complex::Complex::new(v41, v42)" │
00:02:43 #4397 [Verbose] > │ let v44 : num_complex_Complex<float> = │
00:02:43 #4398 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v43 │
00:02:43 #4399 [Verbose] > │ let v47 : num_complex_Complex<float> = │
00:02:43 #4400 [Verbose] > │ match v35 with │
00:02:43 #4401 [Verbose] > │ | US0_0 -> (* None *) │
00:02:43 #4402 [Verbose] > │ v44 │
00:02:43 #4403 [Verbose] > │ | US0_1(v45) -> (* Some *) │
00:02:43 #4404 [Verbose] > │ v45 │
00:02:43 #4405 [Verbose] > │ let v48 : num_complex_Complex<float> = method13(v47) │
00:02:43 #4406 [Verbose] > │ let v49 : string = "v48.re" │
00:02:43 #4407 [Verbose] > │ let v50 : float = Fable.Core.RustInterop.emitRustExpr () v49 │
00:02:43 #4408 [Verbose] > │ let v51 : float = v50 - v26 │
00:02:43 #4409 [Verbose] > │ let v52 : float = -v51 │
00:02:43 #4410 [Verbose] > │ let v53 : bool = v51 >= v52 │
00:02:43 #4411 [Verbose] > │ let v54 : float = │
00:02:43 #4412 [Verbose] > │ if v53 then │
00:02:43 #4413 [Verbose] > │ v51 │
00:02:43 #4414 [Verbose] > │ else │
00:02:43 #4415 [Verbose] > │ v52 │
00:02:43 #4416 [Verbose] > │ let v55 : string = $"%A{v54}" │
00:02:43 #4417 [Verbose] > │ System.Console.WriteLine v55 │
00:02:43 #4418 [Verbose] > │ let v56 : bool = v54 < 0.01 │
00:02:43 #4419 [Verbose] > │ let v58 : bool = │
00:02:43 #4420 [Verbose] > │ if v56 then │
00:02:43 #4421 [Verbose] > │ true │
00:02:43 #4422 [Verbose] > │ else │
00:02:43 #4423 [Verbose] > │ method43(v56) │
00:02:43 #4424 [Verbose] > │ let v59 : string = $"__expect / actual: %A{v54} / expected: │
00:02:43 #4425 [Verbose] > │ %A{0.01}" │
00:02:43 #4426 [Verbose] > │ let v60 : bool = v58 = false │
00:02:43 #4427 [Verbose] > │ if v60 then │
00:02:43 #4428 [Verbose] > │ failwith<unit> v59 │
00:02:43 #4429 [Verbose] > │ let v61 : num_complex_Complex<float> = method14(v47) │
00:02:43 #4430 [Verbose] > │ let v62 : string = "v61.im" │
00:02:43 #4431 [Verbose] > │ let v63 : float = Fable.Core.RustInterop.emitRustExpr () v62 │
00:02:43 #4432 [Verbose] > │ let v64 : string = $"%A{v63}" │
00:02:43 #4433 [Verbose] > │ System.Console.WriteLine v64 │
00:02:43 #4434 [Verbose] > │ let v65 : bool = v63 < 0.01 │
00:02:43 #4435 [Verbose] > │ let v67 : bool = │
00:02:43 #4436 [Verbose] > │ if v65 then │
00:02:43 #4437 [Verbose] > │ true │
00:02:43 #4438 [Verbose] > │ else │
00:02:43 #4439 [Verbose] > │ method43(v65) │
00:02:43 #4440 [Verbose] > │ let v68 : string = $"__expect / actual: %A{v63} / expected: │
00:02:43 #4441 [Verbose] > │ %A{0.01}" │
00:02:43 #4442 [Verbose] > │ let v69 : bool = v67 = false │
00:02:43 #4443 [Verbose] > │ if v69 then │
00:02:43 #4444 [Verbose] > │ failwith<unit> v68 │
00:02:43 #4445 [Verbose] > │ let v70 : int32 = v8 + 1 │
00:02:43 #4446 [Verbose] > │ v6.l0 <- v70 │
00:02:43 #4447 [Verbose] > │ () │
00:02:43 #4448 [Verbose] > │ () │
00:02:43 #4449 [Verbose] > │ and method96 () : unit = │
00:02:43 #4450 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:02:43 #4451 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:43 #4452 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:02:43 #4453 [Verbose] > │ pyo3::PyResult<()> { //" │
00:02:43 #4454 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:43 #4455 [Verbose] > │ let v2 : string = "py" │
00:02:43 #4456 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:43 #4457 [Verbose] > │ method97(v3) │
00:02:43 #4458 [Verbose] > │ let v4 : Result<unit, pyo3_PyErr> = Ok () │
00:02:43 #4459 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = method44(v4) │
00:02:43 #4460 [Verbose] > │ let v6 : string = "v5 }})" │
00:02:43 #4461 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:43 #4462 [Verbose] > │ let v7 : string = "{ //" │
00:02:43 #4463 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:43 #4464 [Verbose] > │ let v8 : string = "__result" │
00:02:43 #4465 [Verbose] > │ let v9 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:02:43 #4466 [Verbose] > │ () v8 │
00:02:43 #4467 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = method45(v9) │
00:02:43 #4468 [Verbose] > │ let v11 : string = "v10.unwrap()" │
00:02:43 #4469 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:43 #4470 [Verbose] > │ () │
00:02:43 #4471 [Verbose] > │ and closure0 () () : unit = │
00:02:43 #4472 [Verbose] > │ let v0 : string = "}//" │
00:02:43 #4473 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:02:43 #4474 [Verbose] > │ let v1 : string = "#[test] fn test_zeta_at_known_values_() { //" │
00:02:43 #4475 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:02:43 #4476 [Verbose] > │ method0() │
00:02:43 #4477 [Verbose] > │ let v2 : string = "} #[test] fn test_zeta_at_2_minus2() { //" │
00:02:43 #4478 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v2 │
00:02:43 #4479 [Verbose] > │ method46() │
00:02:43 #4480 [Verbose] > │ let v3 : string = "} #[test] fn test_trivial_zero_at_negative_even___() │
00:02:43 #4481 [Verbose] > │ { //" │
00:02:43 #4482 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:02:43 #4483 [Verbose] > │ method49() │
00:02:43 #4484 [Verbose] > │ let v4 : string = "} #[test] fn test_non_trivial_zero___() { //" │
00:02:43 #4485 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:02:43 #4486 [Verbose] > │ method53() │
00:02:43 #4487 [Verbose] > │ let v5 : string = "} #[test] fn test_real_part_greater_than_one___() { │
00:02:43 #4488 [Verbose] > │ //" │
00:02:43 #4489 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v5 │
00:02:43 #4490 [Verbose] > │ method63() │
00:02:43 #4491 [Verbose] > │ let v6 : string = "} #[test] fn test_zeta_at_1___() { //" │
00:02:43 #4492 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:02:43 #4493 [Verbose] > │ method66() │
00:02:43 #4494 [Verbose] > │ let v7 : string = "} #[test] fn test_symmetry_across_real_axis___() { │
00:02:43 #4495 [Verbose] > │ //" │
00:02:43 #4496 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:02:43 #4497 [Verbose] > │ method68() │
00:02:43 #4498 [Verbose] > │ let v8 : string = "} #[test] fn test_behavior_near_origin___() { //" │
00:02:43 #4499 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v8 │
00:02:43 #4500 [Verbose] > │ method71() │
00:02:43 #4501 [Verbose] > │ let v9 : string = "} #[test] fn test_imaginary_axis() { //" │
00:02:43 #4502 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:02:43 #4503 [Verbose] > │ method75() │
00:02:43 #4504 [Verbose] > │ let v10 : string = "} #[test] fn test_critical_strip() { //" │
00:02:43 #4505 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:02:43 #4506 [Verbose] > │ method79() │
00:02:43 #4507 [Verbose] > │ let v11 : string = "} #[test] fn │
00:02:43 #4508 [Verbose] > │ test_reflection_formula_for_specific_value() { //" │
00:02:43 #4509 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:02:43 #4510 [Verbose] > │ method88() │
00:02:43 #4511 [Verbose] > │ let v12 : string = "} #[test] fn test_euler_product_formula() { //" │
00:02:43 #4512 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v12 │
00:02:43 #4513 [Verbose] > │ method96() │
00:02:43 #4514 [Verbose] > │ and closure6 () (v0 : (string [])) : int32 = │
00:02:43 #4515 [Verbose] > │ let v1 : string = $"value: {1}" │
00:02:43 #4516 [Verbose] > │ System.Console.WriteLine v1 │
00:02:43 #4517 [Verbose] > │ 0 │
00:02:43 #4518 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:02:43 #4519 [Verbose] > │ let tests () = v0 () │
00:02:43 #4520 [Verbose] > │ let v1 : ((string []) -> int32) = closure6() │
00:02:43 #4521 [Verbose] > │ let main args = v1 args │
00:02:43 #4522 [Verbose] > │ () │
00:02:43 #4523 [Verbose] > │ │
00:02:43 #4524 [Verbose] > │ │
00:02:43 #4525 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:45 #4526 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html
00:02:45 #4527 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:45 #4528 [Verbose] > validate(nb)
00:02:46 #4529 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:02:46 #4530 [Verbose] > return _pygments_highlight(
00:02:48 #4531 [Verbose] > [NbConvertApp] Writing 7437215 bytes to math.dib.html
00:02:49 #4532 [Debug] executeAsync / exitCode: 0 / output.Length: 333791
00:02:49 #4533 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib
00:00:00 #2 [Debug] parseDibCode / output: Spi / file: math.dib
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #3 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:00 #4 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # math\n\nopen testing\nopen rust_operators\n\ninl types () =\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022num_complex::Complex\u003C$0\u003E\\\u0022)\u003E] type num_complex_Complex\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::types::PyModule\\\u0022)\u003E] type pyo3_types_PyModule = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Bound\u003C$0\u003E\\\u0022)\u003E] type pyo3_Bound\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Python\\\u0022)\u003E] type pyo3_Python = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyAny\\\u0022)\u003E] type pyo3_PyAny = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyErr\\\u0022)\u003E] type pyo3_PyErr = class end\u0022\n\ninl types () =\n rust.types ()\n sm\u0027.types ()\n types ()\n\n// // ## complex\n\nnominal complex t = $\u0022num_complex_Complex\u003C\u0060t\u003E\u0022\nnominal bound t = $\u0022pyo3_Bound\u003C\u0060t\u003E\u0022\nnominal python = $\u0022pyo3_Python\u0022\nnominal pymodule = $\u0022pyo3_types_PyModule\u0022\nnominal pyany = $\u0022pyo3_PyAny\u0022\nnominal pyerr = $\u0022pyo3_PyErr\u0022\n\ninl complex forall t. ((re : t), (im : t)) : complex t =\n inl re = join re\n inl re = join re\n inl im = join im\n !\\($\u0027\u0022num_complex::Complex::new(!re, !im)\u0022\u0027)\n\n// // ## complex_sin\n\ninl re forall t. (c : complex t) : t =\n inl c = join c\n !\\($\u0027\u0022!c.re\u0022\u0027)\n\ninl im forall t. (c : complex t) : t =\n inl c = join c\n !\\($\u0027\u0022!c.im\u0022\u0027)\n\ninl complex_unbox forall t. (c : complex t) =\n re c, im c\n\ninl (~.^) c = complex c\n\ninl complex_eq forall t. (a : complex t) (b : complex t) : bool =\n !\\($\u0027\u0022!a == !b\u0022\u0027)\n\ninl (.=) a b = complex_eq a b\n\ninstance equable complex t = complex_eq\n\ninl complex_add forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a \u002B !b\u0022\u0027)\n\ninl (.\u002B) a b = complex_add a b\n\ninl complex_sub forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a - !b\u0022\u0027)\n\ninl (.-) a b = complex_sub a b\n\ninl complex_mult forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a * !b\u0022\u0027)\n\ninl (.*) a b = complex_mult a b\n\ninl complex_div forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a / !b\u0022\u0027)\n\ninl (./) a b = complex_div a b\n\ninl powc forall t. (s : complex t) (c : complex t) : complex t =\n inl c = join c\n inl s = join s\n !\\($\u0027\u0022num_complex::Complex::powc(!c, !s)\u0022\u0027)\n\ninl (.**) a b = powc b a\n\ninl complex_sin forall t. (c : complex t) : complex t =\n !\\($\u0027\u0022!c.sin()\u0022\u0027)\n\ninl conj forall t. (c : complex t) : complex t =\n !\\($\u0027\u0022!c.conj()\u0022\u0027)\n\n// // ## zeta\n\ninl zeta log (gamma : complex f64 -\u003E complex f64) (s : complex f64) : complex f64 =\n inl rec zeta count gamma s =\n inl s = join s\n if log then\n !\\($\u0027\u0022println\\!(\\\\\\\u0022zeta / count: {:?} / s: {:?}\\\\\\\u0022, !count, !s)\u0022\u0027)\n if re s \u003E 1 then\n (.^(0, 0), (am.init 10000i32 id : a i32 _))\n ||\u003E am.fold fun acc n =\u003E\n acc .\u002B (.^(1, 0) ./ (.^(f64 n, 0) .** s))\n else\n inl gamma_term = gamma (.^(1, 0) .- s)\n inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |\u003E complex_sin\n inl one_minus_s = .^(1 - re s, -(im s))\n inl mirror_term =\n if re one_minus_s \u003C= 1\n then .^(0, 0)\n else\n if count \u003C= 3\n then zeta (count \u002B 1) gamma one_minus_s\n else one_minus_s\n inl reflection_formula =\n .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .* mirror_term\n reflection_formula\n join zeta 0i32 gamma s\n\n// // ## eval\n\ninl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =\n inl py = join py\n inl code = code |\u003E sm\u0027.as_str\n !\\($\u0027\u0022pyo3::types::PyModule::from_code_bound(!py, !code, \\\\\u0022\\\\\u0022, \\\\\u0022\\\\\u0022)\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl use_pyanymethods () =\n global \u0022Fable.Core.RustInterop.emitRustExpr () \\\u0022);\\nuse pyo3::prelude::PyAnyMethods;\\n//\\\u0022\u0022\n\ninl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =\n inl attr = attr |\u003E sm\u0027.as_str\n inl module = join module\n use_pyanymethods ()\n !\\($\u0027\u0022!module.getattr(!attr)\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =\n inl args = join args\n inl module = join module\n !\\($\u0027\u0022pyo3::prelude::PyAnyMethods::call(\u0026!module, ((*!args).0, *(*!args).1), None)\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl extract forall t. (result : bound pyany) : _ t _ =\n inl result = join result\n use_pyanymethods ()\n !\\($\u0027\u0022!result.extract()\u0022\u0027)\n |\u003E resultm.map_error\u0027 fun (x : pyerr) =\u003E x |\u003E sm\u0027.format\u0027\n\ninl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm\u0027.std_string =\n inl code =\n code\n |\u003E module_from_code py\n |\u003E resultm.unwrap\u0027\n inl fn =\n code\n |\u003E getattr \u0022fn\u0022\n |\u003E resultm.unwrap\u0027\n\n fn\n |\u003E call args\n |\u003E resultm.try\u0027\n |\u003E extract\n |\u003E resultm.try\u0027\n |\u003E complex\n |\u003E Ok\n |\u003E resultm.box\n\ninl call1_ log py s code =\n inl code = join (a code : _ i32 _) |\u003E sm\u0027.concat_array_trailing \u0022\\n\u0022\n \n inl s = new_pair (re s) (im s)\n inl args = new_pair log s\n\n eval py code args\n\ninl call1_ log name py s line =\n inl s = join s\n join\n ;[\n $\u0027$\u0022import sys\u0022\u0027\n $\u0027$\u0022import traceback\u0022\u0027\n $\u0027$\u0022import re\u0022\u0027\n $\u0027$\u0022count = 0\u0022\u0027\n $\u0027$\u0022memory_address_pattern = re.compile(r\\\u0027 at 0x[0-9a-fA-F]\u002B\\\u0027)\u0022\u0027\n $\u0027$\u0022def trace_calls(frame, event, arg):\u0022\u0027\n $\u0027$\u0022 global count\u0022\u0027\n $\u0027$\u0022 count \u002B= 1\u0022\u0027\n $\u0027$\u0022 if count \u003C 200:\u0022\u0027\n $\u0027$\u0022 try:\u0022\u0027\n $\u0027$\u0022 args = {{ k: v for k, v in frame.f_locals.items() if frame.f_code.co_name \\!= \\\u0027make_mpc\\\u0027 and k not in [\\\u0027ctx\\\u0027] and not callable(v) }}\u0022\u0027\n $\u0027$\u0022 args_str = \\\u0027, \\\u0027.join([ f\\\\\\\u0022{{k}}={{re.sub(memory_address_pattern, \\\u0027 at 0x\u003C?\u003E\\\u0027, repr(v))}}\\\\\\\u0022 for k, v in args.items() ])\u0022\u0027\n $\u0027$\u0022 print(f\\\\\\\u0022{{event}}({!name}) / f_code.co_name: {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}} / f_code.co_filename: {{frame.f_code.co_filename.split(\\\u0027site-packages\\\u0027)[-1]}} / f_back.f_lineno: {{ \\\u0027\\\u0027 if frame.f_back is None else frame.f_back.f_lineno }} / f_back.f_code.co_filename: {{ \\\u0027\\\u0027 if frame.f_back is None else frame.f_back.f_code.co_filename.split(\\\u0027site-packages\\\u0027)[-1] }} / arg: {{re.sub(memory_address_pattern, \\\u0027 at 0x\u003C?\u003E\\\u0027, repr(arg))}}\\\\\\\u0022, flush=True)\u0022\u0027\n $\u0027$\u0022 except ValueError as e:\u0022\u0027\n $\u0027$\u0022 print(f\\\u0027{!name} / e: {{e}}\\\u0027, flush=True)\u0022\u0027\n $\u0027$\u0022 return trace_calls\u0022\u0027\n $\u0027$\u0022import mpmath\u0022\u0027\n $\u0027$\u0022def fn(log, s):\u0022\u0027\n $\u0027$\u0022 global count\u0022\u0027\n $\u0027$\u0022 if log:\u0022\u0027\n $\u0027$\u0022 print(f\\\u0027{!name} / s: {{s}} / count: {{count}}\\\u0027, flush=True)\u0022\u0027\n $\u0027$\u0022 s = complex(*s)\u0022\u0027\n $\u0027$\u0022 try:\u0022\u0027\n $\u0027$\u0022 if log: sys.settrace(trace_calls)\u0022\u0027\n line\n $\u0027$\u0022 if log:\u0022\u0027\n $\u0027$\u0022 sys.settrace(None)\u0022\u0027\n $\u0027$\u0022 print(f\\\u0027{!name} / result: {{s}} / count: {{count}}\\\u0027, flush=True)\u0022\u0027\n $\u0027$\u0022 except ValueError as e:\u0022\u0027\n $\u0027$\u0022 if s.real == 1:\u0022\u0027\n $\u0027$\u0022 s = complex(float(\\\u0027inf\\\u0027), 0)\u0022\u0027\n $\u0027$\u0022 return (s.real, s.imag)\u0022\u0027\n ]\n |\u003E call1_ log py s\n\ninl gamma_ log py s =\n call1_ log \u0022gamma_\u0022 py s $\u0027$\u0022 s = mpmath.gamma(s)\u0022\u0027\n\ninl zeta_ log py s =\n call1_ log \u0022zeta_\u0022 py s $\u0027$\u0022 s = mpmath.zeta(s)\u0022\u0027\n\n// // ## run_test\n\ninl run_test log closure_fix (fn : (complex f64 -\u003E complex f64) * (complex f64 -\u003E complex f64) -\u003E ()) =\n inl fn_ (py : python) : resultm.result\u0027 () pyerr =\n inl nan () =\n !\\($\u0027\u0022f64::NAN\u0022\u0027)\n inl gamma__ = fun (s : complex f64) =\u003E\n inl result = gamma_ log py s\n if log then\n inl s = join s\n !\\($\u0027\u0022println\\!(\\\\\\\u0022gamma__ / s: {:?} / result: {:?}\\\\\\\u0022, !s, !result)\u0022\u0027)\n result |\u003E resultm.ok\u0027 |\u003E optionm\u0027.unbox |\u003E optionm\u0027.default_value .^(nan (), nan ())\n inl zeta__ = fun (s : complex f64) =\u003E\n inl result = zeta_ log py s\n\n inl z = zeta true gamma__ s\n\n if log then\n inl s = join s\n !\\($\u0027\u0022println\\!(\\\\\\\u0022zeta__ / s: {:?} / result: {:?} / z: {:?}\\\\\\\u0022, !s, !result, !z)\u0022\u0027)\n\n // re result - re x |\u003E abs\n // |\u003E _assert_lt 0.001\n\n // im result - im x |\u003E abs\n // |\u003E _assert_lt 0.001\n\n result |\u003E resultm.ok\u0027 |\u003E optionm\u0027.unbox |\u003E optionm\u0027.default_value .^(nan (), nan ())\n join fn (zeta__, gamma__)\n\n Ok ()\n |\u003E resultm.box\n \n join\n !\\($\u0027\u0022pyo3::prepare_freethreaded_python()\u0022\u0027) : ()\n\n !\\($\u0027\u0022let __result = pyo3::Python::with_gil(|py| -\u003E pyo3::PyResult\u003C()\u003E { //\u0022\u0027)\n\n let x\u0027 = fn_ (!\\($\u0027\u0022py\u0022\u0027) : python)\n inl x\u0027 = join x\u0027\n \n inl closure_fix = 2u8, 1u8\n x\u0027 |\u003E rust.fix_closure closure_fix\n\n (!\\($\u0027\u0022__result\u0022\u0027) : _ () pyerr)\n |\u003E resultm.unwrap\u0027\n\n// // ## test_zeta_at_known_values_\n\ninl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(2, 0), pi ** 2 / 6\n .^(-1, 0), -1 / 12\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s, e =\u003E\n inl result = zeta s\n\n result |\u003E im |\u003E _assert_eq 0\n re result - e |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_zeta_at_2_minus2\n\ninl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = .^(2, -2)\n inl result = zeta s\n\n (re result - 0.8673) |\u003E abs |\u003E _assert_lt 0.001\n (im result - 0.2750) |\u003E abs |\u003E _assert_lt 0.001\n\n// // ## test_trivial_zero_at_negative_even___\n\ninl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun zeta, gamma =\u003E\n (join listm\u0027.init_series -2f64 -40 -2)\n |\u003E listm.iter fun n =\u003E\n inl s = .^(n, 0)\n inl result = zeta s\n\n result |\u003E re |\u003E _assert_eq 0\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_non_trivial_zero___\n\ninl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(0.5, 14.134725)\n .^(0.5, 21.022040)\n .^(0.5, 25.010857)\n .^(0.5, 30.424876)\n .^(0.5, 32.935062)\n .^(0.5, 37.586178)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun x =\u003E\n inl result = zeta x\n result |\u003E re |\u003E abs |\u003E _assert_lt 0.0001\n result |\u003E im |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_real_part_greater_than_one___\n\ninl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n inl points = ;[2; 3; 4; 5; 10; 20; 50]\n (a points : _ i32 _)\n |\u003E am.iter fun point =\u003E\n inl s = .^(point, 0)\n inl result = zeta s\n result |\u003E re |\u003E _assert_gt 0\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_zeta_at_1___\n\ninl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = .^(1, 0)\n inl result = zeta s\n result |\u003E re |\u003E _assert_eq limit.max\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_symmetry_across_real_axis___\n\ninl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta, gamma =\u003E\n inl s = .^(2, 10)\n inl result_positive_im = zeta s\n inl result_negative_im = zeta .^(re s, -(im s))\n inl conj = result_negative_im |\u003E conj\n result_positive_im |\u003E re |\u003E _assert_eq (conj |\u003E re)\n result_positive_im |\u003E im |\u003E _assert_eq (conj |\u003E im)\n\n// // ## test_behavior_near_origin___\n\ninl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = .^(0.01, 0.01)\n inl result = zeta s\n result |\u003E re |\u003E _assert_lt limit.max\n result |\u003E im |\u003E _assert_lt limit.max\n\n// // ## test_imaginary_axis\n\ninl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n (join a ;[10; 20; 30; 40; 50; 60; 70; 80; 90; 100] : _ i32 _)\n |\u003E am.iter fun s =\u003E\n inl s = .^(0, s)\n inl result = zeta s\n result |\u003E re |\u003E _assert_ne 0\n result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_critical_strip\n\ninl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(0.5, 14.134725)\n .^(0.75, 20.5)\n .^(1.25, 30.1)\n .^(0.25, 40.0)\n .^(1.0, 50.0)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s =\u003E\n inl result = zeta s\n result |\u003E re |\u003E _assert_ne 0\n result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_reflection_formula_for_specific_value\n\ninl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n .^(3, 4)\n .^(2.5, -3.5)\n .^(1.5, 2.5)\n .^(0.5, 14.134725)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s =\u003E\n inl lhs = zeta s\n inl reflection_coefficient =\n (.^(2, 0) .** s)\n .* (.^(pi, 0) .** (s .- .^(1, 0)))\n .* (.^(pi, 0) .* s ./ .^(2, 0) |\u003E complex_sin)\n .* gamma (.^(1, 0) .- s)\n\n inl one_minus_s = .^(1 - re s, -(im s))\n inl rhs = reflection_coefficient .* zeta one_minus_s\n\n re lhs - re rhs |\u003E abs |\u003E _assert_lt 0.0001\n im lhs - im rhs |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_euler_product_formula\n\ninl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =\u003E\n inl s_values = ;[2; 2.5; 3; 3.5; 4; 4.5; 5]\n inl primes = ;[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53; 59; 61; 67; 71]\n (a s_values : _ i32 _)\n |\u003E am.iter fun s_re =\u003E\n inl s = .^(s_re, 0)\n inl product =\n (1, (a primes : _ i32 _))\n ||\u003E am.fold fun acc x =\u003E\n acc * 1 / (1 - x ** -s_re)\n\n inl result = zeta s\n re result - product |\u003E abs |\u003E _assert_lt 0.01\n result |\u003E im |\u003E _assert_lt 0.01\n\n// // ## graph\n\n// // ## tests\n\ninl tests () =\n !\\($\u0027\u0022}//\u0022\u0027) : ()\n\n !\\($\u0027\u0022#[test] fn test_zeta_at_known_values_() { //\u0022\u0027) : ()\n test_zeta_at_known_values_ false\n !\\($\u0027\u0022} #[test] fn test_zeta_at_2_minus2() { //\u0022\u0027) : ()\n test_zeta_at_2_minus2 false\n !\\($\u0027\u0022} #[test] fn test_trivial_zero_at_negative_even___() { //\u0022\u0027) : ()\n test_trivial_zero_at_negative_even___ false\n !\\($\u0027\u0022} #[test] fn test_non_trivial_zero___() { //\u0022\u0027) : ()\n test_non_trivial_zero___ false\n !\\($\u0027\u0022} #[test] fn test_real_part_greater_than_one___() { //\u0022\u0027) : ()\n test_real_part_greater_than_one___ false\n !\\($\u0027\u0022} #[test] fn test_zeta_at_1___() { //\u0022\u0027) : ()\n test_zeta_at_1___ false\n !\\($\u0027\u0022} #[test] fn test_symmetry_across_real_axis___() { //\u0022\u0027) : ()\n test_symmetry_across_real_axis___ false\n !\\($\u0027\u0022} #[test] fn test_behavior_near_origin___() { //\u0022\u0027) : ()\n test_behavior_near_origin___ false\n !\\($\u0027\u0022} #[test] fn test_imaginary_axis() { //\u0022\u0027) : ()\n test_imaginary_axis false\n !\\($\u0027\u0022} #[test] fn test_critical_strip() { //\u0022\u0027) : ()\n test_critical_strip false\n !\\($\u0027\u0022} #[test] fn test_reflection_formula_for_specific_value() { //\u0022\u0027) : ()\n test_reflection_formula_for_specific_value false\n !\\($\u0027\u0022} #[test] fn test_euler_product_formula() { //\u0022\u0027) : ()\n test_euler_product_formula false\n\n// // rust=\n\ninl main (_args : array_base string) =\n inl value = 1i32\n console.write_line ($\u0022$\\\u0022value: {!value}\\\u0022\u0022 : string)\n 0i32\n\ninl main () =\n types ()\n $\u0022let tests () = !tests ()\u0022 : ()\n $\u0022let main args = !main args\u0022 : ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result.Length:
00:00:00 #5 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result.Length:
00:00:00 #6 [Debug] buildFile / takeWhileInclusive / fsxContent: [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end
[<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = class end
[<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]... / errors: [] / typeErrorCount: 0
00:00:00 #7 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00 #1 [Debug] persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/date_time.fsx; lib/fsharp/Common.fs] / name: math / code.Length: 141585
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64"
WorkingDirectory = Some "C:\home\git\polyglot\target\polyglot\builder\math"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:02 #6 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj (in 466 ms).
00:00:02 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj]
00:00:10 #8 [Verbose] > math -> C:\home\git\polyglot\target\polyglot\builder\math\bin\Release\net9.0\linux-x64\math.dll
00:00:12 #9 [Verbose] > math -> C:\home\git\polyglot\lib\math\dist\
00:00:12 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 664
00:00:12 #11 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64"
WorkingDirectory = Some "C:\home\git\polyglot\target\polyglot\builder\math"
CancellationToken = None
OnLine = None }
00:00:12 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:13 #13 [Verbose] > Determining projects to restore...
00:00:14 #14 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj (in 505 ms).
00:00:14 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj]
00:00:20 #16 [Verbose] > math -> C:\home\git\polyglot\target\polyglot\builder\math\bin\Release\net9.0\win-x64\math.dll
00:00:28 #17 [Verbose] > math -> C:\home\git\polyglot\lib\math\dist\
00:00:28 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 662
Fable 4.14.0: F# to Rust compiler (status: alpha)
Thanks to the contributor! @Booksbaum
Stand with Ukraine! https://standwithukraine.com.ua/
Parsing ..\..\target\polyglot\builder\math\math.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (4 source files) parsed in 205ms
Started Fable compilation...
Fable compilation finished in 5012ms
.\..\spiral\common.fsx(95,0): (95,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\..\spiral\date_time.fsx(81,0): (81,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\..\..\target\polyglot\builder\math\math.fs(35,0): (37,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
Blocking waiting for file lock on package cache
Compiling pyo3-build-config v0.21.0-beta.0
Compiling pyo3-macros-backend v0.21.0-beta.0
Compiling pyo3-ffi v0.21.0-beta.0
Compiling pyo3 v0.21.0-beta.0
Compiling pyo3-macros v0.21.0-beta.0
Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)
Finished `release` profile [optimized] target(s) in 53.42s
Running unittests math.rs (C:\home\git\polyglot\target\release\deps\math-5aef5a5df7ad393a.exe)
running 12 tests
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s
In [ ]:
{ . "$ScriptDir/../apps/chat/build.ps1" } | Invoke-Block
Finished `release` profile [optimized] target(s) in 2.02s Compiling prost-build v0.9.0 Compiling near-workspaces v0.10.0 Compiling tonic-build v0.6.2 Compiling opentelemetry-otlp v0.10.0 Compiling near-o11y v0.20.1 Compiling near-primitives v0.20.1 Compiling near-chain-configs v0.20.1 Compiling near-jsonrpc-primitives v0.20.1 Compiling near-jsonrpc-client v0.8.0 Compiling chat_contract_tests v0.0.1 (/mnt/c/home/git/polyglot/apps/chat/contract/tests) Finished `release` profile [optimized] target(s) in 5m 25s Running `/mnt/c/home/git/polyglot/target/release/chat_contract_tests` Updated the logging layer according to `log_config.json` new: ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5283260523066, }, transaction: ExecutionOutcome { transaction_hash: 4DxRMdhVKASB6FKm9LtgejhybNQwKwmJaMCWMEUKm2Cz, block_hash: CQ9tSCnBVW91ZergBxHC8WZVHz7AsKSBqnUQKNWDsWVe, logs: [], receipt_ids: [ 8ST1CW1FG4q7cwzWUjY7tvzmZbts8dPnEc81RcRiqGp5, ], gas_burnt: NearGas { inner: 2427927707802, }, tokens_burnt: NearToken { inner: 242792770780200000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessReceiptId(8ST1CW1FG4q7cwzWUjY7tvzmZbts8dPnEc81RcRiqGp5), }, receipts: [ ExecutionOutcome { transaction_hash: 8ST1CW1FG4q7cwzWUjY7tvzmZbts8dPnEc81RcRiqGp5, block_hash: CQ9tSCnBVW91ZergBxHC8WZVHz7AsKSBqnUQKNWDsWVe, logs: [], receipt_ids: [ 9VsUtik7MsArS7FGdQVrh8vRoUyonqTv9TffMfaneNfh, ], gas_burnt: NearGas { inner: 2632150252764, }, tokens_burnt: NearToken { inner: 263215025276400000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 9VsUtik7MsArS7FGdQVrh8vRoUyonqTv9TffMfaneNfh, block_hash: 9UXTw1Gj6pVKFoPKahvRyc2sLQuymDpm9zfznA6x1Fwt, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.0035292180294080877 outcome (success: true): outcome_gas_burnt_usd: 0.001621855708811736 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0017582763688463521 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 claim_alias(contract, ''): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5288055422272, }, transaction: ExecutionOutcome { transaction_hash: AzfKZ8YtPg8mh6sZWqdeKAhHfJr999e8ynUs4wC36YVf, block_hash: H9cxggAYd6AMxUfQHus77PMWwKz1iSTN8cDx7e6ttjEL, logs: [], receipt_ids: [ 3JXq8yaXtVfQyHhCaCPoXLi8TZDUtSCeWqX7Qk8By5zh, ], gas_burnt: NearGas { inner: 2427972426482, }, tokens_burnt: NearToken { inner: 242797242648200000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessReceiptId(3JXq8yaXtVfQyHhCaCPoXLi8TZDUtSCeWqX7Qk8By5zh), }, receipts: [ ExecutionOutcome { transaction_hash: 3JXq8yaXtVfQyHhCaCPoXLi8TZDUtSCeWqX7Qk8By5zh, block_hash: H9cxggAYd6AMxUfQHus77PMWwKz1iSTN8cDx7e6ttjEL, logs: [ "claim_alias / alias: \"\" / account_id: AccountId(\n \"dev-20240329142238-23532421728544\",\n) / timestamp: 1711722160091157320", ], receipt_ids: [ DPx1vWobBhKJFLrvKybNwMaBZwmd4qytbcnJpfHYsatT, ], gas_burnt: NearGas { inner: 2636900433290, }, tokens_burnt: NearToken { inner: 263690043329000000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })), }, ExecutionOutcome { transaction_hash: DPx1vWobBhKJFLrvKybNwMaBZwmd4qytbcnJpfHYsatT, block_hash: Bh2nrv2Arhvh9pFfhznxDHiKbCoN1kXHFS6FqkGkZc8R, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ], status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })), } total_gas_burnt_usd: 0.003532421022077696 outcome (success: true): outcome_gas_burnt_usd: 0.001621885580889976 outcome_tokens_burnt_usd: 0.0 outcome (success: false): outcome_gas_burnt_usd: 0.00176144948943772 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 dev_create_account(account1): Account { id: AccountId( "dev-20240329142240-59249188347073", ), } generate_cid_borsh(account1): ViewResultDetails { result: [ 59, 0, 0, 0, 98, 97, 102, 107, 114, 101, 105, 104, 100, 119, 100, 99, 101, 102, 103, 104, 52, 100, 113, 107, 106, 118, 54, 55, 117, 122, 99, 109, 119, 55, 111, 106, 101, 101, 54, 120, 101, 100, 122, 100, 101, 116, 111, 106, 117, 122, 106, 101, 118, 116, 101, 110, 120, 113, 117, 118, 121, 107, 117, ], logs: [], } claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5709883265113, }, transaction: ExecutionOutcome { transaction_hash: 9NAmAPGZdKPytdtnMsxYnTot3iR418wYhjUQYV7yvf1V, block_hash: Dds4JdPbk8Yt35wWjdoUQhcjV4jTDQ2DVdvXSo58tku6, logs: [], receipt_ids: [ B9iymytAamDfnysYgBjwUVYVGViGZi9kDTRkePbCTcWC, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessReceiptId(B9iymytAamDfnysYgBjwUVYVGViGZi9kDTRkePbCTcWC), }, receipts: [ ExecutionOutcome { transaction_hash: B9iymytAamDfnysYgBjwUVYVGViGZi9kDTRkePbCTcWC, block_hash: 3pQR1ZD6wnCw32A9Ax2NDnxxvtLRPaSeKSbq72vBquuG, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240329142240-59249188347073\",\n) / timestamp: 1711722162335377312", ], receipt_ids: [ AQpsaHkbHdVqbaM3vRMv2DJQfaPBiaiXBBVQTk4DNZzw, ], gas_burnt: NearGas { inner: 3058714860527, }, tokens_burnt: NearToken { inner: 305871486052700000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: AQpsaHkbHdVqbaM3vRMv2DJQfaPBiaiXBBVQTk4DNZzw, block_hash: 5hBEPABSfxQ6A9TjvuusSXnXKvMbLvaXnqQppoEn1Vco, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003814202021095484 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.002043221526832036 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5534210328178, }, transaction: ExecutionOutcome { transaction_hash: Crd4LTQH7cwejnVBZRhneW83LJiUw9SbSwNDUhoteMp9, block_hash: 5Fs6xASPfeF4PZReDvpdvA5L5vZ9ReVfLf9hDUoDJxaX, logs: [], receipt_ids: [ GCQw6RCQbLTPUvWgV2H8zggzGpXXNE82qxbatrBCvYYb, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessReceiptId(GCQw6RCQbLTPUvWgV2H8zggzGpXXNE82qxbatrBCvYYb), }, receipts: [ ExecutionOutcome { transaction_hash: GCQw6RCQbLTPUvWgV2H8zggzGpXXNE82qxbatrBCvYYb, block_hash: EU1qKmRxf82hN6M67VS4bZFxU4g7rGYeQ4oK6bipezGK, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240329142240-59249188347073\",\n) / timestamp: 1711722163349351763", "Alias already claimed", ], receipt_ids: [ D8j5dNfyaxM2CFqEmk2vp8hCAs1rPkr5tixTRSHgQBev, ], gas_burnt: NearGas { inner: 2883041923592, }, tokens_burnt: NearToken { inner: 288304192359200000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: D8j5dNfyaxM2CFqEmk2vp8hCAs1rPkr5tixTRSHgQBev, block_hash: 4N6QpGJXaLynieevQ7mYeQ8jSnDBW6MiVAeTGNt5VW1a, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003696852499222904 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.001925872004959456 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias1", ( 1711722162335377312, 0, ), ), ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240329142240-59249188347073", ): ( 1711722162335377312, 0, ), }, ) dev_create_account(account2): Account { id: AccountId( "dev-20240329142243-22263096482454", ), } claim_alias(alias2): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5797233044743, }, transaction: ExecutionOutcome { transaction_hash: qYRqxWsraQx566M5edZAftGcpt1Btqg519Qz4Pb3Gqn, block_hash: 92pvTn8eGtFwzDz6FwEvAK8PLyT3WR6rvGFMKt4sj4Gg, logs: [], receipt_ids: [ Bze85Hv1cT42uR7P9d9S5mxe8i9LnkBLurdG4NoML9yu, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240329142243-22263096482454", ), status: SuccessReceiptId(Bze85Hv1cT42uR7P9d9S5mxe8i9LnkBLurdG4NoML9yu), }, receipts: [ ExecutionOutcome { transaction_hash: Bze85Hv1cT42uR7P9d9S5mxe8i9LnkBLurdG4NoML9yu, block_hash: gSTEMpqmHnRYX7egg93UpPPKgKGST4VeApEQfcNnrZS, logs: [ "claim_alias / alias: \"alias2\" / account_id: AccountId(\n \"dev-20240329142243-22263096482454\",\n) / timestamp: 1711722165371603565", ], receipt_ids: [ 5SuWhNeJhgZu2kYEBSYr3e1QfFk6FntFj2gq66HAeNHW, ], gas_burnt: NearGas { inner: 3146064640157, }, tokens_burnt: NearToken { inner: 314606464015700000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 5SuWhNeJhgZu2kYEBSYr3e1QfFk6FntFj2gq66HAeNHW, block_hash: 7QExxkzh1fqv4p5truSwBgDbQcdvCMzwgY6f5FRG42vr, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142243-22263096482454", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003872551673888324 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0021015711796248757 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account2): Some( ( "alias2", ( 1711722165371603565, 0, ), ), ) get_alias_map_borsh(alias2): Some( { AccountId( "dev-20240329142243-22263096482454", ): ( 1711722165371603565, 0, ), }, ) claim_alias(account2, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6101325373942, }, transaction: ExecutionOutcome { transaction_hash: CtbeCqBTEaWskYqDqRDT7bPbA4FjbzqiLv279eiuid55, block_hash: 9nRJJHpEa6dCsZkrU6QgHHPXJqZnYMcaDwhJzgLuuWP5, logs: [], receipt_ids: [ EGdxv6BhzfYmF5ANhm5raBEL6RaCiH4jDH4devnEmtbM, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240329142243-22263096482454", ), status: SuccessReceiptId(EGdxv6BhzfYmF5ANhm5raBEL6RaCiH4jDH4devnEmtbM), }, receipts: [ ExecutionOutcome { transaction_hash: EGdxv6BhzfYmF5ANhm5raBEL6RaCiH4jDH4devnEmtbM, block_hash: 3PNvPrja6h6wT3U2N6e8j4rX9eZ1GWrqjggbnWfAzoaz, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240329142243-22263096482454\",\n) / timestamp: 1711722166380586817", ], receipt_ids: [ AS4xNfntc3MruDuW3tuJJo1pNx1ftEzbnAJJ6YLbekvd, ], gas_burnt: NearGas { inner: 3450156969356, }, tokens_burnt: NearToken { inner: 345015696935600000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: AS4xNfntc3MruDuW3tuJJo1pNx1ftEzbnAJJ6YLbekvd, block_hash: GBQ4K8YoUr1qGPo1C5Q4hYwHjJriJ5y7BCDApZytU2L3, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142243-22263096482454", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004075685349793256 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.002304704855529808 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account2): Some( ( "alias1", ( 1711722166380586817, 1, ), ), ) get_alias_map(account2, alias1): Some( { AccountId( "dev-20240329142240-59249188347073", ): ( 1711722162335377312, 0, ), AccountId( "dev-20240329142243-22263096482454", ): ( 1711722166380586817, 1, ), }, ) get_alias_map(account2, alias2): Some( {}, ) claim_alias(account1, alias2): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6095976637186, }, transaction: ExecutionOutcome { transaction_hash: BujXU7bMSfH36xuCKfY8bfxN2ouQPjdEE9KPeBhcFER6, block_hash: JAvqSedpiqVQfygetNd77vZsYzwCR98JkrPtCeA9qW7d, logs: [], receipt_ids: [ 2hwDw6JZS7cUnXVdv3NvoKBk25cAFfjjNDLZiNGJkWox, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessReceiptId(2hwDw6JZS7cUnXVdv3NvoKBk25cAFfjjNDLZiNGJkWox), }, receipts: [ ExecutionOutcome { transaction_hash: 2hwDw6JZS7cUnXVdv3NvoKBk25cAFfjjNDLZiNGJkWox, block_hash: VA8euRwHkGqcdxe5wPSb4LDd5mMxFKrrtxxqo4vfNu7, logs: [ "claim_alias / alias: \"alias2\" / account_id: AccountId(\n \"dev-20240329142240-59249188347073\",\n) / timestamp: 1711722167392785968", ], receipt_ids: [ HrM5hsutXexf5e3zDUy5byi4gmanKY6TNrcC9H4Mmoae, ], gas_burnt: NearGas { inner: 3444808232600, }, tokens_burnt: NearToken { inner: 344480823260000000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: HrM5hsutXexf5e3zDUy5byi4gmanKY6TNrcC9H4Mmoae, block_hash: 6NysnkTEo1Mor9aMY2QAAWCou3TRYfpi5m8CPfi7z9n9, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004072112393640247 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0023011318993767997 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias2", ( 1711722167392785968, 0, ), ), ) get_alias_map(account1, alias2): Some( { AccountId( "dev-20240329142240-59249188347073", ): ( 1711722167392785968, 0, ), }, ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240329142243-22263096482454", ): ( 1711722166380586817, 1, ), }, ) claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6101325373942, }, transaction: ExecutionOutcome { transaction_hash: 9ytuUGvoSimhC3qzKjvGr2VhfGnn33rNFVq62MiQcjVA, block_hash: 6e91DTKgHbunDKmTSuw8KKDBHLGNQoUBjW9RBowvdu6p, logs: [], receipt_ids: [ A2uHRBBruHoPTkDEM7LdgdhETXuy3ArzbvM8vimu635Y, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessReceiptId(A2uHRBBruHoPTkDEM7LdgdhETXuy3ArzbvM8vimu635Y), }, receipts: [ ExecutionOutcome { transaction_hash: A2uHRBBruHoPTkDEM7LdgdhETXuy3ArzbvM8vimu635Y, block_hash: DZwb2VvbQtgucDZbsVm1BRWQ4sgFDYV6NWk5brktzUmn, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240329142240-59249188347073\",\n) / timestamp: 1711722168403850118", ], receipt_ids: [ 2Lt6q1JkfSM77svtqWMiuQVsrXA5TPhdBKA8b3UC5rS7, ], gas_burnt: NearGas { inner: 3450156969356, }, tokens_burnt: NearToken { inner: 345015696935600000000, }, executor_id: AccountId( "dev-20240329142238-23532421728544", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 2Lt6q1JkfSM77svtqWMiuQVsrXA5TPhdBKA8b3UC5rS7, block_hash: AkhqbhDv8JSg4ACffGoWgFLXncfWh6xNZPYej7LXjWZR, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240329142240-59249188347073", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004075685349793256 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.002304704855529808 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias1", ( 1711722168403850118, 1, ), ), ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240329142243-22263096482454", ): ( 1711722166380586817, 0, ), AccountId( "dev-20240329142240-59249188347073", ): ( 1711722168403850118, 1, ), }, ) get_alias_map(account1, alias2): Some( {}, )
In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/extension/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped Already up to date Done in 3.7s ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.15.4 → 8.15.5. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.15.5 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.27s [INFO]: ⬇️ Installing wasm-bindgen... [INFO]: origin crate has no LICENSE [INFO]: ✨ Done in 8.01s [INFO]: 📦 Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg. ▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta] pkg/spiral_temp_extension.js:1495:57: 1495 │ ...put = new URL('spiral_temp_extension_bg.wasm', import.meta.url); ╵ ~~~~~~~~~~~ You need to set the output format to "esm" for "import.meta" to work correctly. 1 warning dist\spiral_temp_extension_bg-TTKGHSXL.wasm 4.6mb ⚠️ dist\devtools.js 29.0kb dist\content_script.js 27.2kb dist\service_worker.js 2.2kb ⚡ Done in 236ms > polyglot@ test:e2e C:\home\git\polyglot\apps\spiral\temp\extension > playwright test [WebServer] (node:560) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Running 3 tests using 3 workers [1/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost [2/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension [3/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen 3 passed (40.1s) To open last HTML report run: pnpm exec playwright show-report
In [ ]:
{ . "$ScriptDir/../apps/perf/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Perf.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:04 #3 [Verbose] >
00:00:04 #4 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #5 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #6 [Verbose] > │ ## Perf (Polyglot) │
00:00:04 #7 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #8 [Verbose] >
00:00:04 #9 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #10 [Verbose] > // // test
00:00:04 #11 [Verbose] >
00:00:04 #12 [Verbose] > open testing
00:00:04 #13 [Verbose] > open benchmark
00:00:10 #14 [Verbose] >
00:00:10 #15 [Verbose] > ╭─[ 5.88s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #16 [Verbose] > │ () │
00:00:10 #17 [Verbose] > │ │
00:00:10 #18 [Verbose] > │ │
00:00:10 #19 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #20 [Verbose] >
00:00:10 #21 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #22 [Verbose] > inl (/@) x = listm'.(/@) x
00:00:10 #23 [Verbose] >
00:00:10 #24 [Verbose] > ╭─[ 223.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #25 [Verbose] > │ () │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > │ │
00:00:10 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #29 [Verbose] >
00:00:10 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #32 [Verbose] > │ ## TestCaseResult │
00:00:10 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #34 [Verbose] >
00:00:10 #35 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:10 #36 [Verbose] > type TestCaseResult =
00:00:10 #37 [Verbose] > {
00:00:10 #38 [Verbose] > Input: string
00:00:10 #39 [Verbose] > Expected: string
00:00:10 #40 [Verbose] > Result: string
00:00:10 #41 [Verbose] > TimeList: int64 list
00:00:10 #42 [Verbose] > }
00:00:10 #43 [Verbose] >
00:00:10 #44 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:10 #45 [Verbose] > #r
00:00:10 #46 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
00:00:10 #47 [Verbose] > spNetCore.Html.Abstractions.dll"
00:00:10 #48 [Verbose] > #r
00:00:10 #49 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:10 #50 [Verbose] > otNet.Interactive.dll"
00:00:10 #51 [Verbose] > #r
00:00:10 #52 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:10 #53 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:10 #54 [Verbose] > #r
00:00:10 #55 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:10 #56 [Verbose] > otNet.Interactive.Formatting.dll"
00:00:10 #57 [Verbose] > open System
00:00:10 #58 [Verbose] > open System.IO
00:00:10 #59 [Verbose] > open System.Text
00:00:10 #60 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:12 #61 [Verbose] >
00:00:12 #62 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:12 #63 [Verbose] > #r
00:00:12 #64 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:12 #65 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:12 #66 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:12 #67 [Verbose] > #r
00:00:12 #68 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:12 #69 [Verbose] > otNet.Interactive.dll"
00:00:12 #70 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:13 #71 [Verbose] >
00:00:13 #72 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #73 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #74 [Verbose] > │ ## run │
00:00:13 #75 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #76 [Verbose] >
00:00:13 #77 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:13 #78 [Verbose] > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:13 #79 [Verbose] > expected) =
00:00:13 #80 [Verbose] > let inputStr =
00:00:13 #81 [Verbose] > match box input with
00:00:13 #82 [Verbose] > | :? System.Collections.ICollection as input ->
00:00:13 #83 [Verbose] > System.Linq.Enumerable.Cast<obj> input
00:00:13 #84 [Verbose] > |> Seq.map string
00:00:13 #85 [Verbose] > |> String.concat ","
00:00:13 #86 [Verbose] > | _ -> input.ToString ()
00:00:13 #87 [Verbose] >
00:00:13 #88 [Verbose] > printfn ""
00:00:13 #89 [Verbose] > printfn $"Solution: {inputStr} "
00:00:13 #90 [Verbose] >
00:00:13 #91 [Verbose] > let performanceInvoke (fn: unit -> 'T) =
00:00:13 #92 [Verbose] > GC.Collect ()
00:00:13 #93 [Verbose] > let stopwatch = System.Diagnostics.Stopwatch ()
00:00:13 #94 [Verbose] > stopwatch.Start ()
00:00:13 #95 [Verbose] > let time1 = stopwatch.ElapsedMilliseconds
00:00:13 #96 [Verbose] >
00:00:13 #97 [Verbose] > let result =
00:00:13 #98 [Verbose] > [[| 0 .. count |]]
00:00:13 #99 [Verbose] > |> Array.Parallel.map (fun _ ->
00:00:13 #100 [Verbose] > fn ()
00:00:13 #101 [Verbose] > )
00:00:13 #102 [Verbose] > |> Array.last
00:00:13 #103 [Verbose] >
00:00:13 #104 [Verbose] > let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:13 #105 [Verbose] >
00:00:13 #106 [Verbose] > result, time2
00:00:13 #107 [Verbose] >
00:00:13 #108 [Verbose] > let resultsWithTime =
00:00:13 #109 [Verbose] > solutions
00:00:13 #110 [Verbose] > |> List.mapi (fun i (testName, solution) ->
00:00:13 #111 [Verbose] > let result, time = performanceInvoke (fun () -> solution input)
00:00:13 #112 [Verbose] > printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time} "
00:00:13 #113 [Verbose] > result, time
00:00:13 #114 [Verbose] > )
00:00:13 #115 [Verbose] >
00:00:13 #116 [Verbose] >
00:00:13 #117 [Verbose] > match resultsWithTime |> List.map fst with
00:00:13 #118 [Verbose] > | ([[]] | [[ _ ]]) -> ()
00:00:13 #119 [Verbose] > | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:13 #120 [Verbose] > | results -> failwithf $"Challenge error: %A{results}"
00:00:13 #121 [Verbose] >
00:00:13 #122 [Verbose] > {
00:00:13 #123 [Verbose] > Input = inputStr
00:00:13 #124 [Verbose] > Expected = expected.ToString ()
00:00:13 #125 [Verbose] > Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:13 #126 [Verbose] > TimeList = resultsWithTime |> List.map snd
00:00:13 #127 [Verbose] > }
00:00:14 #128 [Verbose] >
00:00:14 #129 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #130 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #131 [Verbose] > │ ## runAll │
00:00:14 #132 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #133 [Verbose] >
00:00:14 #134 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #135 [Verbose] > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:14 #136 [Verbose] > testCases =
00:00:14 #137 [Verbose] > printfn ""
00:00:14 #138 [Verbose] > printfn ""
00:00:14 #139 [Verbose] > printfn $"Test: {testName}"
00:00:14 #140 [Verbose] > testCases
00:00:14 #141 [Verbose] > |> Seq.map (run count solutions)
00:00:14 #142 [Verbose] > |> Seq.toList
00:00:14 #143 [Verbose] >
00:00:14 #144 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #145 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #146 [Verbose] > │ ## sortResultList │
00:00:14 #147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #148 [Verbose] >
00:00:14 #149 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #150 [Verbose] > let sortResultList resultList =
00:00:14 #151 [Verbose] > let table =
00:00:14 #152 [Verbose] > let rows =
00:00:14 #153 [Verbose] > resultList
00:00:14 #154 [Verbose] > |> List.map (fun result ->
00:00:14 #155 [Verbose] > let best =
00:00:14 #156 [Verbose] > result.TimeList
00:00:14 #157 [Verbose] > |> List.mapi (fun i time ->
00:00:14 #158 [Verbose] > i + 1, time
00:00:14 #159 [Verbose] > )
00:00:14 #160 [Verbose] > |> List.sortBy snd
00:00:14 #161 [Verbose] > |> List.head
00:00:14 #162 [Verbose] > |> _.ToString()
00:00:14 #163 [Verbose] > let row =
00:00:14 #164 [Verbose] > [[
00:00:14 #165 [Verbose] > result.Input
00:00:14 #166 [Verbose] > result.Expected
00:00:14 #167 [Verbose] > result.Result
00:00:14 #168 [Verbose] > best
00:00:14 #169 [Verbose] > ]]
00:00:14 #170 [Verbose] > let color =
00:00:14 #171 [Verbose] > match result.Expected = result.Result with
00:00:14 #172 [Verbose] > | true -> Some ConsoleColor.DarkGreen
00:00:14 #173 [Verbose] > | false -> Some ConsoleColor.DarkRed
00:00:14 #174 [Verbose] > row, color
00:00:14 #175 [Verbose] > )
00:00:14 #176 [Verbose] > let header =
00:00:14 #177 [Verbose] > [[
00:00:14 #178 [Verbose] > [[
00:00:14 #179 [Verbose] > "Input"
00:00:14 #180 [Verbose] > "Expected"
00:00:14 #181 [Verbose] > "Result"
00:00:14 #182 [Verbose] > "Best"
00:00:14 #183 [Verbose] > ]]
00:00:14 #184 [Verbose] > [[
00:00:14 #185 [Verbose] > "---"
00:00:14 #186 [Verbose] > "---"
00:00:14 #187 [Verbose] > "---"
00:00:14 #188 [Verbose] > "---"
00:00:14 #189 [Verbose] > ]]
00:00:14 #190 [Verbose] > ]]
00:00:14 #191 [Verbose] > |> List.map (fun row -> row, None)
00:00:14 #192 [Verbose] > header @ rows
00:00:14 #193 [Verbose] >
00:00:14 #194 [Verbose] > let formattedTable =
00:00:14 #195 [Verbose] > let lengthMap =
00:00:14 #196 [Verbose] > table
00:00:14 #197 [Verbose] > |> List.map fst
00:00:14 #198 [Verbose] > |> List.transpose
00:00:14 #199 [Verbose] > |> List.map (fun column ->
00:00:14 #200 [Verbose] > column
00:00:14 #201 [Verbose] > |> List.map String.length
00:00:14 #202 [Verbose] > |> List.sortDescending
00:00:14 #203 [Verbose] > |> List.tryHead
00:00:14 #204 [Verbose] > |> Option.defaultValue 0
00:00:14 #205 [Verbose] > )
00:00:14 #206 [Verbose] > |> List.indexed
00:00:14 #207 [Verbose] > |> Map.ofList
00:00:14 #208 [Verbose] > table
00:00:14 #209 [Verbose] > |> List.map (fun (row, color) ->
00:00:14 #210 [Verbose] > let newRow =
00:00:14 #211 [Verbose] > row
00:00:14 #212 [Verbose] > |> List.mapi (fun i cell ->
00:00:14 #213 [Verbose] > cell.PadRight lengthMap.[[i]]
00:00:14 #214 [Verbose] > )
00:00:14 #215 [Verbose] > newRow, color
00:00:14 #216 [Verbose] > )
00:00:14 #217 [Verbose] >
00:00:14 #218 [Verbose] > printfn ""
00:00:14 #219 [Verbose] > formattedTable
00:00:14 #220 [Verbose] > |> List.iter (fun (row, color) ->
00:00:14 #221 [Verbose] > match color with
00:00:14 #222 [Verbose] > | Some color -> Console.ForegroundColor <- color
00:00:14 #223 [Verbose] > | None -> Console.ResetColor ()
00:00:14 #224 [Verbose] >
00:00:14 #225 [Verbose] > printfn "%s" (String.Join ("\t| ", row))
00:00:14 #226 [Verbose] >
00:00:14 #227 [Verbose] > Console.ResetColor ()
00:00:14 #228 [Verbose] > )
00:00:14 #229 [Verbose] >
00:00:14 #230 [Verbose] > let averages =
00:00:14 #231 [Verbose] > resultList
00:00:14 #232 [Verbose] > |> List.map (fun result -> result.TimeList |> List.map float)
00:00:14 #233 [Verbose] > |> List.transpose
00:00:14 #234 [Verbose] > |> List.map List.average
00:00:14 #235 [Verbose] > |> List.map int64
00:00:14 #236 [Verbose] > |> List.indexed
00:00:14 #237 [Verbose] >
00:00:14 #238 [Verbose] > printfn ""
00:00:14 #239 [Verbose] > printfn "Average Ranking "
00:00:14 #240 [Verbose] > averages
00:00:14 #241 [Verbose] > |> List.sortBy snd
00:00:14 #242 [Verbose] > |> List.iter (fun (i, avg) ->
00:00:14 #243 [Verbose] > printfn $"Test case %d{i + 1}. Average Time: %A{avg} "
00:00:14 #244 [Verbose] > )
00:00:14 #245 [Verbose] >
00:00:14 #246 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #247 [Verbose] > let mutable _count =
00:00:14 #248 [Verbose] > if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:14 #249 [Verbose] > <> "<null>"
00:00:14 #250 [Verbose] > then 2000000
00:00:14 #251 [Verbose] > else 2000
00:00:15 #252 [Verbose] >
00:00:15 #253 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #254 [Verbose] > inl is_fast () =
00:00:15 #255 [Verbose] > false
00:00:15 #256 [Verbose] >
00:00:15 #257 [Verbose] > ╭─[ 269.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #258 [Verbose] > │ () │
00:00:15 #259 [Verbose] > │ │
00:00:15 #260 [Verbose] > │ │
00:00:15 #261 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #262 [Verbose] >
00:00:15 #263 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #264 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #265 [Verbose] > │ ## empty3Tests │
00:00:15 #266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #267 [Verbose] >
00:00:15 #268 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #269 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #270 [Verbose] > │ Test: Empty3 │
00:00:15 #271 [Verbose] > │ │
00:00:15 #272 [Verbose] > │ Solution: (a, a) │
00:00:15 #273 [Verbose] > │ Test case 1. A. Time: 91L │
00:00:15 #274 [Verbose] > │ │
00:00:15 #275 [Verbose] > │ Solution: (a, a) │
00:00:15 #276 [Verbose] > │ Test case 1. A. Time: 56L │
00:00:15 #277 [Verbose] > │ │
00:00:15 #278 [Verbose] > │ Input | Expected | Result | Best │
00:00:15 #279 [Verbose] > │ --- | --- | --- | --- │
00:00:15 #280 [Verbose] > │ (a, a) | a | a | (1, 91) │
00:00:15 #281 [Verbose] > │ (a, a) | a | a | (1, 56) │
00:00:15 #282 [Verbose] > │ │
00:00:15 #283 [Verbose] > │ Averages │
00:00:15 #284 [Verbose] > │ Test case 1. Average Time: 73L │
00:00:15 #285 [Verbose] > │ │
00:00:15 #286 [Verbose] > │ Ranking │
00:00:15 #287 [Verbose] > │ Test case 1. Average Time: 73L │
00:00:15 #288 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #289 [Verbose] >
00:00:15 #290 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:15 #291 [Verbose] > //// test
00:00:15 #292 [Verbose] >
00:00:15 #293 [Verbose] > let solutions = [[
00:00:15 #294 [Verbose] > "A",
00:00:15 #295 [Verbose] > fun (a, _b) ->
00:00:15 #296 [Verbose] > a
00:00:15 #297 [Verbose] > ]]
00:00:15 #298 [Verbose] > let testCases = seq {
00:00:15 #299 [Verbose] > ("a", "a"), "a"
00:00:15 #300 [Verbose] > ("a", "a"), "a"
00:00:15 #301 [Verbose] > }
00:00:15 #302 [Verbose] > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:15 #303 [Verbose] > empty3Tests
00:00:15 #304 [Verbose] > |> sortResultList
00:00:16 #305 [Verbose] >
00:00:16 #306 [Verbose] > ╭─[ 947.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #307 [Verbose] > │ │
00:00:16 #308 [Verbose] > │ │
00:00:16 #309 [Verbose] > │ Test: empty3Tests │
00:00:16 #310 [Verbose] > │ │
00:00:16 #311 [Verbose] > │ Solution: (a, a) │
00:00:16 #312 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:16 #313 [Verbose] > │ │
00:00:16 #314 [Verbose] > │ Solution: (a, a) │
00:00:16 #315 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:16 #316 [Verbose] > │ │
00:00:16 #317 [Verbose] > │ Input | Expected | Result | Best │
00:00:16 #318 [Verbose] > │ --- | --- | --- | --- │
00:00:16 #319 [Verbose] > │ (a, a) | a | a | (1, 1) │
00:00:16 #320 [Verbose] > │ (a, a) | a | a | (1, 0) │
00:00:16 #321 [Verbose] > │ │
00:00:16 #322 [Verbose] > │ Average Ranking │
00:00:16 #323 [Verbose] > │ Test case 1. Average Time: 0L │
00:00:16 #324 [Verbose] > │ │
00:00:16 #325 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #326 [Verbose] >
00:00:16 #327 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #328 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #329 [Verbose] > │ ## empty2Tests │
00:00:16 #330 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #331 [Verbose] >
00:00:16 #332 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #333 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #334 [Verbose] > │ Test: Empty2 │
00:00:16 #335 [Verbose] > │ │
00:00:16 #336 [Verbose] > │ Solution: (a, a) │
00:00:16 #337 [Verbose] > │ Test case 1. A. Time: 59L │
00:00:16 #338 [Verbose] > │ │
00:00:16 #339 [Verbose] > │ Solution: (a, a) │
00:00:16 #340 [Verbose] > │ Test case 1. A. Time: 53L │
00:00:16 #341 [Verbose] > │ │
00:00:16 #342 [Verbose] > │ Input | Expected | Result | Best │
00:00:16 #343 [Verbose] > │ --- | --- | --- | --- │
00:00:16 #344 [Verbose] > │ (a, a) | a | a | (1, 59) │
00:00:16 #345 [Verbose] > │ (a, a) | a | a | (1, 53) │
00:00:16 #346 [Verbose] > │ │
00:00:16 #347 [Verbose] > │ Averages │
00:00:16 #348 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:16 #349 [Verbose] > │ │
00:00:16 #350 [Verbose] > │ Ranking │
00:00:16 #351 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:16 #352 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #353 [Verbose] >
00:00:16 #354 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:16 #355 [Verbose] > //// test
00:00:16 #356 [Verbose] >
00:00:16 #357 [Verbose] > let solutions = [[
00:00:16 #358 [Verbose] > "A",
00:00:16 #359 [Verbose] > fun (a, _b) ->
00:00:16 #360 [Verbose] > a
00:00:16 #361 [Verbose] > ]]
00:00:16 #362 [Verbose] > let testCases = seq {
00:00:16 #363 [Verbose] > ("a", "a"), "a"
00:00:16 #364 [Verbose] > ("a", "a"), "a"
00:00:16 #365 [Verbose] > }
00:00:16 #366 [Verbose] > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:16 #367 [Verbose] > empty2Tests
00:00:16 #368 [Verbose] > |> sortResultList
00:00:16 #369 [Verbose] >
00:00:16 #370 [Verbose] > ╭─[ 372.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #371 [Verbose] > │ │
00:00:16 #372 [Verbose] > │ │
00:00:16 #373 [Verbose] > │ Test: empty2Tests │
00:00:16 #374 [Verbose] > │ │
00:00:16 #375 [Verbose] > │ Solution: (a, a) │
00:00:16 #376 [Verbose] > │ Test case 1. A. Time: 2L │
00:00:16 #377 [Verbose] > │ │
00:00:16 #378 [Verbose] > │ Solution: (a, a) │
00:00:16 #379 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:16 #380 [Verbose] > │ │
00:00:16 #381 [Verbose] > │ Input | Expected | Result | Best │
00:00:16 #382 [Verbose] > │ --- | --- | --- | --- │
00:00:16 #383 [Verbose] > │ (a, a) | a | a | (1, 2) │
00:00:16 #384 [Verbose] > │ (a, a) | a | a | (1, 0) │
00:00:16 #385 [Verbose] > │ │
00:00:16 #386 [Verbose] > │ Average Ranking │
00:00:16 #387 [Verbose] > │ Test case 1. Average Time: 1L │
00:00:16 #388 [Verbose] > │ │
00:00:16 #389 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #390 [Verbose] >
00:00:16 #391 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #392 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #393 [Verbose] > │ ## emptyTests │
00:00:16 #394 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #395 [Verbose] >
00:00:16 #396 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #397 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #398 [Verbose] > │ Test: Empty │
00:00:16 #399 [Verbose] > │ │
00:00:16 #400 [Verbose] > │ Solution: 0 │
00:00:16 #401 [Verbose] > │ Test case 1. A. Time: 61L │
00:00:16 #402 [Verbose] > │ │
00:00:16 #403 [Verbose] > │ Solution: 2 │
00:00:16 #404 [Verbose] > │ Test case 1. A. Time: 62L │
00:00:16 #405 [Verbose] > │ │
00:00:16 #406 [Verbose] > │ Solution: 5 │
00:00:16 #407 [Verbose] > │ Test case 1. A. Time: 70L │
00:00:16 #408 [Verbose] > │ │
00:00:16 #409 [Verbose] > │ Input | Expected | Result | Best │
00:00:16 #410 [Verbose] > │ --- | --- | --- | --- │
00:00:16 #411 [Verbose] > │ 0 | 0 | 0 | (1, 61) │
00:00:16 #412 [Verbose] > │ 2 | 2 | 2 | (1, 62) │
00:00:16 #413 [Verbose] > │ 5 | 5 | 5 | (1, 70) │
00:00:16 #414 [Verbose] > │ │
00:00:16 #415 [Verbose] > │ Averages │
00:00:16 #416 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:16 #417 [Verbose] > │ │
00:00:16 #418 [Verbose] > │ Ranking │
00:00:16 #419 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:16 #420 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #421 [Verbose] >
00:00:16 #422 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:16 #423 [Verbose] > //// test
00:00:16 #424 [Verbose] >
00:00:16 #425 [Verbose] > let solutions = [[
00:00:16 #426 [Verbose] > "A",
00:00:16 #427 [Verbose] > fun n ->
00:00:16 #428 [Verbose] > n + 0
00:00:16 #429 [Verbose] > ]]
00:00:16 #430 [Verbose] > let testCases = seq {
00:00:16 #431 [Verbose] > 0, 0
00:00:16 #432 [Verbose] > 2, 2
00:00:16 #433 [Verbose] > 5, 5
00:00:16 #434 [Verbose] > }
00:00:16 #435 [Verbose] > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:16 #436 [Verbose] > emptyTests
00:00:16 #437 [Verbose] > |> sortResultList
00:00:17 #438 [Verbose] >
00:00:17 #439 [Verbose] > ╭─[ 755.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #440 [Verbose] > │ │
00:00:17 #441 [Verbose] > │ │
00:00:17 #442 [Verbose] > │ Test: emptyTests │
00:00:17 #443 [Verbose] > │ │
00:00:17 #444 [Verbose] > │ Solution: 0 │
00:00:17 #445 [Verbose] > │ Test case 1. A. Time: 4L │
00:00:17 #446 [Verbose] > │ │
00:00:17 #447 [Verbose] > │ Solution: 2 │
00:00:17 #448 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:17 #449 [Verbose] > │ │
00:00:17 #450 [Verbose] > │ Solution: 5 │
00:00:17 #451 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:17 #452 [Verbose] > │ │
00:00:17 #453 [Verbose] > │ Input | Expected | Result | Best │
00:00:17 #454 [Verbose] > │ --- | --- | --- | --- │
00:00:17 #455 [Verbose] > │ 0 | 0 | 0 | (1, 4) │
00:00:17 #456 [Verbose] > │ 2 | 2 | 2 | (1, 0) │
00:00:17 #457 [Verbose] > │ 5 | 5 | 5 | (1, 0) │
00:00:17 #458 [Verbose] > │ │
00:00:17 #459 [Verbose] > │ Average Ranking │
00:00:17 #460 [Verbose] > │ Test case 1. Average Time: 1L │
00:00:17 #461 [Verbose] > │ │
00:00:17 #462 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #463 [Verbose] >
00:00:17 #464 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #465 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #466 [Verbose] > │ ## uniqueLettersTests │
00:00:17 #467 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #468 [Verbose] >
00:00:17 #469 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #470 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #471 [Verbose] > │ Test: UniqueLetters │
00:00:17 #472 [Verbose] > │ │
00:00:17 #473 [Verbose] > │ Solution: abc │
00:00:17 #474 [Verbose] > │ Test case 1. A. Time: 1512L │
00:00:17 #475 [Verbose] > │ Test case 2. B. Time: 1947L │
00:00:17 #476 [Verbose] > │ Test case 3. C. Time: 2023L │
00:00:17 #477 [Verbose] > │ Test case 4. D. Time: 1358L │
00:00:17 #478 [Verbose] > │ Test case 5. E. Time: 1321L │
00:00:17 #479 [Verbose] > │ Test case 6. F. Time: 1346L │
00:00:17 #480 [Verbose] > │ Test case 7. G. Time: 1304L │
00:00:17 #481 [Verbose] > │ Test case 8. H. Time: 1383L │
00:00:17 #482 [Verbose] > │ Test case 9. I. Time: 1495L │
00:00:17 #483 [Verbose] > │ Test case 10. J. Time: 1245L │
00:00:17 #484 [Verbose] > │ Test case 11. K. Time: 1219L │
00:00:17 #485 [Verbose] > │ │
00:00:17 #486 [Verbose] > │ Solution: accabb │
00:00:17 #487 [Verbose] > │ Test case 1. A. Time: 1648L │
00:00:17 #488 [Verbose] > │ Test case 2. B. Time: 2061L │
00:00:17 #489 [Verbose] > │ Test case 3. C. Time: 2413L │
00:00:17 #490 [Verbose] > │ Test case 4. D. Time: 1561L │
00:00:17 #491 [Verbose] > │ Test case 5. E. Time: 1593L │
00:00:17 #492 [Verbose] > │ Test case 6. F. Time: 1518L │
00:00:17 #493 [Verbose] > │ Test case 7. G. Time: 1415L │
00:00:17 #494 [Verbose] > │ Test case 8. H. Time: 1510L │
00:00:17 #495 [Verbose] > │ Test case 9. I. Time: 1445L │
00:00:17 #496 [Verbose] > │ Test case 10. J. Time: 1636L │
00:00:17 #497 [Verbose] > │ Test case 11. K. Time: 1317L │
00:00:17 #498 [Verbose] > │ │
00:00:17 #499 [Verbose] > │ Solution: pprrqqpp │
00:00:17 #500 [Verbose] > │ Test case 1. A. Time: 2255L │
00:00:17 #501 [Verbose] > │ Test case 2. B. Time: 2408L │
00:00:17 #502 [Verbose] > │ Test case 3. C. Time: 2393L │
00:00:17 #503 [Verbose] > │ Test case 4. D. Time: 1675L │
00:00:17 #504 [Verbose] > │ Test case 5. E. Time: 1911L │
00:00:17 #505 [Verbose] > │ Test case 6. F. Time: 2126L │
00:00:17 #506 [Verbose] > │ Test case 7. G. Time: 1504L │
00:00:17 #507 [Verbose] > │ Test case 8. H. Time: 1715L │
00:00:17 #508 [Verbose] > │ Test case 9. I. Time: 1537L │
00:00:17 #509 [Verbose] > │ Test case 10. J. Time: 1522L │
00:00:17 #510 [Verbose] > │ Test case 11. K. Time: 1322L │
00:00:17 #511 [Verbose] > │ │
00:00:17 #512 [Verbose] > │ Solution: │
00:00:17 #513 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:17 #514 [Verbose] > │ bbb │
00:00:17 #515 [Verbose] > │ Test case 1. A. Time: 13073L │
00:00:17 #516 [Verbose] > │ Test case 2. B. Time: 11519L │
00:00:17 #517 [Verbose] > │ Test case 3. C. Time: 8373L │
00:00:17 #518 [Verbose] > │ Test case 4. D. Time: 5860L │
00:00:17 #519 [Verbose] > │ Test case 5. E. Time: 6490L │
00:00:17 #520 [Verbose] > │ Test case 6. F. Time: 6325L │
00:00:17 #521 [Verbose] > │ Test case 7. G. Time: 5799L │
00:00:17 #522 [Verbose] > │ Test case 8. H. Time: 7099L │
00:00:17 #523 [Verbose] > │ Test case 9. I. Time: 6133L │
00:00:17 #524 [Verbose] > │ Test case 10. J. Time: 5993L │
00:00:17 #525 [Verbose] > │ Test case 11. K. Time: 2040L │
00:00:17 #526 [Verbose] > │ │
00:00:17 #527 [Verbose] > │ Input │
00:00:17 #528 [Verbose] > │ | Expected | Result | Best │
00:00:17 #529 [Verbose] > │ --- │
00:00:17 #530 [Verbose] > │ │
00:00:17 #531 [Verbose] > │ | --- | --- | --- │
00:00:17 #532 [Verbose] > │ abc │
00:00:17 #533 [Verbose] > │ │
00:00:17 #534 [Verbose] > │ | abc | abc | (11, 1219) │
00:00:17 #535 [Verbose] > │ accabb │
00:00:17 #536 [Verbose] > │ | acb | acb | (11, 1317) │
00:00:17 #537 [Verbose] > │ pprrqqpp │
00:00:17 #538 [Verbose] > │ | prq | prq | (11, 1322) │
00:00:17 #539 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:17 #540 [Verbose] > │ bbb | acb | acb | (11, 2040) │
00:00:17 #541 [Verbose] > │ │
00:00:17 #542 [Verbose] > │ Averages │
00:00:17 #543 [Verbose] > │ Test case 1. Average Time: 4622L │
00:00:17 #544 [Verbose] > │ Test case 2. Average Time: 4483L │
00:00:17 #545 [Verbose] > │ Test case 3. Average Time: 3800L │
00:00:17 #546 [Verbose] > │ Test case 4. Average Time: 2613L │
00:00:17 #547 [Verbose] > │ Test case 5. Average Time: 2828L │
00:00:17 #548 [Verbose] > │ Test case 6. Average Time: 2828L │
00:00:17 #549 [Verbose] > │ Test case 7. Average Time: 2505L │
00:00:17 #550 [Verbose] > │ Test case 8. Average Time: 2926L │
00:00:17 #551 [Verbose] > │ Test case 9. Average Time: 2652L │
00:00:17 #552 [Verbose] > │ Test case 10. Average Time: 2599L │
00:00:17 #553 [Verbose] > │ Test case 11. Average Time: 1474L │
00:00:17 #554 [Verbose] > │ │
00:00:17 #555 [Verbose] > │ Ranking │
00:00:17 #556 [Verbose] > │ Test case 1. Average Time: 4622L │
00:00:17 #557 [Verbose] > │ Test case 2. Average Time: 4483L │
00:00:17 #558 [Verbose] > │ Test case 3. Average Time: 3800L │
00:00:17 #559 [Verbose] > │ Test case 8. Average Time: 2926L │
00:00:17 #560 [Verbose] > │ Test case 5. Average Time: 2828L │
00:00:17 #561 [Verbose] > │ Test case 6. Average Time: 2828L │
00:00:17 #562 [Verbose] > │ Test case 9. Average Time: 2652L │
00:00:17 #563 [Verbose] > │ Test case 4. Average Time: 2613L │
00:00:17 #564 [Verbose] > │ Test case 10. Average Time: 2599L │
00:00:17 #565 [Verbose] > │ Test case 7. Average Time: 2505L │
00:00:17 #566 [Verbose] > │ Test case 11. Average Time: 1474L │
00:00:17 #567 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #568 [Verbose] >
00:00:17 #569 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:17 #570 [Verbose] > //// test
00:00:17 #571 [Verbose] >
00:00:17 #572 [Verbose] > let solutions = [[
00:00:17 #573 [Verbose] > "A",
00:00:17 #574 [Verbose] > fun input ->
00:00:17 #575 [Verbose] > input
00:00:17 #576 [Verbose] > |> Seq.toList
00:00:17 #577 [Verbose] > |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:17 #578 [Verbose] > x ]]) [[]]
00:00:17 #579 [Verbose] > |> Seq.toArray
00:00:17 #580 [Verbose] > |> String
00:00:17 #581 [Verbose] >
00:00:17 #582 [Verbose] > "B",
00:00:17 #583 [Verbose] > fun input ->
00:00:17 #584 [Verbose] > input
00:00:17 #585 [Verbose] > |> Seq.rev
00:00:17 #586 [Verbose] > |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:17 #587 [Verbose] > acc else x :: acc) list [[]]
00:00:17 #588 [Verbose] > |> Seq.rev
00:00:17 #589 [Verbose] > |> Seq.toArray
00:00:17 #590 [Verbose] > |> String
00:00:17 #591 [Verbose] >
00:00:17 #592 [Verbose] > "C",
00:00:17 #593 [Verbose] > fun input ->
00:00:17 #594 [Verbose] > input
00:00:17 #595 [Verbose] > |> Seq.rev
00:00:17 #596 [Verbose] > |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:17 #597 [Verbose] > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:17 #598 [Verbose] > |> snd
00:00:17 #599 [Verbose] > |> Seq.rev
00:00:17 #600 [Verbose] > |> Seq.toArray
00:00:17 #601 [Verbose] > |> String
00:00:17 #602 [Verbose] >
00:00:17 #603 [Verbose] > "D",
00:00:17 #604 [Verbose] > fun input ->
00:00:17 #605 [Verbose] > input
00:00:17 #606 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:17 #607 [Verbose] > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:17 #608 [Verbose] > |> snd
00:00:17 #609 [Verbose] > |> String
00:00:17 #610 [Verbose] >
00:00:17 #611 [Verbose] > "E",
00:00:17 #612 [Verbose] > fun input ->
00:00:17 #613 [Verbose] > input
00:00:17 #614 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:17 #615 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:17 #616 [Verbose] > |> snd
00:00:17 #617 [Verbose] > |> List.rev
00:00:17 #618 [Verbose] > |> List.toArray
00:00:17 #619 [Verbose] > |> String
00:00:17 #620 [Verbose] >
00:00:17 #621 [Verbose] > "F",
00:00:17 #622 [Verbose] > fun input ->
00:00:17 #623 [Verbose] > input
00:00:17 #624 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:17 #625 [Verbose] > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:17 #626 [Verbose] > |> snd
00:00:17 #627 [Verbose] > |> List.toArray
00:00:17 #628 [Verbose] > |> String
00:00:17 #629 [Verbose] >
00:00:17 #630 [Verbose] > "G",
00:00:17 #631 [Verbose] > fun input ->
00:00:17 #632 [Verbose] > input
00:00:17 #633 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:17 #634 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:17 #635 [Verbose] > |> snd
00:00:17 #636 [Verbose] > |> List.toArray
00:00:17 #637 [Verbose] > |> Array.rev
00:00:17 #638 [Verbose] > |> String
00:00:17 #639 [Verbose] >
00:00:17 #640 [Verbose] > "H",
00:00:17 #641 [Verbose] > fun input ->
00:00:17 #642 [Verbose] > input
00:00:17 #643 [Verbose] > |> Seq.toList
00:00:17 #644 [Verbose] > |> fun list ->
00:00:17 #645 [Verbose] > let rec loop set = function
00:00:17 #646 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:17 #647 [Verbose] > | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:17 #648 [Verbose] > | [[]] -> [[]]
00:00:17 #649 [Verbose] > loop Set.empty list
00:00:17 #650 [Verbose] > |> List.rev
00:00:17 #651 [Verbose] > |> List.toArray
00:00:17 #652 [Verbose] > |> String
00:00:17 #653 [Verbose] >
00:00:17 #654 [Verbose] > "I",
00:00:17 #655 [Verbose] > fun input ->
00:00:17 #656 [Verbose] > input
00:00:17 #657 [Verbose] > |> Seq.toList
00:00:17 #658 [Verbose] > |> fun list ->
00:00:17 #659 [Verbose] > let rec loop set = function
00:00:17 #660 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:17 #661 [Verbose] > | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:17 #662 [Verbose] > head |]]
00:00:17 #663 [Verbose] > | [[]] -> [[||]]
00:00:17 #664 [Verbose] > loop Set.empty list
00:00:17 #665 [Verbose] > |> String
00:00:17 #666 [Verbose] >
00:00:17 #667 [Verbose] > "J",
00:00:17 #668 [Verbose] > fun input ->
00:00:17 #669 [Verbose] > input
00:00:17 #670 [Verbose] > |> Seq.toList
00:00:17 #671 [Verbose] > |> fun list ->
00:00:17 #672 [Verbose] > let rec loop set = function
00:00:17 #673 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:17 #674 [Verbose] > | head :: tail -> head :: loop (set.Add head) tail
00:00:17 #675 [Verbose] > | [[]] -> [[]]
00:00:17 #676 [Verbose] > loop Set.empty list
00:00:17 #677 [Verbose] > |> List.toArray
00:00:17 #678 [Verbose] > |> String
00:00:17 #679 [Verbose] >
00:00:17 #680 [Verbose] > "K",
00:00:17 #681 [Verbose] > fun input ->
00:00:17 #682 [Verbose] > input
00:00:17 #683 [Verbose] > |> Seq.distinct
00:00:17 #684 [Verbose] > |> Seq.toArray
00:00:17 #685 [Verbose] > |> String
00:00:17 #686 [Verbose] > ]]
00:00:17 #687 [Verbose] > let testCases = seq {
00:00:17 #688 [Verbose] > "abc", "abc"
00:00:17 #689 [Verbose] > "accabb", "acb"
00:00:17 #690 [Verbose] > "pprrqqpp", "prq"
00:00:17 #691 [Verbose] >
00:00:17 #692 [Verbose] > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:17 #693 [Verbose] > ", "acb"
00:00:17 #694 [Verbose] > }
00:00:17 #695 [Verbose] > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:17 #696 [Verbose] > testCases
00:00:17 #697 [Verbose] > uniqueLettersTests
00:00:17 #698 [Verbose] > |> sortResultList
00:00:25 #699 [Verbose] >
00:00:25 #700 [Verbose] > ╭─[ 8.23s - stdout ]───────────────────────────────────────────────────────────╮
00:00:25 #701 [Verbose] > │ │
00:00:25 #702 [Verbose] > │ │
00:00:25 #703 [Verbose] > │ Test: uniqueLettersTests │
00:00:25 #704 [Verbose] > │ │
00:00:25 #705 [Verbose] > │ Solution: abc │
00:00:25 #706 [Verbose] > │ Test case 1. A. Time: 8L │
00:00:25 #707 [Verbose] > │ Test case 2. B. Time: 7L │
00:00:25 #708 [Verbose] > │ Test case 3. C. Time: 8L │
00:00:25 #709 [Verbose] > │ Test case 4. D. Time: 2L │
00:00:25 #710 [Verbose] > │ Test case 5. E. Time: 2L │
00:00:25 #711 [Verbose] > │ Test case 6. F. Time: 2L │
00:00:25 #712 [Verbose] > │ Test case 7. G. Time: 2L │
00:00:25 #713 [Verbose] > │ Test case 8. H. Time: 3L │
00:00:25 #714 [Verbose] > │ Test case 9. I. Time: 6L │
00:00:25 #715 [Verbose] > │ Test case 10. J. Time: 3L │
00:00:25 #716 [Verbose] > │ Test case 11. K. Time: 4L │
00:00:25 #717 [Verbose] > │ │
00:00:25 #718 [Verbose] > │ Solution: accabb │
00:00:25 #719 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:25 #720 [Verbose] > │ Test case 2. B. Time: 2L │
00:00:25 #721 [Verbose] > │ Test case 3. C. Time: 2L │
00:00:25 #722 [Verbose] > │ Test case 4. D. Time: 1L │
00:00:25 #723 [Verbose] > │ Test case 5. E. Time: 1L │
00:00:25 #724 [Verbose] > │ Test case 6. F. Time: 2L │
00:00:25 #725 [Verbose] > │ Test case 7. G. Time: 2L │
00:00:25 #726 [Verbose] > │ Test case 8. H. Time: 1L │
00:00:25 #727 [Verbose] > │ Test case 9. I. Time: 1L │
00:00:25 #728 [Verbose] > │ Test case 10. J. Time: 1L │
00:00:25 #729 [Verbose] > │ Test case 11. K. Time: 1L │
00:00:25 #730 [Verbose] > │ │
00:00:25 #731 [Verbose] > │ Solution: pprrqqpp │
00:00:25 #732 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:25 #733 [Verbose] > │ Test case 2. B. Time: 1L │
00:00:25 #734 [Verbose] > │ Test case 3. C. Time: 2L │
00:00:25 #735 [Verbose] > │ Test case 4. D. Time: 1L │
00:00:25 #736 [Verbose] > │ Test case 5. E. Time: 1L │
00:00:25 #737 [Verbose] > │ Test case 6. F. Time: 1L │
00:00:25 #738 [Verbose] > │ Test case 7. G. Time: 2L │
00:00:25 #739 [Verbose] > │ Test case 8. H. Time: 1L │
00:00:25 #740 [Verbose] > │ Test case 9. I. Time: 1L │
00:00:25 #741 [Verbose] > │ Test case 10. J. Time: 2L │
00:00:25 #742 [Verbose] > │ Test case 11. K. Time: 1L │
00:00:25 #743 [Verbose] > │ │
00:00:25 #744 [Verbose] > │ Solution: │
00:00:25 #745 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:25 #746 [Verbose] > │ bbb │
00:00:25 #747 [Verbose] > │ Test case 1. A. Time: 15L │
00:00:25 #748 [Verbose] > │ Test case 2. B. Time: 13L │
00:00:25 #749 [Verbose] > │ Test case 3. C. Time: 17L │
00:00:25 #750 [Verbose] > │ Test case 4. D. Time: 10L │
00:00:25 #751 [Verbose] > │ Test case 5. E. Time: 17L │
00:00:25 #752 [Verbose] > │ Test case 6. F. Time: 11L │
00:00:25 #753 [Verbose] > │ Test case 7. G. Time: 8L │
00:00:25 #754 [Verbose] > │ Test case 8. H. Time: 10L │
00:00:25 #755 [Verbose] > │ Test case 9. I. Time: 9L │
00:00:25 #756 [Verbose] > │ Test case 10. J. Time: 10L │
00:00:25 #757 [Verbose] > │ Test case 11. K. Time: 4L │
00:00:25 #758 [Verbose] > │ │
00:00:25 #759 [Verbose] > │ Input │
00:00:25 #760 [Verbose] > │ | Expected | Result | Best │
00:00:25 #761 [Verbose] > │ --- │
00:00:25 #762 [Verbose] > │ | --- | --- | --- │
00:00:25 #763 [Verbose] > │ abc │
00:00:25 #764 [Verbose] > │ | abc | abc | (4, 2) │
00:00:25 #765 [Verbose] > │ accabb │
00:00:25 #766 [Verbose] > │ | acb | acb | (1, 1) │
00:00:25 #767 [Verbose] > │ pprrqqpp │
00:00:25 #768 [Verbose] > │ | prq | prq | (1, 1) │
00:00:25 #769 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:25 #770 [Verbose] > │ bbb | acb | acb | (11, 4) │
00:00:25 #771 [Verbose] > │ │
00:00:25 #772 [Verbose] > │ Average Ranking │
00:00:25 #773 [Verbose] > │ Test case 11. Average Time: 2L │
00:00:25 #774 [Verbose] > │ Test case 4. Average Time: 3L │
00:00:25 #775 [Verbose] > │ Test case 7. Average Time: 3L │
00:00:25 #776 [Verbose] > │ Test case 8. Average Time: 3L │
00:00:25 #777 [Verbose] > │ Test case 6. Average Time: 4L │
00:00:25 #778 [Verbose] > │ Test case 9. Average Time: 4L │
00:00:25 #779 [Verbose] > │ Test case 10. Average Time: 4L │
00:00:25 #780 [Verbose] > │ Test case 2. Average Time: 5L │
00:00:25 #781 [Verbose] > │ Test case 5. Average Time: 5L │
00:00:25 #782 [Verbose] > │ Test case 1. Average Time: 6L │
00:00:25 #783 [Verbose] > │ Test case 3. Average Time: 7L │
00:00:25 #784 [Verbose] > │ │
00:00:25 #785 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #786 [Verbose] >
00:00:25 #787 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 #788 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 #789 [Verbose] > │ ## rotateStringsTests │
00:00:25 #790 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #791 [Verbose] >
00:00:25 #792 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 #793 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 #794 [Verbose] > │ https://www.hackerrank.com/challenges/rotate-string/forum │
00:00:25 #795 [Verbose] > │ │
00:00:25 #796 [Verbose] > │ Test: RotateStrings │
00:00:25 #797 [Verbose] > │ │
00:00:25 #798 [Verbose] > │ Solution: abc │
00:00:25 #799 [Verbose] > │ Test case 1. A. Time: 1842L │
00:00:25 #800 [Verbose] > │ Test case 2. B. Time: 1846L │
00:00:25 #801 [Verbose] > │ Test case 3. C. Time: 1936L │
00:00:25 #802 [Verbose] > │ Test case 4. CA. Time: 2224L │
00:00:25 #803 [Verbose] > │ Test case 5. CB. Time: 2329L │
00:00:25 #804 [Verbose] > │ Test case 6. D. Time: 2474L │
00:00:25 #805 [Verbose] > │ Test case 7. E. Time: 1664L │
00:00:25 #806 [Verbose] > │ Test case 8. F. Time: 1517L │
00:00:25 #807 [Verbose] > │ Test case 9. FA. Time: 1651L │
00:00:25 #808 [Verbose] > │ Test case 10. FB. Time: 3764L │
00:00:25 #809 [Verbose] > │ Test case 11. FC. Time: 5415L │
00:00:25 #810 [Verbose] > │ │
00:00:25 #811 [Verbose] > │ Solution: abcde │
00:00:25 #812 [Verbose] > │ Test case 1. A. Time: 3356L │
00:00:25 #813 [Verbose] > │ Test case 2. B. Time: 2592L │
00:00:25 #814 [Verbose] > │ Test case 3. C. Time: 2346L │
00:00:25 #815 [Verbose] > │ Test case 4. CA. Time: 2997L │
00:00:25 #816 [Verbose] > │ Test case 5. CB. Time: 3061L │
00:00:25 #817 [Verbose] > │ Test case 6. D. Time: 4051L │
00:00:25 #818 [Verbose] > │ Test case 7. E. Time: 1905L │
00:00:25 #819 [Verbose] > │ Test case 8. F. Time: 1771L │
00:00:25 #820 [Verbose] > │ Test case 9. FA. Time: 2175L │
00:00:25 #821 [Verbose] > │ Test case 10. FB. Time: 3275L │
00:00:25 #822 [Verbose] > │ Test case 11. FC. Time: 5266L │
00:00:25 #823 [Verbose] > │ │
00:00:25 #824 [Verbose] > │ Solution: abcdefghi │
00:00:25 #825 [Verbose] > │ Test case 1. A. Time: 4492L │
00:00:25 #826 [Verbose] > │ Test case 2. B. Time: 3526L │
00:00:25 #827 [Verbose] > │ Test case 3. C. Time: 3583L │
00:00:25 #828 [Verbose] > │ Test case 4. CA. Time: 3711L │
00:00:25 #829 [Verbose] > │ Test case 5. CB. Time: 4783L │
00:00:25 #830 [Verbose] > │ Test case 6. D. Time: 7557L │
00:00:25 #831 [Verbose] > │ Test case 7. E. Time: 3452L │
00:00:25 #832 [Verbose] > │ Test case 8. F. Time: 3050L │
00:00:25 #833 [Verbose] > │ Test case 9. FA. Time: 3275L │
00:00:25 #834 [Verbose] > │ Test case 10. FB. Time: 4635L │
00:00:25 #835 [Verbose] > │ Test case 11. FC. Time: 5616L │
00:00:25 #836 [Verbose] > │ │
00:00:25 #837 [Verbose] > │ Solution: abab │
00:00:25 #838 [Verbose] > │ Test case 1. A. Time: 2093L │
00:00:25 #839 [Verbose] > │ Test case 2. B. Time: 1843L │
00:00:25 #840 [Verbose] > │ Test case 3. C. Time: 1746L │
00:00:25 #841 [Verbose] > │ Test case 4. CA. Time: 2085L │
00:00:25 #842 [Verbose] > │ Test case 5. CB. Time: 2139L │
00:00:25 #843 [Verbose] > │ Test case 6. D. Time: 2095L │
00:00:25 #844 [Verbose] > │ Test case 7. E. Time: 1723L │
00:00:25 #845 [Verbose] > │ Test case 8. F. Time: 1558L │
00:00:25 #846 [Verbose] > │ Test case 9. FA. Time: 1620L │
00:00:25 #847 [Verbose] > │ Test case 10. FB. Time: 2319L │
00:00:25 #848 [Verbose] > │ Test case 11. FC. Time: 3918L │
00:00:25 #849 [Verbose] > │ │
00:00:25 #850 [Verbose] > │ Solution: aa │
00:00:25 #851 [Verbose] > │ Test case 1. A. Time: 1107L │
00:00:25 #852 [Verbose] > │ Test case 2. B. Time: 1241L │
00:00:25 #853 [Verbose] > │ Test case 3. C. Time: 1183L │
00:00:25 #854 [Verbose] > │ Test case 4. CA. Time: 1563L │
00:00:25 #855 [Verbose] > │ Test case 5. CB. Time: 1525L │
00:00:25 #856 [Verbose] > │ Test case 6. D. Time: 1591L │
00:00:25 #857 [Verbose] > │ Test case 7. E. Time: 1327L │
00:00:25 #858 [Verbose] > │ Test case 8. F. Time: 1151L │
00:00:25 #859 [Verbose] > │ Test case 9. FA. Time: 1180L │
00:00:25 #860 [Verbose] > │ Test case 10. FB. Time: 1733L │
00:00:25 #861 [Verbose] > │ Test case 11. FC. Time: 2817L │
00:00:25 #862 [Verbose] > │ │
00:00:25 #863 [Verbose] > │ Solution: z │
00:00:25 #864 [Verbose] > │ Test case 1. A. Time: 816L │
00:00:25 #865 [Verbose] > │ Test case 2. B. Time: 745L │
00:00:25 #866 [Verbose] > │ Test case 3. C. Time: 928L │
00:00:25 #867 [Verbose] > │ Test case 4. CA. Time: 1375L │
00:00:25 #868 [Verbose] > │ Test case 5. CB. Time: 1029L │
00:00:25 #869 [Verbose] > │ Test case 6. D. Time: 852L │
00:00:25 #870 [Verbose] > │ Test case 7. E. Time: 712L │
00:00:25 #871 [Verbose] > │ Test case 8. F. Time: 263L │
00:00:25 #872 [Verbose] > │ Test case 9. FA. Time: 232L │
00:00:25 #873 [Verbose] > │ Test case 10. FB. Time: 773L │
00:00:25 #874 [Verbose] > │ Test case 11. FC. Time: 1789L │
00:00:25 #875 [Verbose] > │ │
00:00:25 #876 [Verbose] > │ Input | Expected │
00:00:25 #877 [Verbose] > │ │
00:00:25 #878 [Verbose] > │ | Result │
00:00:25 #879 [Verbose] > │ │
00:00:25 #880 [Verbose] > │ | Best │
00:00:25 #881 [Verbose] > │ --- | --- │
00:00:25 #882 [Verbose] > │ │
00:00:25 #883 [Verbose] > │ | --- │
00:00:25 #884 [Verbose] > │ │
00:00:25 #885 [Verbose] > │ | --- │
00:00:25 #886 [Verbose] > │ abc | bca cab abc │
00:00:25 #887 [Verbose] > │ │
00:00:25 #888 [Verbose] > │ | bca cab abc │
00:00:25 #889 [Verbose] > │ │
00:00:25 #890 [Verbose] > │ | (8, 1517) │
00:00:25 #891 [Verbose] > │ abcde | bcdea cdeab deabc eabcd abcde │
00:00:25 #892 [Verbose] > │ | bcdea cdeab deabc eabcd abcde │
00:00:25 #893 [Verbose] > │ | (8, 1771) │
00:00:25 #894 [Verbose] > │ abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:00:25 #895 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi | bcdefghia cdefghiab │
00:00:25 #896 [Verbose] > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi │
00:00:25 #897 [Verbose] > │ | (8, 3050) │
00:00:25 #898 [Verbose] > │ abab | baba abab baba abab │
00:00:25 #899 [Verbose] > │ │
00:00:25 #900 [Verbose] > │ | baba abab baba abab │
00:00:25 #901 [Verbose] > │ │
00:00:25 #902 [Verbose] > │ | (8, 1558) │
00:00:25 #903 [Verbose] > │ aa | aa aa │
00:00:25 #904 [Verbose] > │ │
00:00:25 #905 [Verbose] > │ | aa aa │
00:00:25 #906 [Verbose] > │ │
00:00:25 #907 [Verbose] > │ | (1, 1107) │
00:00:25 #908 [Verbose] > │ z | z │
00:00:25 #909 [Verbose] > │ │
00:00:25 #910 [Verbose] > │ | z │
00:00:25 #911 [Verbose] > │ │
00:00:25 #912 [Verbose] > │ | (9, 232) │
00:00:25 #913 [Verbose] > │ │
00:00:25 #914 [Verbose] > │ Averages │
00:00:25 #915 [Verbose] > │ Test case 1. Average Time: 2284L │
00:00:25 #916 [Verbose] > │ Test case 2. Average Time: 1965L │
00:00:25 #917 [Verbose] > │ Test case 3. Average Time: 1953L │
00:00:25 #918 [Verbose] > │ Test case 4. Average Time: 2325L │
00:00:25 #919 [Verbose] > │ Test case 5. Average Time: 2477L │
00:00:25 #920 [Verbose] > │ Test case 6. Average Time: 3103L │
00:00:25 #921 [Verbose] > │ Test case 7. Average Time: 1797L │
00:00:25 #922 [Verbose] > │ Test case 8. Average Time: 1551L │
00:00:25 #923 [Verbose] > │ Test case 9. Average Time: 1688L │
00:00:25 #924 [Verbose] > │ Test case 10. Average Time: 2749L │
00:00:25 #925 [Verbose] > │ Test case 11. Average Time: 4136L │
00:00:25 #926 [Verbose] > │ │
00:00:25 #927 [Verbose] > │ Ranking │
00:00:25 #928 [Verbose] > │ Test case 11. Average Time: 4136L │
00:00:25 #929 [Verbose] > │ Test case 6. Average Time: 3103L │
00:00:25 #930 [Verbose] > │ Test case 10. Average Time: 2749L │
00:00:25 #931 [Verbose] > │ Test case 5. Average Time: 2477L │
00:00:25 #932 [Verbose] > │ Test case 4. Average Time: 2325L │
00:00:25 #933 [Verbose] > │ Test case 1. Average Time: 2284L │
00:00:25 #934 [Verbose] > │ Test case 2. Average Time: 1965L │
00:00:25 #935 [Verbose] > │ Test case 3. Average Time: 1953L │
00:00:25 #936 [Verbose] > │ Test case 7. Average Time: 1797L │
00:00:25 #937 [Verbose] > │ Test case 9. Average Time: 1688L │
00:00:25 #938 [Verbose] > │ Test case 8. Average Time: 1551L │
00:00:25 #939 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #940 [Verbose] >
00:00:25 #941 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 #942 [Verbose] > //// test
00:00:26 #943 [Verbose] >
00:00:26 #944 [Verbose] > let solutions = [[
00:00:26 #945 [Verbose] > "A",
00:00:26 #946 [Verbose] > fun (input: string) ->
00:00:26 #947 [Verbose] > let resultList =
00:00:26 #948 [Verbose] > List.fold (fun acc x ->
00:00:26 #949 [Verbose] > let rotate (text: string) (letter: string) = text.Substring (1,
00:00:26 #950 [Verbose] > input.Length - 1) + letter
00:00:26 #951 [Verbose] > [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:00:26 #952 [Verbose] > ]] @ acc
00:00:26 #953 [Verbose] > ) [[]] (Seq.toList input)
00:00:26 #954 [Verbose] >
00:00:26 #955 [Verbose] > (resultList, "")
00:00:26 #956 [Verbose] > ||> List.foldBack (fun acc x -> x + acc + " ")
00:00:26 #957 [Verbose] > |> _.TrimEnd()
00:00:26 #958 [Verbose] >
00:00:26 #959 [Verbose] > "B",
00:00:26 #960 [Verbose] > fun input ->
00:00:26 #961 [Verbose] > input
00:00:26 #962 [Verbose] > |> Seq.toList
00:00:26 #963 [Verbose] > |> List.fold (fun (acc: string list) letter ->
00:00:26 #964 [Verbose] > let last =
00:00:26 #965 [Verbose] > if acc.IsEmpty
00:00:26 #966 [Verbose] > then input
00:00:26 #967 [Verbose] > else acc.Head
00:00:26 #968 [Verbose] >
00:00:26 #969 [Verbose] > let item = last.[[1 .. input.Length - 1]] + string letter
00:00:26 #970 [Verbose] >
00:00:26 #971 [Verbose] > item :: acc
00:00:26 #972 [Verbose] > ) [[]]
00:00:26 #973 [Verbose] > |> List.rev
00:00:26 #974 [Verbose] > |> String.concat " "
00:00:26 #975 [Verbose] >
00:00:26 #976 [Verbose] > "C",
00:00:26 #977 [Verbose] > fun input ->
00:00:26 #978 [Verbose] > input
00:00:26 #979 [Verbose] > |> Seq.toList
00:00:26 #980 [Verbose] > |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:26 #981 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:26 #982 [Verbose] > |> List.rev
00:00:26 #983 [Verbose] > |> List.skip 1
00:00:26 #984 [Verbose] > |> String.concat " "
00:00:26 #985 [Verbose] >
00:00:26 #986 [Verbose] > "CA",
00:00:26 #987 [Verbose] > fun input ->
00:00:26 #988 [Verbose] > input
00:00:26 #989 [Verbose] > |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:26 #990 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:26 #991 [Verbose] > |> Seq.rev
00:00:26 #992 [Verbose] > |> Seq.skip 1
00:00:26 #993 [Verbose] > |> String.concat " "
00:00:26 #994 [Verbose] >
00:00:26 #995 [Verbose] > "CB",
00:00:26 #996 [Verbose] > fun input ->
00:00:26 #997 [Verbose] > input
00:00:26 #998 [Verbose] > |> Seq.toArray
00:00:26 #999 [Verbose] > |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:00:26 #1000 [Verbose] > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:00:26 #1001 [Verbose] > |> Array.rev
00:00:26 #1002 [Verbose] > |> Array.skip 1
00:00:26 #1003 [Verbose] > |> String.concat " "
00:00:26 #1004 [Verbose] >
00:00:26 #1005 [Verbose] > "D",
00:00:26 #1006 [Verbose] > fun input ->
00:00:26 #1007 [Verbose] > input
00:00:26 #1008 [Verbose] > |> Seq.toList
00:00:26 #1009 [Verbose] > |> fun list ->
00:00:26 #1010 [Verbose] > let rec loop (acc: char list list) = function
00:00:26 #1011 [Verbose] > | _ when acc.Length = list.Length -> acc
00:00:26 #1012 [Verbose] > | head :: tail ->
00:00:26 #1013 [Verbose] > let item = tail @ [[ head ]]
00:00:26 #1014 [Verbose] > loop (item :: acc) item
00:00:26 #1015 [Verbose] > | [[]] -> [[]]
00:00:26 #1016 [Verbose] > loop [[]] list
00:00:26 #1017 [Verbose] > |> List.rev
00:00:26 #1018 [Verbose] > |> List.map (List.toArray >> String)
00:00:26 #1019 [Verbose] > |> String.concat " "
00:00:26 #1020 [Verbose] >
00:00:26 #1021 [Verbose] > "E",
00:00:26 #1022 [Verbose] > fun input ->
00:00:26 #1023 [Verbose] > input
00:00:26 #1024 [Verbose] > |> Seq.toList
00:00:26 #1025 [Verbose] > |> fun list ->
00:00:26 #1026 [Verbose] > let rec loop (last: string) = function
00:00:26 #1027 [Verbose] > | head :: tail ->
00:00:26 #1028 [Verbose] > let item = last.[[1 .. input.Length - 1]] + string head
00:00:26 #1029 [Verbose] > item :: loop item tail
00:00:26 #1030 [Verbose] > | [[]] -> [[]]
00:00:26 #1031 [Verbose] > loop input list
00:00:26 #1032 [Verbose] > |> String.concat " "
00:00:26 #1033 [Verbose] >
00:00:26 #1034 [Verbose] > "F",
00:00:26 #1035 [Verbose] > fun input ->
00:00:26 #1036 [Verbose] > Array.singleton 0
00:00:26 #1037 [Verbose] > |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:26 #1038 [Verbose] > |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:26 #1039 [Verbose] > |> String.concat " "
00:00:26 #1040 [Verbose] >
00:00:26 #1041 [Verbose] > "FA",
00:00:26 #1042 [Verbose] > fun input ->
00:00:26 #1043 [Verbose] > List.singleton 0
00:00:26 #1044 [Verbose] > |> List.append [[ 1 .. input.Length - 1 ]]
00:00:26 #1045 [Verbose] > |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:26 #1046 [Verbose] > |> String.concat " "
00:00:26 #1047 [Verbose] >
00:00:26 #1048 [Verbose] > "FB",
00:00:26 #1049 [Verbose] > fun input ->
00:00:26 #1050 [Verbose] > Seq.singleton 0
00:00:26 #1051 [Verbose] > |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:26 #1052 [Verbose] > |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:26 #1053 [Verbose] > |> String.concat " "
00:00:26 #1054 [Verbose] >
00:00:26 #1055 [Verbose] > "FC",
00:00:26 #1056 [Verbose] > fun input ->
00:00:26 #1057 [Verbose] > Array.singleton 0
00:00:26 #1058 [Verbose] > |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:26 #1059 [Verbose] > |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:26 #1060 [Verbose] > |> String.concat " "
00:00:26 #1061 [Verbose] > ]]
00:00:26 #1062 [Verbose] > let testCases = seq {
00:00:26 #1063 [Verbose] > "abc", "bca cab abc"
00:00:26 #1064 [Verbose] > "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:26 #1065 [Verbose] > "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:00:26 #1066 [Verbose] > hiabcdefg iabcdefgh abcdefghi"
00:00:26 #1067 [Verbose] > "abab", "baba abab baba abab"
00:00:26 #1068 [Verbose] > "aa", "aa aa"
00:00:26 #1069 [Verbose] > "z", "z"
00:00:26 #1070 [Verbose] > }
00:00:26 #1071 [Verbose] > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:00:26 #1072 [Verbose] > testCases
00:00:26 #1073 [Verbose] > rotateStringsTests
00:00:26 #1074 [Verbose] > |> sortResultList
00:00:37 #1075 [Verbose] >
00:00:37 #1076 [Verbose] > ╭─[ 11.68s - stdout ]──────────────────────────────────────────────────────────╮
00:00:37 #1077 [Verbose] > │ │
00:00:37 #1078 [Verbose] > │ │
00:00:37 #1079 [Verbose] > │ Test: rotateStringsTests │
00:00:37 #1080 [Verbose] > │ │
00:00:37 #1081 [Verbose] > │ Solution: abc │
00:00:37 #1082 [Verbose] > │ Test case 1. A. Time: 2L │
00:00:37 #1083 [Verbose] > │ Test case 2. B. Time: 3L │
00:00:37 #1084 [Verbose] > │ Test case 3. C. Time: 2L │
00:00:37 #1085 [Verbose] > │ Test case 4. CA. Time: 7L │
00:00:37 #1086 [Verbose] > │ Test case 5. CB. Time: 3L │
00:00:37 #1087 [Verbose] > │ Test case 6. D. Time: 3L │
00:00:37 #1088 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:37 #1089 [Verbose] > │ Test case 8. F. Time: 8L │
00:00:37 #1090 [Verbose] > │ Test case 9. FA. Time: 4L │
00:00:37 #1091 [Verbose] > │ Test case 10. FB. Time: 9L │
00:00:37 #1092 [Verbose] > │ Test case 11. FC. Time: 13L │
00:00:37 #1093 [Verbose] > │ │
00:00:37 #1094 [Verbose] > │ Solution: abcde │
00:00:37 #1095 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:37 #1096 [Verbose] > │ Test case 2. B. Time: 2L │
00:00:37 #1097 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:37 #1098 [Verbose] > │ Test case 4. CA. Time: 2L │
00:00:37 #1099 [Verbose] > │ Test case 5. CB. Time: 2L │
00:00:37 #1100 [Verbose] > │ Test case 6. D. Time: 8L │
00:00:37 #1101 [Verbose] > │ Test case 7. E. Time: 0L │
00:00:37 #1102 [Verbose] > │ Test case 8. F. Time: 1L │
00:00:37 #1103 [Verbose] > │ Test case 9. FA. Time: 1L │
00:00:37 #1104 [Verbose] > │ Test case 10. FB. Time: 17L │
00:00:37 #1105 [Verbose] > │ Test case 11. FC. Time: 12L │
00:00:37 #1106 [Verbose] > │ │
00:00:37 #1107 [Verbose] > │ Solution: abcdefghi │
00:00:37 #1108 [Verbose] > │ Test case 1. A. Time: 8L │
00:00:37 #1109 [Verbose] > │ Test case 2. B. Time: 6L │
00:00:37 #1110 [Verbose] > │ Test case 3. C. Time: 2L │
00:00:37 #1111 [Verbose] > │ Test case 4. CA. Time: 6L │
00:00:37 #1112 [Verbose] > │ Test case 5. CB. Time: 3L │
00:00:37 #1113 [Verbose] > │ Test case 6. D. Time: 9L │
00:00:37 #1114 [Verbose] > │ Test case 7. E. Time: 4L │
00:00:37 #1115 [Verbose] > │ Test case 8. F. Time: 3L │
00:00:37 #1116 [Verbose] > │ Test case 9. FA. Time: 4L │
00:00:37 #1117 [Verbose] > │ Test case 10. FB. Time: 4L │
00:00:37 #1118 [Verbose] > │ Test case 11. FC. Time: 10L │
00:00:37 #1119 [Verbose] > │ │
00:00:37 #1120 [Verbose] > │ Solution: abab │
00:00:37 #1121 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:37 #1122 [Verbose] > │ Test case 2. B. Time: 1L │
00:00:37 #1123 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:37 #1124 [Verbose] > │ Test case 4. CA. Time: 2L │
00:00:37 #1125 [Verbose] > │ Test case 5. CB. Time: 1L │
00:00:37 #1126 [Verbose] > │ Test case 6. D. Time: 2L │
00:00:37 #1127 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:37 #1128 [Verbose] > │ Test case 8. F. Time: 1L │
00:00:37 #1129 [Verbose] > │ Test case 9. FA. Time: 2L │
00:00:37 #1130 [Verbose] > │ Test case 10. FB. Time: 2L │
00:00:37 #1131 [Verbose] > │ Test case 11. FC. Time: 11L │
00:00:37 #1132 [Verbose] > │ │
00:00:37 #1133 [Verbose] > │ Solution: aa │
00:00:37 #1134 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:37 #1135 [Verbose] > │ Test case 2. B. Time: 1L │
00:00:37 #1136 [Verbose] > │ Test case 3. C. Time: 0L │
00:00:37 #1137 [Verbose] > │ Test case 4. CA. Time: 1L │
00:00:37 #1138 [Verbose] > │ Test case 5. CB. Time: 1L │
00:00:37 #1139 [Verbose] > │ Test case 6. D. Time: 1L │
00:00:37 #1140 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:37 #1141 [Verbose] > │ Test case 8. F. Time: 0L │
00:00:37 #1142 [Verbose] > │ Test case 9. FA. Time: 0L │
00:00:37 #1143 [Verbose] > │ Test case 10. FB. Time: 1L │
00:00:37 #1144 [Verbose] > │ Test case 11. FC. Time: 7L │
00:00:37 #1145 [Verbose] > │ │
00:00:37 #1146 [Verbose] > │ Solution: z │
00:00:37 #1147 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:37 #1148 [Verbose] > │ Test case 2. B. Time: 0L │
00:00:37 #1149 [Verbose] > │ Test case 3. C. Time: 0L │
00:00:37 #1150 [Verbose] > │ Test case 4. CA. Time: 1L │
00:00:37 #1151 [Verbose] > │ Test case 5. CB. Time: 1L │
00:00:37 #1152 [Verbose] > │ Test case 6. D. Time: 1L │
00:00:37 #1153 [Verbose] > │ Test case 7. E. Time: 0L │
00:00:37 #1154 [Verbose] > │ Test case 8. F. Time: 0L │
00:00:37 #1155 [Verbose] > │ Test case 9. FA. Time: 1L │
00:00:37 #1156 [Verbose] > │ Test case 10. FB. Time: 1L │
00:00:37 #1157 [Verbose] > │ Test case 11. FC. Time: 6L │
00:00:37 #1158 [Verbose] > │ │
00:00:37 #1159 [Verbose] > │ Input | Expected │
00:00:37 #1160 [Verbose] > │ │
00:00:37 #1161 [Verbose] > │ | Result │
00:00:37 #1162 [Verbose] > │ │
00:00:37 #1163 [Verbose] > │ | Best │
00:00:37 #1164 [Verbose] > │ --- | --- │
00:00:37 #1165 [Verbose] > │ │
00:00:37 #1166 [Verbose] > │ | --- │
00:00:37 #1167 [Verbose] > │ │
00:00:37 #1168 [Verbose] > │ | --- │
00:00:37 #1169 [Verbose] > │ abc | bca cab abc │
00:00:37 #1170 [Verbose] > │ │
00:00:37 #1171 [Verbose] > │ | bca cab abc │
00:00:37 #1172 [Verbose] > │ │
00:00:37 #1173 [Verbose] > │ | (7, 1) │
00:00:37 #1174 [Verbose] > │ abcde | bcdea cdeab deabc eabcd abcde │
00:00:37 #1175 [Verbose] > │ | bcdea cdeab deabc eabcd abcde │
00:00:37 #1176 [Verbose] > │ | (7, 0) │
00:00:37 #1177 [Verbose] > │ abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef │
00:00:37 #1178 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd │
00:00:37 #1179 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi | (3, 2) │
00:00:37 #1180 [Verbose] > │ abab | baba abab baba abab │
00:00:37 #1181 [Verbose] > │ | baba abab baba abab │
00:00:37 #1182 [Verbose] > │ | (1, 1) │
00:00:37 #1183 [Verbose] > │ aa | aa aa │
00:00:37 #1184 [Verbose] > │ │
00:00:37 #1185 [Verbose] > │ | aa aa │
00:00:37 #1186 [Verbose] > │ │
00:00:37 #1187 [Verbose] > │ | (3, 0) │
00:00:37 #1188 [Verbose] > │ z | z │
00:00:37 #1189 [Verbose] > │ │
00:00:37 #1190 [Verbose] > │ | z │
00:00:37 #1191 [Verbose] > │ │
00:00:37 #1192 [Verbose] > │ | (1, 0) │
00:00:37 #1193 [Verbose] > │ │
00:00:37 #1194 [Verbose] > │ Average Ranking │
00:00:37 #1195 [Verbose] > │ Test case 3. Average Time: 1L │
00:00:37 #1196 [Verbose] > │ Test case 5. Average Time: 1L │
00:00:37 #1197 [Verbose] > │ Test case 7. Average Time: 1L │
00:00:37 #1198 [Verbose] > │ Test case 1. Average Time: 2L │
00:00:37 #1199 [Verbose] > │ Test case 2. Average Time: 2L │
00:00:37 #1200 [Verbose] > │ Test case 8. Average Time: 2L │
00:00:37 #1201 [Verbose] > │ Test case 9. Average Time: 2L │
00:00:37 #1202 [Verbose] > │ Test case 4. Average Time: 3L │
00:00:37 #1203 [Verbose] > │ Test case 6. Average Time: 4L │
00:00:37 #1204 [Verbose] > │ Test case 10. Average Time: 5L │
00:00:37 #1205 [Verbose] > │ Test case 11. Average Time: 9L │
00:00:37 #1206 [Verbose] > │ │
00:00:37 #1207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #1208 [Verbose] >
00:00:37 #1209 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 #1210 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 #1211 [Verbose] > │ ## rotate_strings_tests │
00:00:37 #1212 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #1213 [Verbose] >
00:00:37 #1214 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #1215 [Verbose] > // // test
00:00:37 #1216 [Verbose] > // // timeout=60000
00:00:37 #1217 [Verbose] > // // print_code=true
00:00:37 #1218 [Verbose] >
00:00:37 #1219 [Verbose] > inl get_solutions () =
00:00:37 #1220 [Verbose] > [[
00:00:37 #1221 [Verbose] > // "A",
00:00:37 #1222 [Verbose] > // fun (input : string) =>
00:00:37 #1223 [Verbose] > // let resultList =
00:00:37 #1224 [Verbose] > // List.fold (fun acc x =>
00:00:37 #1225 [Verbose] > // let rotate (text : string) (letter : string) =
00:00:37 #1226 [Verbose] > text.Substring (1, input.Length - 1) + letter
00:00:37 #1227 [Verbose] > // [[ rotate (if acc.IsEmpty then input else acc.Head)
00:00:37 #1228 [Verbose] > (string x) ]] /@ acc
00:00:37 #1229 [Verbose] > // ) [[]] (Seq.toList input)
00:00:37 #1230 [Verbose] >
00:00:37 #1231 [Verbose] > // List.foldBack (fun acc x => x + acc + " ") resultList ""
00:00:37 #1232 [Verbose] > // |> fun x => x.TrimEnd ()
00:00:37 #1233 [Verbose] >
00:00:37 #1234 [Verbose] > // "B",
00:00:37 #1235 [Verbose] > // fun input =>
00:00:37 #1236 [Verbose] > // input
00:00:37 #1237 [Verbose] > // |> Seq.toList
00:00:37 #1238 [Verbose] > // |> List.fold (fun (acc : string list) letter =>
00:00:37 #1239 [Verbose] > // let last =
00:00:37 #1240 [Verbose] > // if acc.IsEmpty
00:00:37 #1241 [Verbose] > // then input
00:00:37 #1242 [Verbose] > // else acc.Head
00:00:37 #1243 [Verbose] >
00:00:37 #1244 [Verbose] > // let item = last.[[1 .. input.Length - 1]] + string letter
00:00:37 #1245 [Verbose] >
00:00:37 #1246 [Verbose] > // item :: acc
00:00:37 #1247 [Verbose] > // ) [[]]
00:00:37 #1248 [Verbose] > // |> List.rev
00:00:37 #1249 [Verbose] > // |> String.concat " "
00:00:37 #1250 [Verbose] >
00:00:37 #1251 [Verbose] > // "C",
00:00:37 #1252 [Verbose] > // fun input =>
00:00:37 #1253 [Verbose] > // input
00:00:37 #1254 [Verbose] > // |> Seq.toList
00:00:37 #1255 [Verbose] > // |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:37 #1256 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:37 #1257 [Verbose] > // |> List.rev
00:00:37 #1258 [Verbose] > // |> List.skip 1
00:00:37 #1259 [Verbose] > // |> String.concat " "
00:00:37 #1260 [Verbose] >
00:00:37 #1261 [Verbose] > // "CA",
00:00:37 #1262 [Verbose] > // fun input =>
00:00:37 #1263 [Verbose] > // input
00:00:37 #1264 [Verbose] > // |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:37 #1265 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:37 #1266 [Verbose] > // |> Seq.rev
00:00:37 #1267 [Verbose] > // |> Seq.skip 1
00:00:37 #1268 [Verbose] > // |> String.concat " "
00:00:37 #1269 [Verbose] >
00:00:37 #1270 [Verbose] > // "CB",
00:00:37 #1271 [Verbose] > // fun input =>
00:00:37 #1272 [Verbose] > // input
00:00:37 #1273 [Verbose] > // |> Seq.toArray
00:00:37 #1274 [Verbose] > // |> Array.fold (fun (acc : a _ string) letter => acc |>
00:00:37 #1275 [Verbose] > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:00:37 #1276 [Verbose] > (a ;[[ input ]])
00:00:37 #1277 [Verbose] > // |> Array.rev
00:00:37 #1278 [Verbose] > // |> Array.skip 1
00:00:37 #1279 [Verbose] > // |> String.concat " "
00:00:37 #1280 [Verbose] >
00:00:37 #1281 [Verbose] > // "D",
00:00:37 #1282 [Verbose] > // fun input =>
00:00:37 #1283 [Verbose] > // input
00:00:37 #1284 [Verbose] > // |> Seq.toList
00:00:37 #1285 [Verbose] > // |> fun list =>
00:00:37 #1286 [Verbose] > // let rec loop (acc : list (list char)) = function
00:00:37 #1287 [Verbose] > // | _ when acc.Length = list.Length => acc
00:00:37 #1288 [Verbose] > // | head :: tail =>
00:00:37 #1289 [Verbose] > // let item = tail /@ [[ head ]]
00:00:37 #1290 [Verbose] > // loop (item :: acc) item
00:00:37 #1291 [Verbose] > // | [[]] => [[]]
00:00:37 #1292 [Verbose] > // loop [[]] list
00:00:37 #1293 [Verbose] > // |> List.rev
00:00:37 #1294 [Verbose] > // |> List.map (List.toArray >> String)
00:00:37 #1295 [Verbose] > // |> String.concat " "
00:00:37 #1296 [Verbose] >
00:00:37 #1297 [Verbose] > // "E",
00:00:37 #1298 [Verbose] > // fun input =>
00:00:37 #1299 [Verbose] > // input
00:00:37 #1300 [Verbose] > // |> Seq.toList
00:00:37 #1301 [Verbose] > // |> fun list =>
00:00:37 #1302 [Verbose] > // let rec loop (last : string) = function
00:00:37 #1303 [Verbose] > // | head :: tail =>
00:00:37 #1304 [Verbose] > // let item = last.[[1 .. input.Length - 1]] + string
00:00:37 #1305 [Verbose] > head
00:00:37 #1306 [Verbose] > // item :: loop item tail
00:00:37 #1307 [Verbose] > // | [[]] => [[]]
00:00:37 #1308 [Verbose] > // loop input list
00:00:37 #1309 [Verbose] > // |> String.concat " "
00:00:37 #1310 [Verbose] >
00:00:37 #1311 [Verbose] > "F",
00:00:37 #1312 [Verbose] > fun input =>
00:00:37 #1313 [Verbose] > // Array.singleton 0
00:00:37 #1314 [Verbose] > // |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:37 #1315 [Verbose] > // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 #1316 [Verbose] > // |> String.concat " "
00:00:37 #1317 [Verbose] > inl input_length = input |> sm.length
00:00:37 #1318 [Verbose] > am.singleton 0i32
00:00:37 #1319 [Verbose] > |> am.append (am'.init_series 1 (input_length - 1) 1)
00:00:37 #1320 [Verbose] > |> am.map (fun i =>
00:00:37 #1321 [Verbose] > inl a = sm.slice input { from = i; to = input_length - 1 } :
00:00:37 #1322 [Verbose] > string
00:00:37 #1323 [Verbose] > inl b = sm.slice input { from = 0; to = i - 1 } : string
00:00:37 #1324 [Verbose] > $"!a + !b" : string
00:00:37 #1325 [Verbose] > )
00:00:37 #1326 [Verbose] > |> sm'.concat " "
00:00:37 #1327 [Verbose] >
00:00:37 #1328 [Verbose] > "FA",
00:00:37 #1329 [Verbose] > fun input =>
00:00:37 #1330 [Verbose] > // List.singleton 0
00:00:37 #1331 [Verbose] > // |> List.append [[ 1 .. input.Length - 1 ]]
00:00:37 #1332 [Verbose] > // // |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 #1333 [Verbose] > // |> String.concat " "
00:00:37 #1334 [Verbose] > inl input_length = input |> sm.length
00:00:37 #1335 [Verbose] > listm.singleton 0i32
00:00:37 #1336 [Verbose] > |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:00:37 #1337 [Verbose] > |> listm.map (fun i =>
00:00:37 #1338 [Verbose] > inl a = sm.slice input { from = i; to = input_length - 1 } :
00:00:37 #1339 [Verbose] > string
00:00:37 #1340 [Verbose] > inl b = if i = 0 then "" else sm.slice input { from = 0; to = i
00:00:37 #1341 [Verbose] > - 1 } : string
00:00:37 #1342 [Verbose] > $"!a + !b" : string
00:00:37 #1343 [Verbose] > )
00:00:37 #1344 [Verbose] > |> listm.toArray
00:00:37 #1345 [Verbose] > |> fun x => x : a i32 _
00:00:37 #1346 [Verbose] > |> sm'.concat " "
00:00:37 #1347 [Verbose] >
00:00:37 #1348 [Verbose] > // "FB",
00:00:37 #1349 [Verbose] > // fun input =>
00:00:37 #1350 [Verbose] > // Seq.singleton 0
00:00:37 #1351 [Verbose] > // // |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:37 #1352 [Verbose] > // // |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 #1353 [Verbose] > // |> String.concat " "
00:00:37 #1354 [Verbose] >
00:00:37 #1355 [Verbose] > // "FC",
00:00:37 #1356 [Verbose] > // fun input =>
00:00:37 #1357 [Verbose] > // Array.singleton 0
00:00:37 #1358 [Verbose] > // |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:00:37 #1359 [Verbose] > // // |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ ..
00:00:37 #1360 [Verbose] > i - 1 ]])
00:00:37 #1361 [Verbose] > // |> String.concat " "
00:00:37 #1362 [Verbose] > ]]
00:00:37 #1363 [Verbose] >
00:00:37 #1364 [Verbose] > inl rec rotate_strings_tests () =
00:00:37 #1365 [Verbose] > inl test_cases = [[
00:00:37 #1366 [Verbose] > "abc", "bca cab abc"
00:00:37 #1367 [Verbose] > "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:37 #1368 [Verbose] > "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:00:37 #1369 [Verbose] > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:00:37 #1370 [Verbose] > "abab", "baba abab baba abab"
00:00:37 #1371 [Verbose] > "aa", "aa aa"
00:00:37 #1372 [Verbose] > "z", "z"
00:00:37 #1373 [Verbose] > ]]
00:00:37 #1374 [Verbose] >
00:00:37 #1375 [Verbose] > inl solutions = get_solutions ()
00:00:37 #1376 [Verbose] >
00:00:37 #1377 [Verbose] > // inl is_fast () = true
00:00:37 #1378 [Verbose] >
00:00:37 #1379 [Verbose] > inl count =
00:00:37 #1380 [Verbose] > if is_fast ()
00:00:37 #1381 [Verbose] > then 1000i32
00:00:37 #1382 [Verbose] > else 2000000i32
00:00:37 #1383 [Verbose] >
00:00:37 #1384 [Verbose] > run_all (nameof rotate_strings_tests) count solutions test_cases
00:00:37 #1385 [Verbose] > |> sort_result_list
00:00:37 #1386 [Verbose] >
00:00:37 #1387 [Verbose] > rotate_strings_tests ()
00:01:27 #1388 [Verbose] >
00:01:27 #1389 [Verbose] > ╭─[ 49.32s - stdout ]──────────────────────────────────────────────────────────╮
00:01:27 #1390 [Verbose] > │ type UH0 = │
00:01:27 #1391 [Verbose] > │ | UH0_0 of string * string * UH0 │
00:01:27 #1392 [Verbose] > │ | UH0_1 │
00:01:27 #1393 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:01:27 #1394 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:01:27 #1395 [Verbose] > │ and UH1 = │
00:01:27 #1396 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:01:27 #1397 [Verbose] > │ | UH1_1 │
00:01:27 #1398 [Verbose] > │ and UH2 = │
00:01:27 #1399 [Verbose] > │ | UH2_0 of string * UH2 │
00:01:27 #1400 [Verbose] > │ | UH2_1 │
00:01:27 #1401 [Verbose] > │ and UH3 = │
00:01:27 #1402 [Verbose] > │ | UH3_0 of int32 * string * (string -> string) * UH3 │
00:01:27 #1403 [Verbose] > │ | UH3_1 │
00:01:27 #1404 [Verbose] > │ and [<Struct>] US0 = │
00:01:27 #1405 [Verbose] > │ | US0_0 │
00:01:27 #1406 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:01:27 #1407 [Verbose] > │ and UH4 = │
00:01:27 #1408 [Verbose] > │ | UH4_0 of int64 * int64 * UH4 │
00:01:27 #1409 [Verbose] > │ | UH4_1 │
00:01:27 #1410 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH4; mutable l2 : int64} │
00:01:27 #1411 [Verbose] > │ and UH5 = │
00:01:27 #1412 [Verbose] > │ | UH5_0 of UH2 * US0 * UH5 │
00:01:27 #1413 [Verbose] > │ | UH5_1 │
00:01:27 #1414 [Verbose] > │ and [<Struct>] US1 = │
00:01:27 #1415 [Verbose] > │ | US1_0 │
00:01:27 #1416 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:01:27 #1417 [Verbose] > │ and UH6 = │
00:01:27 #1418 [Verbose] > │ | UH6_0 of int32 * int64 * UH6 │
00:01:27 #1419 [Verbose] > │ | UH6_1 │
00:01:27 #1420 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH6; mutable l2 : int32} │
00:01:27 #1421 [Verbose] > │ and UH7 = │
00:01:27 #1422 [Verbose] > │ | UH7_0 of int32 * string * UH7 │
00:01:27 #1423 [Verbose] > │ | UH7_1 │
00:01:27 #1424 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:01:27 #1425 [Verbose] > │ match v0 with │
00:01:27 #1426 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1427 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:27 #1428 [Verbose] > │ method2(v4, v5) │
00:01:27 #1429 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:27 #1430 [Verbose] > │ v1 │
00:01:27 #1431 [Verbose] > │ and method3 (v0 : (struct (string * string) []), v1 : UH0, v2 : uint64) : │
00:01:27 #1432 [Verbose] > │ uint64 = │
00:01:27 #1433 [Verbose] > │ match v1 with │
00:01:27 #1434 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:01:27 #1435 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:27 #1436 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:27 #1437 [Verbose] > │ method3(v0, v5, v6) │
00:01:27 #1438 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:27 #1439 [Verbose] > │ v2 │
00:01:27 #1440 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string) []) = │
00:01:27 #1441 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:27 #1442 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:01:27 #1443 [Verbose] > │ let v3 : (struct (string * string) []) = Array.zeroCreate<struct (string │
00:01:27 #1444 [Verbose] > │ * string)> (System.Convert.ToInt32(v2)) │
00:01:27 #1445 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:27 #1446 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:01:27 #1447 [Verbose] > │ v3 │
00:01:27 #1448 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:01:27 #1449 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:27 #1450 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:27 #1451 [Verbose] > │ v3 │
00:01:27 #1452 [Verbose] > │ and method5 (v0 : int32, v1 : Mut1) : bool = │
00:01:27 #1453 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:27 #1454 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:27 #1455 [Verbose] > │ v3 │
00:01:27 #1456 [Verbose] > │ and closure1 () (v0 : string) : string = │
00:01:27 #1457 [Verbose] > │ let v1 : int32 = v0.Length │
00:01:27 #1458 [Verbose] > │ let v2 : (int32 []) = Array.zeroCreate<int32> (1) │
00:01:27 #1459 [Verbose] > │ v2.[int 0] <- 0 │
00:01:27 #1460 [Verbose] > │ let v3 : int32 = v1 - 1 │
00:01:27 #1461 [Verbose] > │ let v4 : int32 = v3 - 1 │
00:01:27 #1462 [Verbose] > │ let v5 : int32 = v4 + 1 │
00:01:27 #1463 [Verbose] > │ let v6 : (int32 []) = Array.zeroCreate<int32> (v5) │
00:01:27 #1464 [Verbose] > │ let v7 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #1465 [Verbose] > │ while method5(v5, v7) do │
00:01:27 #1466 [Verbose] > │ let v9 : int32 = v7.l0 │
00:01:27 #1467 [Verbose] > │ let v10 : int32 = 1 + v9 │
00:01:27 #1468 [Verbose] > │ v6.[int v9] <- v10 │
00:01:27 #1469 [Verbose] > │ let v11 : int32 = v9 + 1 │
00:01:27 #1470 [Verbose] > │ v7.l0 <- v11 │
00:01:27 #1471 [Verbose] > │ () │
00:01:27 #1472 [Verbose] > │ let v12 : int32 = v6.Length │
00:01:27 #1473 [Verbose] > │ let v13 : int32 = v2.Length │
00:01:27 #1474 [Verbose] > │ let v14 : int32 = v12 + v13 │
00:01:27 #1475 [Verbose] > │ let v15 : (int32 []) = Array.zeroCreate<int32> (v14) │
00:01:27 #1476 [Verbose] > │ let v16 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #1477 [Verbose] > │ while method5(v14, v16) do │
00:01:27 #1478 [Verbose] > │ let v18 : int32 = v16.l0 │
00:01:27 #1479 [Verbose] > │ let v19 : bool = v18 < v12 │
00:01:27 #1480 [Verbose] > │ let v23 : int32 = │
00:01:27 #1481 [Verbose] > │ if v19 then │
00:01:27 #1482 [Verbose] > │ let v20 : int32 = v6.[int v18] │
00:01:27 #1483 [Verbose] > │ v20 │
00:01:27 #1484 [Verbose] > │ else │
00:01:27 #1485 [Verbose] > │ let v21 : int32 = v18 - v12 │
00:01:27 #1486 [Verbose] > │ let v22 : int32 = v2.[int v21] │
00:01:27 #1487 [Verbose] > │ v22 │
00:01:27 #1488 [Verbose] > │ v15.[int v18] <- v23 │
00:01:27 #1489 [Verbose] > │ let v24 : int32 = v18 + 1 │
00:01:27 #1490 [Verbose] > │ v16.l0 <- v24 │
00:01:27 #1491 [Verbose] > │ () │
00:01:27 #1492 [Verbose] > │ let v25 : int32 = v15.Length │
00:01:27 #1493 [Verbose] > │ let v26 : (string []) = Array.zeroCreate<string> (v25) │
00:01:27 #1494 [Verbose] > │ let v27 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #1495 [Verbose] > │ while method5(v25, v27) do │
00:01:27 #1496 [Verbose] > │ let v29 : int32 = v27.l0 │
00:01:27 #1497 [Verbose] > │ let v30 : int32 = v15.[int v29] │
00:01:27 #1498 [Verbose] > │ let v31 : string = v0.[int v30..int v3] │
00:01:27 #1499 [Verbose] > │ let v32 : int32 = v30 - 1 │
00:01:27 #1500 [Verbose] > │ let v33 : string = v0.[int 0..int v32] │
00:01:27 #1501 [Verbose] > │ let v34 : string = v31 + v33 │
00:01:27 #1502 [Verbose] > │ v26.[int v29] <- v34 │
00:01:27 #1503 [Verbose] > │ let v35 : int32 = v29 + 1 │
00:01:27 #1504 [Verbose] > │ v27.l0 <- v35 │
00:01:27 #1505 [Verbose] > │ () │
00:01:27 #1506 [Verbose] > │ let v36 : string = " " │
00:01:27 #1507 [Verbose] > │ let v37 : string = v26 |> String.concat v36 │
00:01:27 #1508 [Verbose] > │ v37 │
00:01:27 #1509 [Verbose] > │ and method6 (v0 : float, v1 : float) : UH1 = │
00:01:27 #1510 [Verbose] > │ let v2 : bool = v1 < v0 │
00:01:27 #1511 [Verbose] > │ if v2 then │
00:01:27 #1512 [Verbose] > │ let v3 : int32 = int32 v1 │
00:01:27 #1513 [Verbose] > │ let v4 : int32 = 1 + v3 │
00:01:27 #1514 [Verbose] > │ let v5 : float = v1 + 1.0 │
00:01:27 #1515 [Verbose] > │ let v6 : UH1 = method6(v0, v5) │
00:01:27 #1516 [Verbose] > │ UH1_0(v4, v6) │
00:01:27 #1517 [Verbose] > │ else │
00:01:27 #1518 [Verbose] > │ UH1_1 │
00:01:27 #1519 [Verbose] > │ and method7 (v0 : UH1, v1 : UH1) : UH1 = │
00:01:27 #1520 [Verbose] > │ match v0 with │
00:01:27 #1521 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:01:27 #1522 [Verbose] > │ let v4 : UH1 = method7(v3, v1) │
00:01:27 #1523 [Verbose] > │ UH1_0(v2, v4) │
00:01:27 #1524 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:01:27 #1525 [Verbose] > │ v1 │
00:01:27 #1526 [Verbose] > │ and method8 (v0 : string, v1 : int32, v2 : UH1, v3 : UH2) : UH2 = │
00:01:27 #1527 [Verbose] > │ match v2 with │
00:01:27 #1528 [Verbose] > │ | UH1_0(v4, v5) -> (* Cons *) │
00:01:27 #1529 [Verbose] > │ let v6 : UH2 = method8(v0, v1, v5, v3) │
00:01:27 #1530 [Verbose] > │ let v7 : int32 = v1 - 1 │
00:01:27 #1531 [Verbose] > │ let v8 : string = v0.[int v4..int v7] │
00:01:27 #1532 [Verbose] > │ let v9 : bool = v4 = 0 │
00:01:27 #1533 [Verbose] > │ let v13 : string = │
00:01:27 #1534 [Verbose] > │ if v9 then │
00:01:27 #1535 [Verbose] > │ let v10 : string = "" │
00:01:27 #1536 [Verbose] > │ v10 │
00:01:27 #1537 [Verbose] > │ else │
00:01:27 #1538 [Verbose] > │ let v11 : int32 = v4 - 1 │
00:01:27 #1539 [Verbose] > │ let v12 : string = v0.[int 0..int v11] │
00:01:27 #1540 [Verbose] > │ v12 │
00:01:27 #1541 [Verbose] > │ let v14 : string = v8 + v13 │
00:01:27 #1542 [Verbose] > │ UH2_0(v14, v6) │
00:01:27 #1543 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:01:27 #1544 [Verbose] > │ v3 │
00:01:27 #1545 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:01:27 #1546 [Verbose] > │ match v0 with │
00:01:27 #1547 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:01:27 #1548 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:01:27 #1549 [Verbose] > │ method10(v3, v4) │
00:01:27 #1550 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:27 #1551 [Verbose] > │ v1 │
00:01:27 #1552 [Verbose] > │ and method11 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:01:27 #1553 [Verbose] > │ match v1 with │
00:01:27 #1554 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:27 #1555 [Verbose] > │ v0.[int v2] <- v3 │
00:01:27 #1556 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:27 #1557 [Verbose] > │ method11(v0, v4, v5) │
00:01:27 #1558 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:27 #1559 [Verbose] > │ v2 │
00:01:27 #1560 [Verbose] > │ and method9 (v0 : UH2) : (string []) = │
00:01:27 #1561 [Verbose] > │ let v1 : int32 = 0 │
00:01:27 #1562 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:01:27 #1563 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:01:27 #1564 [Verbose] > │ let v4 : int32 = 0 │
00:01:27 #1565 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:01:27 #1566 [Verbose] > │ v3 │
00:01:27 #1567 [Verbose] > │ and closure2 () (v0 : string) : string = │
00:01:27 #1568 [Verbose] > │ let v1 : int32 = v0.Length │
00:01:27 #1569 [Verbose] > │ let v2 : int32 = v1 - 1 │
00:01:27 #1570 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:01:27 #1571 [Verbose] > │ let v4 : float = float v3 │
00:01:27 #1572 [Verbose] > │ let v5 : float = v4 + 1.0 │
00:01:27 #1573 [Verbose] > │ let v6 : float = 0.0 │
00:01:27 #1574 [Verbose] > │ let v7 : UH1 = method6(v5, v6) │
00:01:27 #1575 [Verbose] > │ let v8 : int32 = 0 │
00:01:27 #1576 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:01:27 #1577 [Verbose] > │ let v10 : UH1 = UH1_0(v8, v9) │
00:01:27 #1578 [Verbose] > │ let v11 : UH1 = method7(v7, v10) │
00:01:27 #1579 [Verbose] > │ let v12 : UH2 = UH2_1 │
00:01:27 #1580 [Verbose] > │ let v13 : UH2 = method8(v0, v1, v11, v12) │
00:01:27 #1581 [Verbose] > │ let v14 : (string []) = method9(v13) │
00:01:27 #1582 [Verbose] > │ let v15 : string = " " │
00:01:27 #1583 [Verbose] > │ let v16 : string = v14 |> String.concat v15 │
00:01:27 #1584 [Verbose] > │ v16 │
00:01:27 #1585 [Verbose] > │ and method13 (v0 : UH3, v1 : uint64) : uint64 = │
00:01:27 #1586 [Verbose] > │ match v0 with │
00:01:27 #1587 [Verbose] > │ | UH3_0(v2, v3, v4, v5) -> (* Cons *) │
00:01:27 #1588 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:01:27 #1589 [Verbose] > │ method13(v5, v6) │
00:01:27 #1590 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:27 #1591 [Verbose] > │ v1 │
00:01:27 #1592 [Verbose] > │ and method14 (v0 : (struct (int32 * string * (string -> string)) []), v1 : │
00:01:27 #1593 [Verbose] > │ UH3, v2 : uint64) : uint64 = │
00:01:27 #1594 [Verbose] > │ match v1 with │
00:01:27 #1595 [Verbose] > │ | UH3_0(v3, v4, v5, v6) -> (* Cons *) │
00:01:27 #1596 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:01:27 #1597 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:01:27 #1598 [Verbose] > │ method14(v0, v6, v7) │
00:01:27 #1599 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:27 #1600 [Verbose] > │ v2 │
00:01:27 #1601 [Verbose] > │ and method12 (v0 : UH3) : (struct (int32 * string * (string -> string)) []) │
00:01:27 #1602 [Verbose] > │ = │
00:01:27 #1603 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:27 #1604 [Verbose] > │ let v2 : uint64 = method13(v0, v1) │
00:01:27 #1605 [Verbose] > │ let v3 : (struct (int32 * string * (string -> string)) []) = │
00:01:27 #1606 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (string -> string))> │
00:01:27 #1607 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:27 #1608 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:27 #1609 [Verbose] > │ let v5 : uint64 = method14(v3, v0, v4) │
00:01:27 #1610 [Verbose] > │ v3 │
00:01:27 #1611 [Verbose] > │ and method15 (v0 : Mut1) : bool = │
00:01:27 #1612 [Verbose] > │ let v1 : int32 = v0.l0 │
00:01:27 #1613 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:01:27 #1614 [Verbose] > │ v2 │
00:01:27 #1615 [Verbose] > │ and closure3 (v0 : string, v1 : (string -> string)) (v2 : int32) : string = │
00:01:27 #1616 [Verbose] > │ v1 v0 │
00:01:27 #1617 [Verbose] > │ and method16 (v0 : string, v1 : (string []), v2 : uint64) : bool = │
00:01:27 #1618 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:01:27 #1619 [Verbose] > │ let v4 : bool = v2 < v3 │
00:01:27 #1620 [Verbose] > │ if v4 then │
00:01:27 #1621 [Verbose] > │ let v5 : string = v1.[int v2] │
00:01:27 #1622 [Verbose] > │ let v6 : bool = v0 = v5 │
00:01:27 #1623 [Verbose] > │ if v6 then │
00:01:27 #1624 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:01:27 #1625 [Verbose] > │ method16(v0, v1, v7) │
00:01:27 #1626 [Verbose] > │ else │
00:01:27 #1627 [Verbose] > │ false │
00:01:27 #1628 [Verbose] > │ else │
00:01:27 #1629 [Verbose] > │ true │
00:01:27 #1630 [Verbose] > │ and method17 (v0 : uint64, v1 : Mut2) : bool = │
00:01:27 #1631 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:27 #1632 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:27 #1633 [Verbose] > │ v3 │
00:01:27 #1634 [Verbose] > │ and method18 (v0 : UH4, v1 : UH4) : UH4 = │
00:01:27 #1635 [Verbose] > │ match v0 with │
00:01:27 #1636 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1637 [Verbose] > │ let v5 : UH4 = UH4_0(v2, v3, v1) │
00:01:27 #1638 [Verbose] > │ method18(v4, v5) │
00:01:27 #1639 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:27 #1640 [Verbose] > │ v1 │
00:01:27 #1641 [Verbose] > │ and method20 (v0 : UH4, v1 : int32) : int32 = │
00:01:27 #1642 [Verbose] > │ match v0 with │
00:01:27 #1643 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1644 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:01:27 #1645 [Verbose] > │ method20(v4, v5) │
00:01:27 #1646 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:27 #1647 [Verbose] > │ v1 │
00:01:27 #1648 [Verbose] > │ and method21 (v0 : (struct (int64 * int64) []), v1 : UH4, v2 : int32) : │
00:01:27 #1649 [Verbose] > │ int32 = │
00:01:27 #1650 [Verbose] > │ match v1 with │
00:01:27 #1651 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:01:27 #1652 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:27 #1653 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:27 #1654 [Verbose] > │ method21(v0, v5, v6) │
00:01:27 #1655 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:27 #1656 [Verbose] > │ v2 │
00:01:27 #1657 [Verbose] > │ and method19 (v0 : UH4) : (struct (int64 * int64) []) = │
00:01:27 #1658 [Verbose] > │ let v1 : int32 = 0 │
00:01:27 #1659 [Verbose] > │ let v2 : int32 = method20(v0, v1) │
00:01:27 #1660 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:01:27 #1661 [Verbose] > │ int64)> (v2) │
00:01:27 #1662 [Verbose] > │ let v4 : int32 = 0 │
00:01:27 #1663 [Verbose] > │ let v5 : int32 = method21(v3, v0, v4) │
00:01:27 #1664 [Verbose] > │ v3 │
00:01:27 #1665 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 = │
00:01:27 #1666 [Verbose] > │ v1 │
00:01:27 #1667 [Verbose] > │ and method23 (v0 : UH5, v1 : uint64) : uint64 = │
00:01:27 #1668 [Verbose] > │ match v0 with │
00:01:27 #1669 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1670 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:27 #1671 [Verbose] > │ method23(v4, v5) │
00:01:27 #1672 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:27 #1673 [Verbose] > │ v1 │
00:01:27 #1674 [Verbose] > │ and method24 (v0 : (struct (UH2 * US0) []), v1 : UH5, v2 : uint64) : uint64 │
00:01:27 #1675 [Verbose] > │ = │
00:01:27 #1676 [Verbose] > │ match v1 with │
00:01:27 #1677 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:01:27 #1678 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:27 #1679 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:27 #1680 [Verbose] > │ method24(v0, v5, v6) │
00:01:27 #1681 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:27 #1682 [Verbose] > │ v2 │
00:01:27 #1683 [Verbose] > │ and method22 (v0 : UH5) : (struct (UH2 * US0) []) = │
00:01:27 #1684 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:27 #1685 [Verbose] > │ let v2 : uint64 = method23(v0, v1) │
00:01:27 #1686 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:01:27 #1687 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:27 #1688 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:27 #1689 [Verbose] > │ let v5 : uint64 = method24(v3, v0, v4) │
00:01:27 #1690 [Verbose] > │ v3 │
00:01:27 #1691 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 = │
00:01:27 #1692 [Verbose] > │ match v0 with │
00:01:27 #1693 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:01:27 #1694 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:01:27 #1695 [Verbose] > │ method26(v3, v4) │
00:01:27 #1696 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:27 #1697 [Verbose] > │ v1 │
00:01:27 #1698 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:01:27 #1699 [Verbose] > │ match v1 with │
00:01:27 #1700 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:27 #1701 [Verbose] > │ v0.[int v2] <- v3 │
00:01:27 #1702 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:01:27 #1703 [Verbose] > │ method27(v0, v4, v5) │
00:01:27 #1704 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:27 #1705 [Verbose] > │ v2 │
00:01:27 #1706 [Verbose] > │ and method25 (v0 : UH2) : (string []) = │
00:01:27 #1707 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:27 #1708 [Verbose] > │ let v2 : uint64 = method26(v0, v1) │
00:01:27 #1709 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:01:27 #1710 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:27 #1711 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:27 #1712 [Verbose] > │ let v5 : uint64 = method27(v3, v0, v4) │
00:01:27 #1713 [Verbose] > │ v3 │
00:01:27 #1714 [Verbose] > │ and closure5 () (v0 : int64) : US1 = │
00:01:27 #1715 [Verbose] > │ US1_1(v0) │
00:01:27 #1716 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool = │
00:01:27 #1717 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:27 #1718 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:27 #1719 [Verbose] > │ v3 │
00:01:27 #1720 [Verbose] > │ and method29 (v0 : UH6, v1 : UH6) : UH6 = │
00:01:27 #1721 [Verbose] > │ match v0 with │
00:01:27 #1722 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1723 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:01:27 #1724 [Verbose] > │ method29(v4, v5) │
00:01:27 #1725 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:27 #1726 [Verbose] > │ v1 │
00:01:27 #1727 [Verbose] > │ and method31 (v0 : UH6, v1 : int32) : int32 = │
00:01:27 #1728 [Verbose] > │ match v0 with │
00:01:27 #1729 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1730 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:01:27 #1731 [Verbose] > │ method31(v4, v5) │
00:01:27 #1732 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:27 #1733 [Verbose] > │ v1 │
00:01:27 #1734 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : int32) : │
00:01:27 #1735 [Verbose] > │ int32 = │
00:01:27 #1736 [Verbose] > │ match v1 with │
00:01:27 #1737 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:01:27 #1738 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:27 #1739 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:27 #1740 [Verbose] > │ method32(v0, v5, v6) │
00:01:27 #1741 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:27 #1742 [Verbose] > │ v2 │
00:01:27 #1743 [Verbose] > │ and method30 (v0 : UH6) : (struct (int32 * int64) []) = │
00:01:27 #1744 [Verbose] > │ let v1 : int32 = 0 │
00:01:27 #1745 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:01:27 #1746 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:01:27 #1747 [Verbose] > │ int64)> (v2) │
00:01:27 #1748 [Verbose] > │ let v4 : int32 = 0 │
00:01:27 #1749 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:01:27 #1750 [Verbose] > │ v3 │
00:01:27 #1751 [Verbose] > │ and method33 (v0 : UH2, v1 : UH7, v2 : int32) : struct (UH7 * int32) = │
00:01:27 #1752 [Verbose] > │ match v0 with │
00:01:27 #1753 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:27 #1754 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:27 #1755 [Verbose] > │ let v6 : UH7 = UH7_0(v2, v3, v1) │
00:01:27 #1756 [Verbose] > │ method33(v4, v6, v5) │
00:01:27 #1757 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:27 #1758 [Verbose] > │ struct (v1, v2) │
00:01:27 #1759 [Verbose] > │ and method34 (v0 : UH7, v1 : UH7) : UH7 = │
00:01:27 #1760 [Verbose] > │ match v0 with │
00:01:27 #1761 [Verbose] > │ | UH7_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1762 [Verbose] > │ let v5 : UH7 = UH7_0(v2, v3, v1) │
00:01:27 #1763 [Verbose] > │ method34(v4, v5) │
00:01:27 #1764 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:27 #1765 [Verbose] > │ v1 │
00:01:27 #1766 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH7, v2 : UH2) : UH2 = │
00:01:27 #1767 [Verbose] > │ match v1 with │
00:01:27 #1768 [Verbose] > │ | UH7_0(v3, v4, v5) -> (* Cons *) │
00:01:27 #1769 [Verbose] > │ let v6 : UH2 = method35(v0, v5, v2) │
00:01:27 #1770 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:01:27 #1771 [Verbose] > │ let v8 : int32 = int32 v7 │
00:01:27 #1772 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:01:27 #1773 [Verbose] > │ UH2_0(v9, v6) │
00:01:27 #1774 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:27 #1775 [Verbose] > │ v2 │
00:01:27 #1776 [Verbose] > │ and method37 (v0 : UH6, v1 : uint64) : uint64 = │
00:01:27 #1777 [Verbose] > │ match v0 with │
00:01:27 #1778 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:27 #1779 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:27 #1780 [Verbose] > │ method37(v4, v5) │
00:01:27 #1781 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:27 #1782 [Verbose] > │ v1 │
00:01:27 #1783 [Verbose] > │ and method38 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : uint64) : │
00:01:27 #1784 [Verbose] > │ uint64 = │
00:01:27 #1785 [Verbose] > │ match v1 with │
00:01:27 #1786 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:01:27 #1787 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:27 #1788 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:27 #1789 [Verbose] > │ method38(v0, v5, v6) │
00:01:27 #1790 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:27 #1791 [Verbose] > │ v2 │
00:01:27 #1792 [Verbose] > │ and method36 (v0 : UH6) : (struct (int32 * int64) []) = │
00:01:27 #1793 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:27 #1794 [Verbose] > │ let v2 : uint64 = method37(v0, v1) │
00:01:27 #1795 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:01:27 #1796 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:01:27 #1797 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:27 #1798 [Verbose] > │ let v5 : uint64 = method38(v3, v0, v4) │
00:01:27 #1799 [Verbose] > │ v3 │
00:01:27 #1800 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 = │
00:01:27 #1801 [Verbose] > │ v1 │
00:01:27 #1802 [Verbose] > │ and closure0 () () : unit = │
00:01:27 #1803 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:01:27 #1804 [Verbose] > │ let v1 : string = nameof v0 │
00:01:27 #1805 [Verbose] > │ let v2 : string = "" │
00:01:27 #1806 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #1807 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #1808 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:01:27 #1809 [Verbose] > │ System.Console.WriteLine v3 │
00:01:27 #1810 [Verbose] > │ let v4 : string = "abc" │
00:01:27 #1811 [Verbose] > │ let v5 : string = "bca cab abc" │
00:01:27 #1812 [Verbose] > │ let v6 : string = "abcde" │
00:01:27 #1813 [Verbose] > │ let v7 : string = "bcdea cdeab deabc eabcd abcde" │
00:01:27 #1814 [Verbose] > │ let v8 : string = "abcdefghi" │
00:01:27 #1815 [Verbose] > │ let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:01:27 #1816 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi" │
00:01:27 #1817 [Verbose] > │ let v10 : string = "abab" │
00:01:27 #1818 [Verbose] > │ let v11 : string = "baba abab baba abab" │
00:01:27 #1819 [Verbose] > │ let v12 : string = "aa" │
00:01:27 #1820 [Verbose] > │ let v13 : string = "aa aa" │
00:01:27 #1821 [Verbose] > │ let v14 : string = "z" │
00:01:27 #1822 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:01:27 #1823 [Verbose] > │ let v16 : UH0 = UH0_0(v14, v14, v15) │
00:01:27 #1824 [Verbose] > │ let v17 : UH0 = UH0_0(v12, v13, v16) │
00:01:27 #1825 [Verbose] > │ let v18 : UH0 = UH0_0(v10, v11, v17) │
00:01:27 #1826 [Verbose] > │ let v19 : UH0 = UH0_0(v8, v9, v18) │
00:01:27 #1827 [Verbose] > │ let v20 : UH0 = UH0_0(v6, v7, v19) │
00:01:27 #1828 [Verbose] > │ let v21 : UH0 = UH0_0(v4, v5, v20) │
00:01:27 #1829 [Verbose] > │ let v22 : (struct (string * string) []) = method1(v21) │
00:01:27 #1830 [Verbose] > │ let v23 : uint64 = System.Convert.ToUInt64 v22.Length │
00:01:27 #1831 [Verbose] > │ let v24 : (struct (string * string * string * (int64 [])) []) = │
00:01:27 #1832 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:01:27 #1833 [Verbose] > │ (System.Convert.ToInt32(v23)) │
00:01:27 #1834 [Verbose] > │ let v25 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #1835 [Verbose] > │ while method4(v23, v25) do │
00:01:27 #1836 [Verbose] > │ let v27 : uint64 = v25.l0 │
00:01:27 #1837 [Verbose] > │ let struct (v28 : string, v29 : string) = v22.[int v27] │
00:01:27 #1838 [Verbose] > │ let v30 : string = $"%A{v28}" │
00:01:27 #1839 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #1840 [Verbose] > │ let v31 : string = $"Solution: {v30} " │
00:01:27 #1841 [Verbose] > │ System.Console.WriteLine v31 │
00:01:27 #1842 [Verbose] > │ let v32 : int32 = 0 │
00:01:27 #1843 [Verbose] > │ let v33 : string = "F" │
00:01:27 #1844 [Verbose] > │ let v34 : (string -> string) = closure1() │
00:01:27 #1845 [Verbose] > │ let v35 : int32 = 1 │
00:01:27 #1846 [Verbose] > │ let v36 : string = "FA" │
00:01:27 #1847 [Verbose] > │ let v37 : (string -> string) = closure2() │
00:01:27 #1848 [Verbose] > │ let v38 : UH3 = UH3_1 │
00:01:27 #1849 [Verbose] > │ let v39 : UH3 = UH3_0(v35, v36, v37, v38) │
00:01:27 #1850 [Verbose] > │ let v40 : UH3 = UH3_0(v32, v33, v34, v39) │
00:01:27 #1851 [Verbose] > │ let v41 : (struct (int32 * string * (string -> string)) []) = │
00:01:27 #1852 [Verbose] > │ method12(v40) │
00:01:27 #1853 [Verbose] > │ let v42 : uint64 = System.Convert.ToUInt64 v41.Length │
00:01:27 #1854 [Verbose] > │ let v43 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:01:27 #1855 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42)) │
00:01:27 #1856 [Verbose] > │ let v44 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #1857 [Verbose] > │ while method4(v42, v44) do │
00:01:27 #1858 [Verbose] > │ let v46 : uint64 = v44.l0 │
00:01:27 #1859 [Verbose] > │ let struct (v47 : int32, v48 : string, v49 : (string -> string)) │
00:01:27 #1860 [Verbose] > │ = v41.[int v46] │
00:01:27 #1861 [Verbose] > │ let mutable result = None │
00:01:27 #1862 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #1863 [Verbose] > │ () │
00:01:27 #1864 [Verbose] > │ #endif │
00:01:27 #1865 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #1866 [Verbose] > │ () │
00:01:27 #1867 [Verbose] > │ #endif │
00:01:27 #1868 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #1869 [Verbose] > │ System.GC.Collect () │
00:01:27 #1870 [Verbose] > │ () │
00:01:27 #1871 [Verbose] > │ #endif │
00:01:27 #1872 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #1873 [Verbose] > │ System.GC.Collect () │
00:01:27 #1874 [Verbose] > │ () │
00:01:27 #1875 [Verbose] > │ #endif │
00:01:27 #1876 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #1877 [Verbose] > │ System.GC.Collect () │
00:01:27 #1878 [Verbose] > │ () │
00:01:27 #1879 [Verbose] > │ #endif │
00:01:27 #1880 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #1881 [Verbose] > │ result |> Option.get │
00:01:27 #1882 [Verbose] > │ let v50 : (unit -> System.Diagnostics.Stopwatch) = │
00:01:27 #1883 [Verbose] > │ System.Diagnostics.Stopwatch │
00:01:27 #1884 [Verbose] > │ let v51 : System.Diagnostics.Stopwatch = v50 () │
00:01:27 #1885 [Verbose] > │ v51.Start () │
00:01:27 #1886 [Verbose] > │ let v52 : int64 = v51.ElapsedMilliseconds │
00:01:27 #1887 [Verbose] > │ let v53 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:01:27 #1888 [Verbose] > │ let v54 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #1889 [Verbose] > │ while method15(v54) do │
00:01:27 #1890 [Verbose] > │ let v56 : int32 = v54.l0 │
00:01:27 #1891 [Verbose] > │ v53.[int v56] <- v56 │
00:01:27 #1892 [Verbose] > │ let v57 : int32 = v56 + 1 │
00:01:27 #1893 [Verbose] > │ v54.l0 <- v57 │
00:01:27 #1894 [Verbose] > │ () │
00:01:27 #1895 [Verbose] > │ let v58 : (int32 -> string) = closure3(v28, v49) │
00:01:27 #1896 [Verbose] > │ let v59 : (string []) = v53 |> Array.Parallel.map v58 │
00:01:27 #1897 [Verbose] > │ let v60 : int32 = v59.Length │
00:01:27 #1898 [Verbose] > │ let v61 : int32 = v60 - 1 │
00:01:27 #1899 [Verbose] > │ let v62 : string = v59.[int v61] │
00:01:27 #1900 [Verbose] > │ let v63 : int64 = v51.ElapsedMilliseconds │
00:01:27 #1901 [Verbose] > │ let v64 : int64 = v63 - v52 │
00:01:27 #1902 [Verbose] > │ let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64} " │
00:01:27 #1903 [Verbose] > │ System.Console.WriteLine v65 │
00:01:27 #1904 [Verbose] > │ v43.[int v46] <- struct (v62, v64) │
00:01:27 #1905 [Verbose] > │ let v66 : uint64 = v46 + 1UL │
00:01:27 #1906 [Verbose] > │ v44.l0 <- v66 │
00:01:27 #1907 [Verbose] > │ () │
00:01:27 #1908 [Verbose] > │ let v67 : uint64 = System.Convert.ToUInt64 v43.Length │
00:01:27 #1909 [Verbose] > │ let v68 : (string []) = Array.zeroCreate<string> │
00:01:27 #1910 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:27 #1911 [Verbose] > │ let v69 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #1912 [Verbose] > │ while method4(v67, v69) do │
00:01:27 #1913 [Verbose] > │ let v71 : uint64 = v69.l0 │
00:01:27 #1914 [Verbose] > │ let struct (v72 : string, v73 : int64) = v43.[int v71] │
00:01:27 #1915 [Verbose] > │ v68.[int v71] <- v72 │
00:01:27 #1916 [Verbose] > │ let v74 : uint64 = v71 + 1UL │
00:01:27 #1917 [Verbose] > │ v69.l0 <- v74 │
00:01:27 #1918 [Verbose] > │ () │
00:01:27 #1919 [Verbose] > │ let v75 : uint64 = System.Convert.ToUInt64 v68.Length │
00:01:27 #1920 [Verbose] > │ let v76 : bool = v75 <= 1UL │
00:01:27 #1921 [Verbose] > │ if v76 then │
00:01:27 #1922 [Verbose] > │ () │
00:01:27 #1923 [Verbose] > │ else │
00:01:27 #1924 [Verbose] > │ let v77 : string = v68.[int 0UL] │
00:01:27 #1925 [Verbose] > │ let v78 : uint64 = 0UL │
00:01:27 #1926 [Verbose] > │ let v79 : bool = method16(v77, v68, v78) │
00:01:27 #1927 [Verbose] > │ if v79 then │
00:01:27 #1928 [Verbose] > │ () │
00:01:27 #1929 [Verbose] > │ else │
00:01:27 #1930 [Verbose] > │ let v80 : string = $"Challenge error: {v68}" │
00:01:27 #1931 [Verbose] > │ failwith<unit> v80 │
00:01:27 #1932 [Verbose] > │ let v81 : string = $"%A{v29}" │
00:01:27 #1933 [Verbose] > │ let v82 : (string []) = Array.zeroCreate<string> │
00:01:27 #1934 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:27 #1935 [Verbose] > │ let v83 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #1936 [Verbose] > │ while method4(v67, v83) do │
00:01:27 #1937 [Verbose] > │ let v85 : uint64 = v83.l0 │
00:01:27 #1938 [Verbose] > │ let struct (v86 : string, v87 : int64) = v43.[int v85] │
00:01:27 #1939 [Verbose] > │ v82.[int v85] <- v86 │
00:01:27 #1940 [Verbose] > │ let v88 : uint64 = v85 + 1UL │
00:01:27 #1941 [Verbose] > │ v83.l0 <- v88 │
00:01:27 #1942 [Verbose] > │ () │
00:01:27 #1943 [Verbose] > │ let v89 : string = v82.[int 0UL] │
00:01:27 #1944 [Verbose] > │ let v90 : string = $"%A{v89}" │
00:01:27 #1945 [Verbose] > │ let v91 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #1946 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:27 #1947 [Verbose] > │ let v92 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #1948 [Verbose] > │ while method4(v67, v92) do │
00:01:27 #1949 [Verbose] > │ let v94 : uint64 = v92.l0 │
00:01:27 #1950 [Verbose] > │ let struct (v95 : string, v96 : int64) = v43.[int v94] │
00:01:27 #1951 [Verbose] > │ v91.[int v94] <- v96 │
00:01:27 #1952 [Verbose] > │ let v97 : uint64 = v94 + 1UL │
00:01:27 #1953 [Verbose] > │ v92.l0 <- v97 │
00:01:27 #1954 [Verbose] > │ () │
00:01:27 #1955 [Verbose] > │ v24.[int v27] <- struct (v81, v30, v90, v91) │
00:01:27 #1956 [Verbose] > │ let v98 : uint64 = v27 + 1UL │
00:01:27 #1957 [Verbose] > │ v25.l0 <- v98 │
00:01:27 #1958 [Verbose] > │ () │
00:01:27 #1959 [Verbose] > │ let v99 : uint64 = System.Convert.ToUInt64 v24.Length │
00:01:27 #1960 [Verbose] > │ let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:27 #1961 [Verbose] > │ US0)> (System.Convert.ToInt32(v99)) │
00:01:27 #1962 [Verbose] > │ let v101 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #1963 [Verbose] > │ while method4(v99, v101) do │
00:01:27 #1964 [Verbose] > │ let v103 : uint64 = v101.l0 │
00:01:27 #1965 [Verbose] > │ let struct (v104 : string, v105 : string, v106 : string, v107 : │
00:01:27 #1966 [Verbose] > │ (int64 [])) = v24.[int v103] │
00:01:27 #1967 [Verbose] > │ let v108 : uint64 = System.Convert.ToUInt64 v107.Length │
00:01:27 #1968 [Verbose] > │ let v109 : UH4 = UH4_1 │
00:01:27 #1969 [Verbose] > │ let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2 │
00:01:27 #1970 [Verbose] > │ while method17(v108, v110) do │
00:01:27 #1971 [Verbose] > │ let v112 : uint64 = v110.l0 │
00:01:27 #1972 [Verbose] > │ let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2 │
00:01:27 #1973 [Verbose] > │ let v115 : int64 = v107.[int v112] │
00:01:27 #1974 [Verbose] > │ let v116 : int64 = v114 + 1L │
00:01:27 #1975 [Verbose] > │ let v117 : uint64 = v112 + 1UL │
00:01:27 #1976 [Verbose] > │ let v118 : UH4 = UH4_0(v114, v115, v113) │
00:01:27 #1977 [Verbose] > │ v110.l0 <- v117 │
00:01:27 #1978 [Verbose] > │ v110.l1 <- v118 │
00:01:27 #1979 [Verbose] > │ v110.l2 <- v116 │
00:01:27 #1980 [Verbose] > │ () │
00:01:27 #1981 [Verbose] > │ let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2 │
00:01:27 #1982 [Verbose] > │ let v121 : UH4 = UH4_1 │
00:01:27 #1983 [Verbose] > │ let v122 : UH4 = method18(v119, v121) │
00:01:27 #1984 [Verbose] > │ let v123 : (struct (int64 * int64) []) = method19(v122) │
00:01:27 #1985 [Verbose] > │ let v124 : int32 = v123.Length │
00:01:27 #1986 [Verbose] > │ let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:01:27 #1987 [Verbose] > │ (int64 * int64)> (v124) │
00:01:27 #1988 [Verbose] > │ let v126 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #1989 [Verbose] > │ while method5(v124, v126) do │
00:01:27 #1990 [Verbose] > │ let v128 : int32 = v126.l0 │
00:01:27 #1991 [Verbose] > │ let struct (v129 : int64, v130 : int64) = v123.[int v128] │
00:01:27 #1992 [Verbose] > │ let v131 : int64 = v129 + 1L │
00:01:27 #1993 [Verbose] > │ v125.[int v128] <- struct (v131, v130) │
00:01:27 #1994 [Verbose] > │ let v132 : int32 = v128 + 1 │
00:01:27 #1995 [Verbose] > │ v126.l0 <- v132 │
00:01:27 #1996 [Verbose] > │ () │
00:01:27 #1997 [Verbose] > │ let v133 : (struct (int64 * int64) -> int64) = closure4() │
00:01:27 #1998 [Verbose] > │ let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133 │
00:01:27 #1999 [Verbose] > │ let struct (v135 : int64, v136 : int64) = v134.[int 0] │
00:01:27 #2000 [Verbose] > │ let v137 : string = $"%A{struct (v135, v136)}" │
00:01:27 #2001 [Verbose] > │ let v138 : bool = v104 = v106 │
00:01:27 #2002 [Verbose] > │ let v143 : US0 = │
00:01:27 #2003 [Verbose] > │ if v138 then │
00:01:27 #2004 [Verbose] > │ let v139 : System.ConsoleColor = │
00:01:27 #2005 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:01:27 #2006 [Verbose] > │ US0_1(v139) │
00:01:27 #2007 [Verbose] > │ else │
00:01:27 #2008 [Verbose] > │ let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:01:27 #2009 [Verbose] > │ US0_1(v141) │
00:01:27 #2010 [Verbose] > │ let v144 : UH2 = UH2_1 │
00:01:27 #2011 [Verbose] > │ let v145 : UH2 = UH2_0(v137, v144) │
00:01:27 #2012 [Verbose] > │ let v146 : UH2 = UH2_0(v106, v145) │
00:01:27 #2013 [Verbose] > │ let v147 : UH2 = UH2_0(v104, v146) │
00:01:27 #2014 [Verbose] > │ let v148 : UH2 = UH2_0(v105, v147) │
00:01:27 #2015 [Verbose] > │ v100.[int v103] <- struct (v148, v143) │
00:01:27 #2016 [Verbose] > │ let v149 : uint64 = v103 + 1UL │
00:01:27 #2017 [Verbose] > │ v101.l0 <- v149 │
00:01:27 #2018 [Verbose] > │ () │
00:01:27 #2019 [Verbose] > │ let v150 : string = "Input" │
00:01:27 #2020 [Verbose] > │ let v151 : string = "Expected" │
00:01:27 #2021 [Verbose] > │ let v152 : string = "Result" │
00:01:27 #2022 [Verbose] > │ let v153 : string = "Best" │
00:01:27 #2023 [Verbose] > │ let v154 : UH2 = UH2_1 │
00:01:27 #2024 [Verbose] > │ let v155 : UH2 = UH2_0(v153, v154) │
00:01:27 #2025 [Verbose] > │ let v156 : UH2 = UH2_0(v152, v155) │
00:01:27 #2026 [Verbose] > │ let v157 : UH2 = UH2_0(v151, v156) │
00:01:27 #2027 [Verbose] > │ let v158 : UH2 = UH2_0(v150, v157) │
00:01:27 #2028 [Verbose] > │ let v159 : US0 = US0_0 │
00:01:27 #2029 [Verbose] > │ let v160 : string = "---" │
00:01:27 #2030 [Verbose] > │ let v161 : UH2 = UH2_1 │
00:01:27 #2031 [Verbose] > │ let v162 : UH2 = UH2_0(v160, v161) │
00:01:27 #2032 [Verbose] > │ let v163 : UH2 = UH2_0(v160, v162) │
00:01:27 #2033 [Verbose] > │ let v164 : UH2 = UH2_0(v160, v163) │
00:01:27 #2034 [Verbose] > │ let v165 : UH2 = UH2_0(v160, v164) │
00:01:27 #2035 [Verbose] > │ let v166 : US0 = US0_0 │
00:01:27 #2036 [Verbose] > │ let v167 : UH5 = UH5_1 │
00:01:27 #2037 [Verbose] > │ let v168 : UH5 = UH5_0(v165, v166, v167) │
00:01:27 #2038 [Verbose] > │ let v169 : UH5 = UH5_0(v158, v159, v168) │
00:01:27 #2039 [Verbose] > │ let v170 : (struct (UH2 * US0) []) = method22(v169) │
00:01:27 #2040 [Verbose] > │ let v171 : uint64 = System.Convert.ToUInt64 v170.Length │
00:01:27 #2041 [Verbose] > │ let v172 : uint64 = System.Convert.ToUInt64 v100.Length │
00:01:27 #2042 [Verbose] > │ let v173 : uint64 = v171 + v172 │
00:01:27 #2043 [Verbose] > │ let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:27 #2044 [Verbose] > │ US0)> (System.Convert.ToInt32(v173)) │
00:01:27 #2045 [Verbose] > │ let v175 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2046 [Verbose] > │ while method4(v173, v175) do │
00:01:27 #2047 [Verbose] > │ let v177 : uint64 = v175.l0 │
00:01:27 #2048 [Verbose] > │ let v178 : bool = v177 < v171 │
00:01:27 #2049 [Verbose] > │ let struct (v184 : UH2, v185 : US0) = │
00:01:27 #2050 [Verbose] > │ if v178 then │
00:01:27 #2051 [Verbose] > │ let struct (v179 : UH2, v180 : US0) = v170.[int v177] │
00:01:27 #2052 [Verbose] > │ struct (v179, v180) │
00:01:27 #2053 [Verbose] > │ else │
00:01:27 #2054 [Verbose] > │ let v181 : uint64 = v177 - v171 │
00:01:27 #2055 [Verbose] > │ let struct (v182 : UH2, v183 : US0) = v100.[int v181] │
00:01:27 #2056 [Verbose] > │ struct (v182, v183) │
00:01:27 #2057 [Verbose] > │ v174.[int v177] <- struct (v184, v185) │
00:01:27 #2058 [Verbose] > │ let v186 : uint64 = v177 + 1UL │
00:01:27 #2059 [Verbose] > │ v175.l0 <- v186 │
00:01:27 #2060 [Verbose] > │ () │
00:01:27 #2061 [Verbose] > │ let v187 : uint64 = System.Convert.ToUInt64 v174.Length │
00:01:27 #2062 [Verbose] > │ let v188 : ((string []) []) = Array.zeroCreate<(string [])> │
00:01:27 #2063 [Verbose] > │ (System.Convert.ToInt32(v187)) │
00:01:27 #2064 [Verbose] > │ let v189 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2065 [Verbose] > │ while method4(v187, v189) do │
00:01:27 #2066 [Verbose] > │ let v191 : uint64 = v189.l0 │
00:01:27 #2067 [Verbose] > │ let struct (v192 : UH2, v193 : US0) = v174.[int v191] │
00:01:27 #2068 [Verbose] > │ let v194 : (string []) = method25(v192) │
00:01:27 #2069 [Verbose] > │ v188.[int v191] <- v194 │
00:01:27 #2070 [Verbose] > │ let v195 : uint64 = v191 + 1UL │
00:01:27 #2071 [Verbose] > │ v189.l0 <- v195 │
00:01:27 #2072 [Verbose] > │ () │
00:01:27 #2073 [Verbose] > │ let v196 : ((string []) []) = v188 |> Array.transpose │
00:01:27 #2074 [Verbose] > │ let v197 : uint64 = System.Convert.ToUInt64 v196.Length │
00:01:27 #2075 [Verbose] > │ let v198 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2076 [Verbose] > │ (System.Convert.ToInt32(v197)) │
00:01:27 #2077 [Verbose] > │ let v199 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2078 [Verbose] > │ while method4(v197, v199) do │
00:01:27 #2079 [Verbose] > │ let v201 : uint64 = v199.l0 │
00:01:27 #2080 [Verbose] > │ let v202 : (string []) = v196.[int v201] │
00:01:27 #2081 [Verbose] > │ let v203 : uint64 = System.Convert.ToUInt64 v202.Length │
00:01:27 #2082 [Verbose] > │ let v204 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2083 [Verbose] > │ (System.Convert.ToInt32(v203)) │
00:01:27 #2084 [Verbose] > │ let v205 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2085 [Verbose] > │ while method4(v203, v205) do │
00:01:27 #2086 [Verbose] > │ let v207 : uint64 = v205.l0 │
00:01:27 #2087 [Verbose] > │ let v208 : string = v202.[int v207] │
00:01:27 #2088 [Verbose] > │ let v209 : int64 = System.Convert.ToInt64 v208.Length │
00:01:27 #2089 [Verbose] > │ v204.[int v207] <- v209 │
00:01:27 #2090 [Verbose] > │ let v210 : uint64 = v207 + 1UL │
00:01:27 #2091 [Verbose] > │ v205.l0 <- v210 │
00:01:27 #2092 [Verbose] > │ () │
00:01:27 #2093 [Verbose] > │ let v211 : (int64 []) = v204 |> Array.sortDescending │
00:01:27 #2094 [Verbose] > │ let v212 : int64 option = v211 |> Array.tryItem 0 │
00:01:27 #2095 [Verbose] > │ let v213 : (int64 -> US1) = closure5() │
00:01:27 #2096 [Verbose] > │ let v214 : US1 = US1_0 │
00:01:27 #2097 [Verbose] > │ let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │
00:01:27 #2098 [Verbose] > │ let v218 : int64 = │
00:01:27 #2099 [Verbose] > │ match v215 with │
00:01:27 #2100 [Verbose] > │ | US1_0 -> (* None *) │
00:01:27 #2101 [Verbose] > │ 0L │
00:01:27 #2102 [Verbose] > │ | US1_1(v216) -> (* Some *) │
00:01:27 #2103 [Verbose] > │ v216 │
00:01:27 #2104 [Verbose] > │ v198.[int v201] <- v218 │
00:01:27 #2105 [Verbose] > │ let v219 : uint64 = v201 + 1UL │
00:01:27 #2106 [Verbose] > │ v199.l0 <- v219 │
00:01:27 #2107 [Verbose] > │ () │
00:01:27 #2108 [Verbose] > │ let v220 : uint64 = System.Convert.ToUInt64 v198.Length │
00:01:27 #2109 [Verbose] > │ let v221 : UH6 = UH6_1 │
00:01:27 #2110 [Verbose] > │ let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3 │
00:01:27 #2111 [Verbose] > │ while method28(v220, v222) do │
00:01:27 #2112 [Verbose] > │ let v224 : uint64 = v222.l0 │
00:01:27 #2113 [Verbose] > │ let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2 │
00:01:27 #2114 [Verbose] > │ let v227 : int64 = v198.[int v224] │
00:01:27 #2115 [Verbose] > │ let v228 : int32 = v226 + 1 │
00:01:27 #2116 [Verbose] > │ let v229 : uint64 = v224 + 1UL │
00:01:27 #2117 [Verbose] > │ let v230 : UH6 = UH6_0(v226, v227, v225) │
00:01:27 #2118 [Verbose] > │ v222.l0 <- v229 │
00:01:27 #2119 [Verbose] > │ v222.l1 <- v230 │
00:01:27 #2120 [Verbose] > │ v222.l2 <- v228 │
00:01:27 #2121 [Verbose] > │ () │
00:01:27 #2122 [Verbose] > │ let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2 │
00:01:27 #2123 [Verbose] > │ let v233 : UH6 = UH6_1 │
00:01:27 #2124 [Verbose] > │ let v234 : UH6 = method29(v231, v233) │
00:01:27 #2125 [Verbose] > │ let v235 : (struct (int32 * int64) []) = method30(v234) │
00:01:27 #2126 [Verbose] > │ let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │
00:01:27 #2127 [Verbose] > │ a, b) |> Map.ofArray │
00:01:27 #2128 [Verbose] > │ let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:01:27 #2129 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187)) │
00:01:27 #2130 [Verbose] > │ let v238 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2131 [Verbose] > │ while method4(v187, v238) do │
00:01:27 #2132 [Verbose] > │ let v240 : uint64 = v238.l0 │
00:01:27 #2133 [Verbose] > │ let struct (v241 : UH2, v242 : US0) = v174.[int v240] │
00:01:27 #2134 [Verbose] > │ let v243 : UH7 = UH7_1 │
00:01:27 #2135 [Verbose] > │ let v244 : int32 = 0 │
00:01:27 #2136 [Verbose] > │ let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244) │
00:01:27 #2137 [Verbose] > │ let v247 : UH7 = UH7_1 │
00:01:27 #2138 [Verbose] > │ let v248 : UH7 = method34(v245, v247) │
00:01:27 #2139 [Verbose] > │ let v249 : UH2 = UH2_1 │
00:01:27 #2140 [Verbose] > │ let v250 : UH2 = method35(v236, v248, v249) │
00:01:27 #2141 [Verbose] > │ let v251 : (string []) = method9(v250) │
00:01:27 #2142 [Verbose] > │ v237.[int v240] <- struct (v251, v242) │
00:01:27 #2143 [Verbose] > │ let v252 : uint64 = v240 + 1UL │
00:01:27 #2144 [Verbose] > │ v238.l0 <- v252 │
00:01:27 #2145 [Verbose] > │ () │
00:01:27 #2146 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2147 [Verbose] > │ let v253 : uint64 = System.Convert.ToUInt64 v237.Length │
00:01:27 #2148 [Verbose] > │ let v254 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2149 [Verbose] > │ while method4(v253, v254) do │
00:01:27 #2150 [Verbose] > │ let v256 : uint64 = v254.l0 │
00:01:27 #2151 [Verbose] > │ let struct (v257 : (string []), v258 : US0) = v237.[int v256] │
00:01:27 #2152 [Verbose] > │ match v258 with │
00:01:27 #2153 [Verbose] > │ | US0_0 -> (* None *) │
00:01:27 #2154 [Verbose] > │ let mutable result = None │
00:01:27 #2155 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2156 [Verbose] > │ () │
00:01:27 #2157 [Verbose] > │ #endif │
00:01:27 #2158 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2159 [Verbose] > │ () │
00:01:27 #2160 [Verbose] > │ #endif │
00:01:27 #2161 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2162 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2163 [Verbose] > │ () │
00:01:27 #2164 [Verbose] > │ #endif │
00:01:27 #2165 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2166 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2167 [Verbose] > │ () │
00:01:27 #2168 [Verbose] > │ #endif │
00:01:27 #2169 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2170 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2171 [Verbose] > │ () │
00:01:27 #2172 [Verbose] > │ #endif │
00:01:27 #2173 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2174 [Verbose] > │ result |> Option.get │
00:01:27 #2175 [Verbose] > │ () │
00:01:27 #2176 [Verbose] > │ | US0_1(v259) -> (* Some *) │
00:01:27 #2177 [Verbose] > │ let mutable result = None │
00:01:27 #2178 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2179 [Verbose] > │ () │
00:01:27 #2180 [Verbose] > │ #endif │
00:01:27 #2181 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2182 [Verbose] > │ () │
00:01:27 #2183 [Verbose] > │ #endif │
00:01:27 #2184 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2185 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:27 #2186 [Verbose] > │ () │
00:01:27 #2187 [Verbose] > │ #endif │
00:01:27 #2188 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2189 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:27 #2190 [Verbose] > │ () │
00:01:27 #2191 [Verbose] > │ #endif │
00:01:27 #2192 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2193 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:27 #2194 [Verbose] > │ () │
00:01:27 #2195 [Verbose] > │ #endif │
00:01:27 #2196 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2197 [Verbose] > │ result |> Option.get │
00:01:27 #2198 [Verbose] > │ () │
00:01:27 #2199 [Verbose] > │ let v260 : string = "\t| " │
00:01:27 #2200 [Verbose] > │ let v261 : string = System.String.Join (v260, v257) │
00:01:27 #2201 [Verbose] > │ System.Console.WriteLine v261 │
00:01:27 #2202 [Verbose] > │ let mutable result = None │
00:01:27 #2203 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2204 [Verbose] > │ () │
00:01:27 #2205 [Verbose] > │ #endif │
00:01:27 #2206 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2207 [Verbose] > │ () │
00:01:27 #2208 [Verbose] > │ #endif │
00:01:27 #2209 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2210 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2211 [Verbose] > │ () │
00:01:27 #2212 [Verbose] > │ #endif │
00:01:27 #2213 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2214 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2215 [Verbose] > │ () │
00:01:27 #2216 [Verbose] > │ #endif │
00:01:27 #2217 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2218 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2219 [Verbose] > │ () │
00:01:27 #2220 [Verbose] > │ #endif │
00:01:27 #2221 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2222 [Verbose] > │ result |> Option.get │
00:01:27 #2223 [Verbose] > │ let v262 : uint64 = v256 + 1UL │
00:01:27 #2224 [Verbose] > │ v254.l0 <- v262 │
00:01:27 #2225 [Verbose] > │ () │
00:01:27 #2226 [Verbose] > │ let v263 : ((float []) []) = Array.zeroCreate<(float [])> │
00:01:27 #2227 [Verbose] > │ (System.Convert.ToInt32(v99)) │
00:01:27 #2228 [Verbose] > │ let v264 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2229 [Verbose] > │ while method4(v99, v264) do │
00:01:27 #2230 [Verbose] > │ let v266 : uint64 = v264.l0 │
00:01:27 #2231 [Verbose] > │ let struct (v267 : string, v268 : string, v269 : string, v270 : │
00:01:27 #2232 [Verbose] > │ (int64 [])) = v24.[int v266] │
00:01:27 #2233 [Verbose] > │ let v271 : (int64 -> float) = float │
00:01:27 #2234 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v270.Length │
00:01:27 #2235 [Verbose] > │ let v273 : (float []) = Array.zeroCreate<float> │
00:01:27 #2236 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:01:27 #2237 [Verbose] > │ let v274 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2238 [Verbose] > │ while method4(v272, v274) do │
00:01:27 #2239 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:01:27 #2240 [Verbose] > │ let v277 : int64 = v270.[int v276] │
00:01:27 #2241 [Verbose] > │ let v278 : float = v271 v277 │
00:01:27 #2242 [Verbose] > │ v273.[int v276] <- v278 │
00:01:27 #2243 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:01:27 #2244 [Verbose] > │ v274.l0 <- v279 │
00:01:27 #2245 [Verbose] > │ () │
00:01:27 #2246 [Verbose] > │ v263.[int v266] <- v273 │
00:01:27 #2247 [Verbose] > │ let v280 : uint64 = v266 + 1UL │
00:01:27 #2248 [Verbose] > │ v264.l0 <- v280 │
00:01:27 #2249 [Verbose] > │ () │
00:01:27 #2250 [Verbose] > │ let v281 : ((float []) []) = v263 |> Array.transpose │
00:01:27 #2251 [Verbose] > │ let v282 : uint64 = System.Convert.ToUInt64 v281.Length │
00:01:27 #2252 [Verbose] > │ let v283 : (float []) = Array.zeroCreate<float> │
00:01:27 #2253 [Verbose] > │ (System.Convert.ToInt32(v282)) │
00:01:27 #2254 [Verbose] > │ let v284 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2255 [Verbose] > │ while method4(v282, v284) do │
00:01:27 #2256 [Verbose] > │ let v286 : uint64 = v284.l0 │
00:01:27 #2257 [Verbose] > │ let v287 : (float []) = v281.[int v286] │
00:01:27 #2258 [Verbose] > │ let v288 : float = v287 |> Array.average │
00:01:27 #2259 [Verbose] > │ v283.[int v286] <- v288 │
00:01:27 #2260 [Verbose] > │ let v289 : uint64 = v286 + 1UL │
00:01:27 #2261 [Verbose] > │ v284.l0 <- v289 │
00:01:27 #2262 [Verbose] > │ () │
00:01:27 #2263 [Verbose] > │ let v290 : (float -> int64) = int64 │
00:01:27 #2264 [Verbose] > │ let v291 : uint64 = System.Convert.ToUInt64 v283.Length │
00:01:27 #2265 [Verbose] > │ let v292 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2266 [Verbose] > │ (System.Convert.ToInt32(v291)) │
00:01:27 #2267 [Verbose] > │ let v293 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2268 [Verbose] > │ while method4(v291, v293) do │
00:01:27 #2269 [Verbose] > │ let v295 : uint64 = v293.l0 │
00:01:27 #2270 [Verbose] > │ let v296 : float = v283.[int v295] │
00:01:27 #2271 [Verbose] > │ let v297 : int64 = v290 v296 │
00:01:27 #2272 [Verbose] > │ v292.[int v295] <- v297 │
00:01:27 #2273 [Verbose] > │ let v298 : uint64 = v295 + 1UL │
00:01:27 #2274 [Verbose] > │ v293.l0 <- v298 │
00:01:27 #2275 [Verbose] > │ () │
00:01:27 #2276 [Verbose] > │ let v299 : uint64 = System.Convert.ToUInt64 v292.Length │
00:01:27 #2277 [Verbose] > │ let v300 : UH6 = UH6_1 │
00:01:27 #2278 [Verbose] > │ let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3 │
00:01:27 #2279 [Verbose] > │ while method28(v299, v301) do │
00:01:27 #2280 [Verbose] > │ let v303 : uint64 = v301.l0 │
00:01:27 #2281 [Verbose] > │ let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2 │
00:01:27 #2282 [Verbose] > │ let v306 : int64 = v292.[int v303] │
00:01:27 #2283 [Verbose] > │ let v307 : int32 = v305 + 1 │
00:01:27 #2284 [Verbose] > │ let v308 : uint64 = v303 + 1UL │
00:01:27 #2285 [Verbose] > │ let v309 : UH6 = UH6_0(v305, v306, v304) │
00:01:27 #2286 [Verbose] > │ v301.l0 <- v308 │
00:01:27 #2287 [Verbose] > │ v301.l1 <- v309 │
00:01:27 #2288 [Verbose] > │ v301.l2 <- v307 │
00:01:27 #2289 [Verbose] > │ () │
00:01:27 #2290 [Verbose] > │ let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2 │
00:01:27 #2291 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:01:27 #2292 [Verbose] > │ let v313 : UH6 = method29(v310, v312) │
00:01:27 #2293 [Verbose] > │ let v314 : (struct (int32 * int64) []) = method36(v313) │
00:01:27 #2294 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2295 [Verbose] > │ let v315 : string = "Average Ranking " │
00:01:27 #2296 [Verbose] > │ System.Console.WriteLine v315 │
00:01:27 #2297 [Verbose] > │ let v316 : (struct (int32 * int64) -> int64) = closure6() │
00:01:27 #2298 [Verbose] > │ let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316 │
00:01:27 #2299 [Verbose] > │ let v318 : uint64 = System.Convert.ToUInt64 v317.Length │
00:01:27 #2300 [Verbose] > │ let v319 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2301 [Verbose] > │ while method4(v318, v319) do │
00:01:27 #2302 [Verbose] > │ let v321 : uint64 = v319.l0 │
00:01:27 #2303 [Verbose] > │ let struct (v322 : int32, v323 : int64) = v317.[int v321] │
00:01:27 #2304 [Verbose] > │ let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │
00:01:27 #2305 [Verbose] > │ " │
00:01:27 #2306 [Verbose] > │ System.Console.WriteLine v324 │
00:01:27 #2307 [Verbose] > │ let v325 : uint64 = v321 + 1UL │
00:01:27 #2308 [Verbose] > │ v319.l0 <- v325 │
00:01:27 #2309 [Verbose] > │ () │
00:01:27 #2310 [Verbose] > │ () │
00:01:27 #2311 [Verbose] > │ and method0 () : unit = │
00:01:27 #2312 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:01:27 #2313 [Verbose] > │ let v1 : string = nameof v0 │
00:01:27 #2314 [Verbose] > │ let v2 : string = "" │
00:01:27 #2315 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2316 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2317 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:01:27 #2318 [Verbose] > │ System.Console.WriteLine v3 │
00:01:27 #2319 [Verbose] > │ let v4 : string = "abc" │
00:01:27 #2320 [Verbose] > │ let v5 : string = "bca cab abc" │
00:01:27 #2321 [Verbose] > │ let v6 : string = "abcde" │
00:01:27 #2322 [Verbose] > │ let v7 : string = "bcdea cdeab deabc eabcd abcde" │
00:01:27 #2323 [Verbose] > │ let v8 : string = "abcdefghi" │
00:01:27 #2324 [Verbose] > │ let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:01:27 #2325 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi" │
00:01:27 #2326 [Verbose] > │ let v10 : string = "abab" │
00:01:27 #2327 [Verbose] > │ let v11 : string = "baba abab baba abab" │
00:01:27 #2328 [Verbose] > │ let v12 : string = "aa" │
00:01:27 #2329 [Verbose] > │ let v13 : string = "aa aa" │
00:01:27 #2330 [Verbose] > │ let v14 : string = "z" │
00:01:27 #2331 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:01:27 #2332 [Verbose] > │ let v16 : UH0 = UH0_0(v14, v14, v15) │
00:01:27 #2333 [Verbose] > │ let v17 : UH0 = UH0_0(v12, v13, v16) │
00:01:27 #2334 [Verbose] > │ let v18 : UH0 = UH0_0(v10, v11, v17) │
00:01:27 #2335 [Verbose] > │ let v19 : UH0 = UH0_0(v8, v9, v18) │
00:01:27 #2336 [Verbose] > │ let v20 : UH0 = UH0_0(v6, v7, v19) │
00:01:27 #2337 [Verbose] > │ let v21 : UH0 = UH0_0(v4, v5, v20) │
00:01:27 #2338 [Verbose] > │ let v22 : (struct (string * string) []) = method1(v21) │
00:01:27 #2339 [Verbose] > │ let v23 : uint64 = System.Convert.ToUInt64 v22.Length │
00:01:27 #2340 [Verbose] > │ let v24 : (struct (string * string * string * (int64 [])) []) = │
00:01:27 #2341 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:01:27 #2342 [Verbose] > │ (System.Convert.ToInt32(v23)) │
00:01:27 #2343 [Verbose] > │ let v25 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2344 [Verbose] > │ while method4(v23, v25) do │
00:01:27 #2345 [Verbose] > │ let v27 : uint64 = v25.l0 │
00:01:27 #2346 [Verbose] > │ let struct (v28 : string, v29 : string) = v22.[int v27] │
00:01:27 #2347 [Verbose] > │ let v30 : string = $"%A{v28}" │
00:01:27 #2348 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2349 [Verbose] > │ let v31 : string = $"Solution: {v30} " │
00:01:27 #2350 [Verbose] > │ System.Console.WriteLine v31 │
00:01:27 #2351 [Verbose] > │ let v32 : int32 = 0 │
00:01:27 #2352 [Verbose] > │ let v33 : string = "F" │
00:01:27 #2353 [Verbose] > │ let v34 : (string -> string) = closure1() │
00:01:27 #2354 [Verbose] > │ let v35 : int32 = 1 │
00:01:27 #2355 [Verbose] > │ let v36 : string = "FA" │
00:01:27 #2356 [Verbose] > │ let v37 : (string -> string) = closure2() │
00:01:27 #2357 [Verbose] > │ let v38 : UH3 = UH3_1 │
00:01:27 #2358 [Verbose] > │ let v39 : UH3 = UH3_0(v35, v36, v37, v38) │
00:01:27 #2359 [Verbose] > │ let v40 : UH3 = UH3_0(v32, v33, v34, v39) │
00:01:27 #2360 [Verbose] > │ let v41 : (struct (int32 * string * (string -> string)) []) = │
00:01:27 #2361 [Verbose] > │ method12(v40) │
00:01:27 #2362 [Verbose] > │ let v42 : uint64 = System.Convert.ToUInt64 v41.Length │
00:01:27 #2363 [Verbose] > │ let v43 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:01:27 #2364 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42)) │
00:01:27 #2365 [Verbose] > │ let v44 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2366 [Verbose] > │ while method4(v42, v44) do │
00:01:27 #2367 [Verbose] > │ let v46 : uint64 = v44.l0 │
00:01:27 #2368 [Verbose] > │ let struct (v47 : int32, v48 : string, v49 : (string -> string)) │
00:01:27 #2369 [Verbose] > │ = v41.[int v46] │
00:01:27 #2370 [Verbose] > │ let mutable result = None │
00:01:27 #2371 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2372 [Verbose] > │ () │
00:01:27 #2373 [Verbose] > │ #endif │
00:01:27 #2374 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2375 [Verbose] > │ () │
00:01:27 #2376 [Verbose] > │ #endif │
00:01:27 #2377 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2378 [Verbose] > │ System.GC.Collect () │
00:01:27 #2379 [Verbose] > │ () │
00:01:27 #2380 [Verbose] > │ #endif │
00:01:27 #2381 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2382 [Verbose] > │ System.GC.Collect () │
00:01:27 #2383 [Verbose] > │ () │
00:01:27 #2384 [Verbose] > │ #endif │
00:01:27 #2385 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2386 [Verbose] > │ System.GC.Collect () │
00:01:27 #2387 [Verbose] > │ () │
00:01:27 #2388 [Verbose] > │ #endif │
00:01:27 #2389 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2390 [Verbose] > │ result |> Option.get │
00:01:27 #2391 [Verbose] > │ let v50 : (unit -> System.Diagnostics.Stopwatch) = │
00:01:27 #2392 [Verbose] > │ System.Diagnostics.Stopwatch │
00:01:27 #2393 [Verbose] > │ let v51 : System.Diagnostics.Stopwatch = v50 () │
00:01:27 #2394 [Verbose] > │ v51.Start () │
00:01:27 #2395 [Verbose] > │ let v52 : int64 = v51.ElapsedMilliseconds │
00:01:27 #2396 [Verbose] > │ let v53 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:01:27 #2397 [Verbose] > │ let v54 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #2398 [Verbose] > │ while method15(v54) do │
00:01:27 #2399 [Verbose] > │ let v56 : int32 = v54.l0 │
00:01:27 #2400 [Verbose] > │ v53.[int v56] <- v56 │
00:01:27 #2401 [Verbose] > │ let v57 : int32 = v56 + 1 │
00:01:27 #2402 [Verbose] > │ v54.l0 <- v57 │
00:01:27 #2403 [Verbose] > │ () │
00:01:27 #2404 [Verbose] > │ let v58 : (int32 -> string) = closure3(v28, v49) │
00:01:27 #2405 [Verbose] > │ let v59 : (string []) = v53 |> Array.Parallel.map v58 │
00:01:27 #2406 [Verbose] > │ let v60 : int32 = v59.Length │
00:01:27 #2407 [Verbose] > │ let v61 : int32 = v60 - 1 │
00:01:27 #2408 [Verbose] > │ let v62 : string = v59.[int v61] │
00:01:27 #2409 [Verbose] > │ let v63 : int64 = v51.ElapsedMilliseconds │
00:01:27 #2410 [Verbose] > │ let v64 : int64 = v63 - v52 │
00:01:27 #2411 [Verbose] > │ let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64} " │
00:01:27 #2412 [Verbose] > │ System.Console.WriteLine v65 │
00:01:27 #2413 [Verbose] > │ v43.[int v46] <- struct (v62, v64) │
00:01:27 #2414 [Verbose] > │ let v66 : uint64 = v46 + 1UL │
00:01:27 #2415 [Verbose] > │ v44.l0 <- v66 │
00:01:27 #2416 [Verbose] > │ () │
00:01:27 #2417 [Verbose] > │ let v67 : uint64 = System.Convert.ToUInt64 v43.Length │
00:01:27 #2418 [Verbose] > │ let v68 : (string []) = Array.zeroCreate<string> │
00:01:27 #2419 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:27 #2420 [Verbose] > │ let v69 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2421 [Verbose] > │ while method4(v67, v69) do │
00:01:27 #2422 [Verbose] > │ let v71 : uint64 = v69.l0 │
00:01:27 #2423 [Verbose] > │ let struct (v72 : string, v73 : int64) = v43.[int v71] │
00:01:27 #2424 [Verbose] > │ v68.[int v71] <- v72 │
00:01:27 #2425 [Verbose] > │ let v74 : uint64 = v71 + 1UL │
00:01:27 #2426 [Verbose] > │ v69.l0 <- v74 │
00:01:27 #2427 [Verbose] > │ () │
00:01:27 #2428 [Verbose] > │ let v75 : uint64 = System.Convert.ToUInt64 v68.Length │
00:01:27 #2429 [Verbose] > │ let v76 : bool = v75 <= 1UL │
00:01:27 #2430 [Verbose] > │ if v76 then │
00:01:27 #2431 [Verbose] > │ () │
00:01:27 #2432 [Verbose] > │ else │
00:01:27 #2433 [Verbose] > │ let v77 : string = v68.[int 0UL] │
00:01:27 #2434 [Verbose] > │ let v78 : uint64 = 0UL │
00:01:27 #2435 [Verbose] > │ let v79 : bool = method16(v77, v68, v78) │
00:01:27 #2436 [Verbose] > │ if v79 then │
00:01:27 #2437 [Verbose] > │ () │
00:01:27 #2438 [Verbose] > │ else │
00:01:27 #2439 [Verbose] > │ let v80 : string = $"Challenge error: {v68}" │
00:01:27 #2440 [Verbose] > │ failwith<unit> v80 │
00:01:27 #2441 [Verbose] > │ let v81 : string = $"%A{v29}" │
00:01:27 #2442 [Verbose] > │ let v82 : (string []) = Array.zeroCreate<string> │
00:01:27 #2443 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:27 #2444 [Verbose] > │ let v83 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2445 [Verbose] > │ while method4(v67, v83) do │
00:01:27 #2446 [Verbose] > │ let v85 : uint64 = v83.l0 │
00:01:27 #2447 [Verbose] > │ let struct (v86 : string, v87 : int64) = v43.[int v85] │
00:01:27 #2448 [Verbose] > │ v82.[int v85] <- v86 │
00:01:27 #2449 [Verbose] > │ let v88 : uint64 = v85 + 1UL │
00:01:27 #2450 [Verbose] > │ v83.l0 <- v88 │
00:01:27 #2451 [Verbose] > │ () │
00:01:27 #2452 [Verbose] > │ let v89 : string = v82.[int 0UL] │
00:01:27 #2453 [Verbose] > │ let v90 : string = $"%A{v89}" │
00:01:27 #2454 [Verbose] > │ let v91 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2455 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:27 #2456 [Verbose] > │ let v92 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2457 [Verbose] > │ while method4(v67, v92) do │
00:01:27 #2458 [Verbose] > │ let v94 : uint64 = v92.l0 │
00:01:27 #2459 [Verbose] > │ let struct (v95 : string, v96 : int64) = v43.[int v94] │
00:01:27 #2460 [Verbose] > │ v91.[int v94] <- v96 │
00:01:27 #2461 [Verbose] > │ let v97 : uint64 = v94 + 1UL │
00:01:27 #2462 [Verbose] > │ v92.l0 <- v97 │
00:01:27 #2463 [Verbose] > │ () │
00:01:27 #2464 [Verbose] > │ v24.[int v27] <- struct (v81, v30, v90, v91) │
00:01:27 #2465 [Verbose] > │ let v98 : uint64 = v27 + 1UL │
00:01:27 #2466 [Verbose] > │ v25.l0 <- v98 │
00:01:27 #2467 [Verbose] > │ () │
00:01:27 #2468 [Verbose] > │ let v99 : uint64 = System.Convert.ToUInt64 v24.Length │
00:01:27 #2469 [Verbose] > │ let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:27 #2470 [Verbose] > │ US0)> (System.Convert.ToInt32(v99)) │
00:01:27 #2471 [Verbose] > │ let v101 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2472 [Verbose] > │ while method4(v99, v101) do │
00:01:27 #2473 [Verbose] > │ let v103 : uint64 = v101.l0 │
00:01:27 #2474 [Verbose] > │ let struct (v104 : string, v105 : string, v106 : string, v107 : │
00:01:27 #2475 [Verbose] > │ (int64 [])) = v24.[int v103] │
00:01:27 #2476 [Verbose] > │ let v108 : uint64 = System.Convert.ToUInt64 v107.Length │
00:01:27 #2477 [Verbose] > │ let v109 : UH4 = UH4_1 │
00:01:27 #2478 [Verbose] > │ let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2 │
00:01:27 #2479 [Verbose] > │ while method17(v108, v110) do │
00:01:27 #2480 [Verbose] > │ let v112 : uint64 = v110.l0 │
00:01:27 #2481 [Verbose] > │ let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2 │
00:01:27 #2482 [Verbose] > │ let v115 : int64 = v107.[int v112] │
00:01:27 #2483 [Verbose] > │ let v116 : int64 = v114 + 1L │
00:01:27 #2484 [Verbose] > │ let v117 : uint64 = v112 + 1UL │
00:01:27 #2485 [Verbose] > │ let v118 : UH4 = UH4_0(v114, v115, v113) │
00:01:27 #2486 [Verbose] > │ v110.l0 <- v117 │
00:01:27 #2487 [Verbose] > │ v110.l1 <- v118 │
00:01:27 #2488 [Verbose] > │ v110.l2 <- v116 │
00:01:27 #2489 [Verbose] > │ () │
00:01:27 #2490 [Verbose] > │ let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2 │
00:01:27 #2491 [Verbose] > │ let v121 : UH4 = UH4_1 │
00:01:27 #2492 [Verbose] > │ let v122 : UH4 = method18(v119, v121) │
00:01:27 #2493 [Verbose] > │ let v123 : (struct (int64 * int64) []) = method19(v122) │
00:01:27 #2494 [Verbose] > │ let v124 : int32 = v123.Length │
00:01:27 #2495 [Verbose] > │ let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:01:27 #2496 [Verbose] > │ (int64 * int64)> (v124) │
00:01:27 #2497 [Verbose] > │ let v126 : Mut1 = {l0 = 0} : Mut1 │
00:01:27 #2498 [Verbose] > │ while method5(v124, v126) do │
00:01:27 #2499 [Verbose] > │ let v128 : int32 = v126.l0 │
00:01:27 #2500 [Verbose] > │ let struct (v129 : int64, v130 : int64) = v123.[int v128] │
00:01:27 #2501 [Verbose] > │ let v131 : int64 = v129 + 1L │
00:01:27 #2502 [Verbose] > │ v125.[int v128] <- struct (v131, v130) │
00:01:27 #2503 [Verbose] > │ let v132 : int32 = v128 + 1 │
00:01:27 #2504 [Verbose] > │ v126.l0 <- v132 │
00:01:27 #2505 [Verbose] > │ () │
00:01:27 #2506 [Verbose] > │ let v133 : (struct (int64 * int64) -> int64) = closure4() │
00:01:27 #2507 [Verbose] > │ let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133 │
00:01:27 #2508 [Verbose] > │ let struct (v135 : int64, v136 : int64) = v134.[int 0] │
00:01:27 #2509 [Verbose] > │ let v137 : string = $"%A{struct (v135, v136)}" │
00:01:27 #2510 [Verbose] > │ let v138 : bool = v104 = v106 │
00:01:27 #2511 [Verbose] > │ let v143 : US0 = │
00:01:27 #2512 [Verbose] > │ if v138 then │
00:01:27 #2513 [Verbose] > │ let v139 : System.ConsoleColor = │
00:01:27 #2514 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:01:27 #2515 [Verbose] > │ US0_1(v139) │
00:01:27 #2516 [Verbose] > │ else │
00:01:27 #2517 [Verbose] > │ let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:01:27 #2518 [Verbose] > │ US0_1(v141) │
00:01:27 #2519 [Verbose] > │ let v144 : UH2 = UH2_1 │
00:01:27 #2520 [Verbose] > │ let v145 : UH2 = UH2_0(v137, v144) │
00:01:27 #2521 [Verbose] > │ let v146 : UH2 = UH2_0(v106, v145) │
00:01:27 #2522 [Verbose] > │ let v147 : UH2 = UH2_0(v104, v146) │
00:01:27 #2523 [Verbose] > │ let v148 : UH2 = UH2_0(v105, v147) │
00:01:27 #2524 [Verbose] > │ v100.[int v103] <- struct (v148, v143) │
00:01:27 #2525 [Verbose] > │ let v149 : uint64 = v103 + 1UL │
00:01:27 #2526 [Verbose] > │ v101.l0 <- v149 │
00:01:27 #2527 [Verbose] > │ () │
00:01:27 #2528 [Verbose] > │ let v150 : string = "Input" │
00:01:27 #2529 [Verbose] > │ let v151 : string = "Expected" │
00:01:27 #2530 [Verbose] > │ let v152 : string = "Result" │
00:01:27 #2531 [Verbose] > │ let v153 : string = "Best" │
00:01:27 #2532 [Verbose] > │ let v154 : UH2 = UH2_1 │
00:01:27 #2533 [Verbose] > │ let v155 : UH2 = UH2_0(v153, v154) │
00:01:27 #2534 [Verbose] > │ let v156 : UH2 = UH2_0(v152, v155) │
00:01:27 #2535 [Verbose] > │ let v157 : UH2 = UH2_0(v151, v156) │
00:01:27 #2536 [Verbose] > │ let v158 : UH2 = UH2_0(v150, v157) │
00:01:27 #2537 [Verbose] > │ let v159 : US0 = US0_0 │
00:01:27 #2538 [Verbose] > │ let v160 : string = "---" │
00:01:27 #2539 [Verbose] > │ let v161 : UH2 = UH2_1 │
00:01:27 #2540 [Verbose] > │ let v162 : UH2 = UH2_0(v160, v161) │
00:01:27 #2541 [Verbose] > │ let v163 : UH2 = UH2_0(v160, v162) │
00:01:27 #2542 [Verbose] > │ let v164 : UH2 = UH2_0(v160, v163) │
00:01:27 #2543 [Verbose] > │ let v165 : UH2 = UH2_0(v160, v164) │
00:01:27 #2544 [Verbose] > │ let v166 : US0 = US0_0 │
00:01:27 #2545 [Verbose] > │ let v167 : UH5 = UH5_1 │
00:01:27 #2546 [Verbose] > │ let v168 : UH5 = UH5_0(v165, v166, v167) │
00:01:27 #2547 [Verbose] > │ let v169 : UH5 = UH5_0(v158, v159, v168) │
00:01:27 #2548 [Verbose] > │ let v170 : (struct (UH2 * US0) []) = method22(v169) │
00:01:27 #2549 [Verbose] > │ let v171 : uint64 = System.Convert.ToUInt64 v170.Length │
00:01:27 #2550 [Verbose] > │ let v172 : uint64 = System.Convert.ToUInt64 v100.Length │
00:01:27 #2551 [Verbose] > │ let v173 : uint64 = v171 + v172 │
00:01:27 #2552 [Verbose] > │ let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:27 #2553 [Verbose] > │ US0)> (System.Convert.ToInt32(v173)) │
00:01:27 #2554 [Verbose] > │ let v175 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2555 [Verbose] > │ while method4(v173, v175) do │
00:01:27 #2556 [Verbose] > │ let v177 : uint64 = v175.l0 │
00:01:27 #2557 [Verbose] > │ let v178 : bool = v177 < v171 │
00:01:27 #2558 [Verbose] > │ let struct (v184 : UH2, v185 : US0) = │
00:01:27 #2559 [Verbose] > │ if v178 then │
00:01:27 #2560 [Verbose] > │ let struct (v179 : UH2, v180 : US0) = v170.[int v177] │
00:01:27 #2561 [Verbose] > │ struct (v179, v180) │
00:01:27 #2562 [Verbose] > │ else │
00:01:27 #2563 [Verbose] > │ let v181 : uint64 = v177 - v171 │
00:01:27 #2564 [Verbose] > │ let struct (v182 : UH2, v183 : US0) = v100.[int v181] │
00:01:27 #2565 [Verbose] > │ struct (v182, v183) │
00:01:27 #2566 [Verbose] > │ v174.[int v177] <- struct (v184, v185) │
00:01:27 #2567 [Verbose] > │ let v186 : uint64 = v177 + 1UL │
00:01:27 #2568 [Verbose] > │ v175.l0 <- v186 │
00:01:27 #2569 [Verbose] > │ () │
00:01:27 #2570 [Verbose] > │ let v187 : uint64 = System.Convert.ToUInt64 v174.Length │
00:01:27 #2571 [Verbose] > │ let v188 : ((string []) []) = Array.zeroCreate<(string [])> │
00:01:27 #2572 [Verbose] > │ (System.Convert.ToInt32(v187)) │
00:01:27 #2573 [Verbose] > │ let v189 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2574 [Verbose] > │ while method4(v187, v189) do │
00:01:27 #2575 [Verbose] > │ let v191 : uint64 = v189.l0 │
00:01:27 #2576 [Verbose] > │ let struct (v192 : UH2, v193 : US0) = v174.[int v191] │
00:01:27 #2577 [Verbose] > │ let v194 : (string []) = method25(v192) │
00:01:27 #2578 [Verbose] > │ v188.[int v191] <- v194 │
00:01:27 #2579 [Verbose] > │ let v195 : uint64 = v191 + 1UL │
00:01:27 #2580 [Verbose] > │ v189.l0 <- v195 │
00:01:27 #2581 [Verbose] > │ () │
00:01:27 #2582 [Verbose] > │ let v196 : ((string []) []) = v188 |> Array.transpose │
00:01:27 #2583 [Verbose] > │ let v197 : uint64 = System.Convert.ToUInt64 v196.Length │
00:01:27 #2584 [Verbose] > │ let v198 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2585 [Verbose] > │ (System.Convert.ToInt32(v197)) │
00:01:27 #2586 [Verbose] > │ let v199 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2587 [Verbose] > │ while method4(v197, v199) do │
00:01:27 #2588 [Verbose] > │ let v201 : uint64 = v199.l0 │
00:01:27 #2589 [Verbose] > │ let v202 : (string []) = v196.[int v201] │
00:01:27 #2590 [Verbose] > │ let v203 : uint64 = System.Convert.ToUInt64 v202.Length │
00:01:27 #2591 [Verbose] > │ let v204 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2592 [Verbose] > │ (System.Convert.ToInt32(v203)) │
00:01:27 #2593 [Verbose] > │ let v205 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2594 [Verbose] > │ while method4(v203, v205) do │
00:01:27 #2595 [Verbose] > │ let v207 : uint64 = v205.l0 │
00:01:27 #2596 [Verbose] > │ let v208 : string = v202.[int v207] │
00:01:27 #2597 [Verbose] > │ let v209 : int64 = System.Convert.ToInt64 v208.Length │
00:01:27 #2598 [Verbose] > │ v204.[int v207] <- v209 │
00:01:27 #2599 [Verbose] > │ let v210 : uint64 = v207 + 1UL │
00:01:27 #2600 [Verbose] > │ v205.l0 <- v210 │
00:01:27 #2601 [Verbose] > │ () │
00:01:27 #2602 [Verbose] > │ let v211 : (int64 []) = v204 |> Array.sortDescending │
00:01:27 #2603 [Verbose] > │ let v212 : int64 option = v211 |> Array.tryItem 0 │
00:01:27 #2604 [Verbose] > │ let v213 : (int64 -> US1) = closure5() │
00:01:27 #2605 [Verbose] > │ let v214 : US1 = US1_0 │
00:01:27 #2606 [Verbose] > │ let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │
00:01:27 #2607 [Verbose] > │ let v218 : int64 = │
00:01:27 #2608 [Verbose] > │ match v215 with │
00:01:27 #2609 [Verbose] > │ | US1_0 -> (* None *) │
00:01:27 #2610 [Verbose] > │ 0L │
00:01:27 #2611 [Verbose] > │ | US1_1(v216) -> (* Some *) │
00:01:27 #2612 [Verbose] > │ v216 │
00:01:27 #2613 [Verbose] > │ v198.[int v201] <- v218 │
00:01:27 #2614 [Verbose] > │ let v219 : uint64 = v201 + 1UL │
00:01:27 #2615 [Verbose] > │ v199.l0 <- v219 │
00:01:27 #2616 [Verbose] > │ () │
00:01:27 #2617 [Verbose] > │ let v220 : uint64 = System.Convert.ToUInt64 v198.Length │
00:01:27 #2618 [Verbose] > │ let v221 : UH6 = UH6_1 │
00:01:27 #2619 [Verbose] > │ let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3 │
00:01:27 #2620 [Verbose] > │ while method28(v220, v222) do │
00:01:27 #2621 [Verbose] > │ let v224 : uint64 = v222.l0 │
00:01:27 #2622 [Verbose] > │ let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2 │
00:01:27 #2623 [Verbose] > │ let v227 : int64 = v198.[int v224] │
00:01:27 #2624 [Verbose] > │ let v228 : int32 = v226 + 1 │
00:01:27 #2625 [Verbose] > │ let v229 : uint64 = v224 + 1UL │
00:01:27 #2626 [Verbose] > │ let v230 : UH6 = UH6_0(v226, v227, v225) │
00:01:27 #2627 [Verbose] > │ v222.l0 <- v229 │
00:01:27 #2628 [Verbose] > │ v222.l1 <- v230 │
00:01:27 #2629 [Verbose] > │ v222.l2 <- v228 │
00:01:27 #2630 [Verbose] > │ () │
00:01:27 #2631 [Verbose] > │ let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2 │
00:01:27 #2632 [Verbose] > │ let v233 : UH6 = UH6_1 │
00:01:27 #2633 [Verbose] > │ let v234 : UH6 = method29(v231, v233) │
00:01:27 #2634 [Verbose] > │ let v235 : (struct (int32 * int64) []) = method30(v234) │
00:01:27 #2635 [Verbose] > │ let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │
00:01:27 #2636 [Verbose] > │ a, b) |> Map.ofArray │
00:01:27 #2637 [Verbose] > │ let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:01:27 #2638 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187)) │
00:01:27 #2639 [Verbose] > │ let v238 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2640 [Verbose] > │ while method4(v187, v238) do │
00:01:27 #2641 [Verbose] > │ let v240 : uint64 = v238.l0 │
00:01:27 #2642 [Verbose] > │ let struct (v241 : UH2, v242 : US0) = v174.[int v240] │
00:01:27 #2643 [Verbose] > │ let v243 : UH7 = UH7_1 │
00:01:27 #2644 [Verbose] > │ let v244 : int32 = 0 │
00:01:27 #2645 [Verbose] > │ let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244) │
00:01:27 #2646 [Verbose] > │ let v247 : UH7 = UH7_1 │
00:01:27 #2647 [Verbose] > │ let v248 : UH7 = method34(v245, v247) │
00:01:27 #2648 [Verbose] > │ let v249 : UH2 = UH2_1 │
00:01:27 #2649 [Verbose] > │ let v250 : UH2 = method35(v236, v248, v249) │
00:01:27 #2650 [Verbose] > │ let v251 : (string []) = method9(v250) │
00:01:27 #2651 [Verbose] > │ v237.[int v240] <- struct (v251, v242) │
00:01:27 #2652 [Verbose] > │ let v252 : uint64 = v240 + 1UL │
00:01:27 #2653 [Verbose] > │ v238.l0 <- v252 │
00:01:27 #2654 [Verbose] > │ () │
00:01:27 #2655 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2656 [Verbose] > │ let v253 : uint64 = System.Convert.ToUInt64 v237.Length │
00:01:27 #2657 [Verbose] > │ let v254 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2658 [Verbose] > │ while method4(v253, v254) do │
00:01:27 #2659 [Verbose] > │ let v256 : uint64 = v254.l0 │
00:01:27 #2660 [Verbose] > │ let struct (v257 : (string []), v258 : US0) = v237.[int v256] │
00:01:27 #2661 [Verbose] > │ match v258 with │
00:01:27 #2662 [Verbose] > │ | US0_0 -> (* None *) │
00:01:27 #2663 [Verbose] > │ let mutable result = None │
00:01:27 #2664 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2665 [Verbose] > │ () │
00:01:27 #2666 [Verbose] > │ #endif │
00:01:27 #2667 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2668 [Verbose] > │ () │
00:01:27 #2669 [Verbose] > │ #endif │
00:01:27 #2670 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2671 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2672 [Verbose] > │ () │
00:01:27 #2673 [Verbose] > │ #endif │
00:01:27 #2674 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2675 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2676 [Verbose] > │ () │
00:01:27 #2677 [Verbose] > │ #endif │
00:01:27 #2678 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2679 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2680 [Verbose] > │ () │
00:01:27 #2681 [Verbose] > │ #endif │
00:01:27 #2682 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2683 [Verbose] > │ result |> Option.get │
00:01:27 #2684 [Verbose] > │ () │
00:01:27 #2685 [Verbose] > │ | US0_1(v259) -> (* Some *) │
00:01:27 #2686 [Verbose] > │ let mutable result = None │
00:01:27 #2687 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2688 [Verbose] > │ () │
00:01:27 #2689 [Verbose] > │ #endif │
00:01:27 #2690 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2691 [Verbose] > │ () │
00:01:27 #2692 [Verbose] > │ #endif │
00:01:27 #2693 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2694 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:27 #2695 [Verbose] > │ () │
00:01:27 #2696 [Verbose] > │ #endif │
00:01:27 #2697 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2698 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:27 #2699 [Verbose] > │ () │
00:01:27 #2700 [Verbose] > │ #endif │
00:01:27 #2701 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2702 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:27 #2703 [Verbose] > │ () │
00:01:27 #2704 [Verbose] > │ #endif │
00:01:27 #2705 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2706 [Verbose] > │ result |> Option.get │
00:01:27 #2707 [Verbose] > │ () │
00:01:27 #2708 [Verbose] > │ let v260 : string = "\t| " │
00:01:27 #2709 [Verbose] > │ let v261 : string = System.String.Join (v260, v257) │
00:01:27 #2710 [Verbose] > │ System.Console.WriteLine v261 │
00:01:27 #2711 [Verbose] > │ let mutable result = None │
00:01:27 #2712 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:01:27 #2713 [Verbose] > │ () │
00:01:27 #2714 [Verbose] > │ #endif │
00:01:27 #2715 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:01:27 #2716 [Verbose] > │ () │
00:01:27 #2717 [Verbose] > │ #endif │
00:01:27 #2718 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2719 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2720 [Verbose] > │ () │
00:01:27 #2721 [Verbose] > │ #endif │
00:01:27 #2722 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:01:27 #2723 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2724 [Verbose] > │ () │
00:01:27 #2725 [Verbose] > │ #endif │
00:01:27 #2726 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:01:27 #2727 [Verbose] > │ System.Console.ResetColor () │
00:01:27 #2728 [Verbose] > │ () │
00:01:27 #2729 [Verbose] > │ #endif │
00:01:27 #2730 [Verbose] > │ |> fun x -> result <- Some x │
00:01:27 #2731 [Verbose] > │ result |> Option.get │
00:01:27 #2732 [Verbose] > │ let v262 : uint64 = v256 + 1UL │
00:01:27 #2733 [Verbose] > │ v254.l0 <- v262 │
00:01:27 #2734 [Verbose] > │ () │
00:01:27 #2735 [Verbose] > │ let v263 : ((float []) []) = Array.zeroCreate<(float [])> │
00:01:27 #2736 [Verbose] > │ (System.Convert.ToInt32(v99)) │
00:01:27 #2737 [Verbose] > │ let v264 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2738 [Verbose] > │ while method4(v99, v264) do │
00:01:27 #2739 [Verbose] > │ let v266 : uint64 = v264.l0 │
00:01:27 #2740 [Verbose] > │ let struct (v267 : string, v268 : string, v269 : string, v270 : │
00:01:27 #2741 [Verbose] > │ (int64 [])) = v24.[int v266] │
00:01:27 #2742 [Verbose] > │ let v271 : (int64 -> float) = float │
00:01:27 #2743 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v270.Length │
00:01:27 #2744 [Verbose] > │ let v273 : (float []) = Array.zeroCreate<float> │
00:01:27 #2745 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:01:27 #2746 [Verbose] > │ let v274 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2747 [Verbose] > │ while method4(v272, v274) do │
00:01:27 #2748 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:01:27 #2749 [Verbose] > │ let v277 : int64 = v270.[int v276] │
00:01:27 #2750 [Verbose] > │ let v278 : float = v271 v277 │
00:01:27 #2751 [Verbose] > │ v273.[int v276] <- v278 │
00:01:27 #2752 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:01:27 #2753 [Verbose] > │ v274.l0 <- v279 │
00:01:27 #2754 [Verbose] > │ () │
00:01:27 #2755 [Verbose] > │ v263.[int v266] <- v273 │
00:01:27 #2756 [Verbose] > │ let v280 : uint64 = v266 + 1UL │
00:01:27 #2757 [Verbose] > │ v264.l0 <- v280 │
00:01:27 #2758 [Verbose] > │ () │
00:01:27 #2759 [Verbose] > │ let v281 : ((float []) []) = v263 |> Array.transpose │
00:01:27 #2760 [Verbose] > │ let v282 : uint64 = System.Convert.ToUInt64 v281.Length │
00:01:27 #2761 [Verbose] > │ let v283 : (float []) = Array.zeroCreate<float> │
00:01:27 #2762 [Verbose] > │ (System.Convert.ToInt32(v282)) │
00:01:27 #2763 [Verbose] > │ let v284 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2764 [Verbose] > │ while method4(v282, v284) do │
00:01:27 #2765 [Verbose] > │ let v286 : uint64 = v284.l0 │
00:01:27 #2766 [Verbose] > │ let v287 : (float []) = v281.[int v286] │
00:01:27 #2767 [Verbose] > │ let v288 : float = v287 |> Array.average │
00:01:27 #2768 [Verbose] > │ v283.[int v286] <- v288 │
00:01:27 #2769 [Verbose] > │ let v289 : uint64 = v286 + 1UL │
00:01:27 #2770 [Verbose] > │ v284.l0 <- v289 │
00:01:27 #2771 [Verbose] > │ () │
00:01:27 #2772 [Verbose] > │ let v290 : (float -> int64) = int64 │
00:01:27 #2773 [Verbose] > │ let v291 : uint64 = System.Convert.ToUInt64 v283.Length │
00:01:27 #2774 [Verbose] > │ let v292 : (int64 []) = Array.zeroCreate<int64> │
00:01:27 #2775 [Verbose] > │ (System.Convert.ToInt32(v291)) │
00:01:27 #2776 [Verbose] > │ let v293 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2777 [Verbose] > │ while method4(v291, v293) do │
00:01:27 #2778 [Verbose] > │ let v295 : uint64 = v293.l0 │
00:01:27 #2779 [Verbose] > │ let v296 : float = v283.[int v295] │
00:01:27 #2780 [Verbose] > │ let v297 : int64 = v290 v296 │
00:01:27 #2781 [Verbose] > │ v292.[int v295] <- v297 │
00:01:27 #2782 [Verbose] > │ let v298 : uint64 = v295 + 1UL │
00:01:27 #2783 [Verbose] > │ v293.l0 <- v298 │
00:01:27 #2784 [Verbose] > │ () │
00:01:27 #2785 [Verbose] > │ let v299 : uint64 = System.Convert.ToUInt64 v292.Length │
00:01:27 #2786 [Verbose] > │ let v300 : UH6 = UH6_1 │
00:01:27 #2787 [Verbose] > │ let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3 │
00:01:27 #2788 [Verbose] > │ while method28(v299, v301) do │
00:01:27 #2789 [Verbose] > │ let v303 : uint64 = v301.l0 │
00:01:27 #2790 [Verbose] > │ let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2 │
00:01:27 #2791 [Verbose] > │ let v306 : int64 = v292.[int v303] │
00:01:27 #2792 [Verbose] > │ let v307 : int32 = v305 + 1 │
00:01:27 #2793 [Verbose] > │ let v308 : uint64 = v303 + 1UL │
00:01:27 #2794 [Verbose] > │ let v309 : UH6 = UH6_0(v305, v306, v304) │
00:01:27 #2795 [Verbose] > │ v301.l0 <- v308 │
00:01:27 #2796 [Verbose] > │ v301.l1 <- v309 │
00:01:27 #2797 [Verbose] > │ v301.l2 <- v307 │
00:01:27 #2798 [Verbose] > │ () │
00:01:27 #2799 [Verbose] > │ let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2 │
00:01:27 #2800 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:01:27 #2801 [Verbose] > │ let v313 : UH6 = method29(v310, v312) │
00:01:27 #2802 [Verbose] > │ let v314 : (struct (int32 * int64) []) = method36(v313) │
00:01:27 #2803 [Verbose] > │ System.Console.WriteLine v2 │
00:01:27 #2804 [Verbose] > │ let v315 : string = "Average Ranking " │
00:01:27 #2805 [Verbose] > │ System.Console.WriteLine v315 │
00:01:27 #2806 [Verbose] > │ let v316 : (struct (int32 * int64) -> int64) = closure6() │
00:01:27 #2807 [Verbose] > │ let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316 │
00:01:27 #2808 [Verbose] > │ let v318 : uint64 = System.Convert.ToUInt64 v317.Length │
00:01:27 #2809 [Verbose] > │ let v319 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:27 #2810 [Verbose] > │ while method4(v318, v319) do │
00:01:27 #2811 [Verbose] > │ let v321 : uint64 = v319.l0 │
00:01:27 #2812 [Verbose] > │ let struct (v322 : int32, v323 : int64) = v317.[int v321] │
00:01:27 #2813 [Verbose] > │ let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │
00:01:27 #2814 [Verbose] > │ " │
00:01:27 #2815 [Verbose] > │ System.Console.WriteLine v324 │
00:01:27 #2816 [Verbose] > │ let v325 : uint64 = v321 + 1UL │
00:01:27 #2817 [Verbose] > │ v319.l0 <- v325 │
00:01:27 #2818 [Verbose] > │ () │
00:01:27 #2819 [Verbose] > │ () │
00:01:27 #2820 [Verbose] > │ method0() │
00:01:27 #2821 [Verbose] > │ │
00:01:27 #2822 [Verbose] > │ │
00:01:27 #2823 [Verbose] > │ │
00:01:27 #2824 [Verbose] > │ Test: v0 │
00:01:27 #2825 [Verbose] > │ │
00:01:27 #2826 [Verbose] > │ Solution: "abc" │
00:01:27 #2827 [Verbose] > │ Test case 1. F. Time: 2801 │
00:01:27 #2828 [Verbose] > │ Test case 2. FA. Time: 2669 │
00:01:27 #2829 [Verbose] > │ │
00:01:27 #2830 [Verbose] > │ Solution: "abcde" │
00:01:27 #2831 [Verbose] > │ Test case 1. F. Time: 3237 │
00:01:27 #2832 [Verbose] > │ Test case 2. FA. Time: 3652 │
00:01:27 #2833 [Verbose] > │ │
00:01:27 #2834 [Verbose] > │ Solution: "abcdefghi" │
00:01:27 #2835 [Verbose] > │ Test case 1. F. Time: 6654 │
00:01:27 #2836 [Verbose] > │ Test case 2. FA. Time: 6790 │
00:01:27 #2837 [Verbose] > │ │
00:01:27 #2838 [Verbose] > │ Solution: "abab" │
00:01:27 #2839 [Verbose] > │ Test case 1. F. Time: 2764 │
00:01:27 #2840 [Verbose] > │ Test case 2. FA. Time: 2667 │
00:01:27 #2841 [Verbose] > │ │
00:01:27 #2842 [Verbose] > │ Solution: "aa" │
00:01:27 #2843 [Verbose] > │ Test case 1. F. Time: 1559 │
00:01:27 #2844 [Verbose] > │ Test case 2. FA. Time: 1575 │
00:01:27 #2845 [Verbose] > │ │
00:01:27 #2846 [Verbose] > │ Solution: "z" │
00:01:27 #2847 [Verbose] > │ Test case 1. F. Time: 256 │
00:01:27 #2848 [Verbose] > │ Test case 2. FA. Time: 188 │
00:01:27 #2849 [Verbose] > │ │
00:01:27 #2850 [Verbose] > │ Input | Expected │
00:01:27 #2851 [Verbose] > │ │
00:01:27 #2852 [Verbose] > │ | Result │
00:01:27 #2853 [Verbose] > │ │
00:01:27 #2854 [Verbose] > │ | Best │
00:01:27 #2855 [Verbose] > │ --- | --- │
00:01:27 #2856 [Verbose] > │ │
00:01:27 #2857 [Verbose] > │ | --- │
00:01:27 #2858 [Verbose] > │ │
00:01:27 #2859 [Verbose] > │ | --- │
00:01:27 #2860 [Verbose] > │ "abc" | "bca cab abc" │
00:01:27 #2861 [Verbose] > │ │
00:01:27 #2862 [Verbose] > │ | "bca cab abc" │
00:01:27 #2863 [Verbose] > │ │
00:01:27 #2864 [Verbose] > │ | struct (2L, 2669L) │
00:01:27 #2865 [Verbose] > │ "abcde" | "bcdea cdeab deabc eabcd abcde" │
00:01:27 #2866 [Verbose] > │ | "bcdea cdeab deabc eabcd abcde" │
00:01:27 #2867 [Verbose] > │ | struct (1L, 3237L) │
00:01:27 #2868 [Verbose] > │ "abcdefghi" | "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef │
00:01:27 #2869 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi" | "bcdefghia cdefghiab defghiabc efghiabcd │
00:01:27 #2870 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi" | struct (1L, 6654L) │
00:01:27 #2871 [Verbose] > │ "abab" | "baba abab baba abab" │
00:01:27 #2872 [Verbose] > │ | "baba abab baba abab" │
00:01:27 #2873 [Verbose] > │ | struct (2L, 2667L) │
00:01:27 #2874 [Verbose] > │ "aa" | "aa aa" │
00:01:27 #2875 [Verbose] > │ │
00:01:27 #2876 [Verbose] > │ | "aa aa" │
00:01:27 #2877 [Verbose] > │ │
00:01:27 #2878 [Verbose] > │ | struct (1L, 1559L) │
00:01:27 #2879 [Verbose] > │ "z" | "z" │
00:01:27 #2880 [Verbose] > │ │
00:01:27 #2881 [Verbose] > │ | "z" │
00:01:27 #2882 [Verbose] > │ │
00:01:27 #2883 [Verbose] > │ | struct (2L, 188L) │
00:01:27 #2884 [Verbose] > │ │
00:01:27 #2885 [Verbose] > │ Average Ranking │
00:01:27 #2886 [Verbose] > │ Test case 1. Average Time: 2878L │
00:01:27 #2887 [Verbose] > │ Test case 2. Average Time: 2923L │
00:01:27 #2888 [Verbose] > │ │
00:01:27 #2889 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 #2890 [Verbose] >
00:01:27 #2891 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:27 #2892 [Verbose] > // // test
00:01:27 #2893 [Verbose] > // // rust=
00:01:27 #2894 [Verbose] > // // print_code=false
00:01:27 #2895 [Verbose] >
00:01:27 #2896 [Verbose] > // rotate_strings_tests ()
00:01:28 #2897 [Verbose] >
00:01:28 #2898 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:28 #2899 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:28 #2900 [Verbose] > │ ## binary_search_tests │
00:01:28 #2901 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 #2902 [Verbose] >
00:01:28 #2903 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:28 #2904 [Verbose] > // // test
00:01:28 #2905 [Verbose] > // // timeout=90000
00:01:28 #2906 [Verbose] > // // print_code=true
00:01:28 #2907 [Verbose] >
00:01:28 #2908 [Verbose] > inl binary_search_semi_open_1 arr target left right =
00:01:28 #2909 [Verbose] > inl rec body left right =
00:01:28 #2910 [Verbose] > if left >= right
00:01:28 #2911 [Verbose] > then None
00:01:28 #2912 [Verbose] > else
00:01:28 #2913 [Verbose] > inl mid = (left + right) / 2
00:01:28 #2914 [Verbose] > inl item = index arr mid
00:01:28 #2915 [Verbose] > if item = target
00:01:28 #2916 [Verbose] > then Some mid
00:01:28 #2917 [Verbose] > elif item < target
00:01:28 #2918 [Verbose] > then loop (mid + 1) right
00:01:28 #2919 [Verbose] > else loop left mid
00:01:28 #2920 [Verbose] > and inl loop left right =
00:01:28 #2921 [Verbose] > if var_is right |> not
00:01:28 #2922 [Verbose] > then body left right
00:01:28 #2923 [Verbose] > else
00:01:28 #2924 [Verbose] > inl left = dyn left
00:01:28 #2925 [Verbose] > join body left right
00:01:28 #2926 [Verbose] > loop left right
00:01:28 #2927 [Verbose] >
00:01:28 #2928 [Verbose] > inl binary_search_closed_1 arr target left right =
00:01:28 #2929 [Verbose] > inl rec body left right =
00:01:28 #2930 [Verbose] > if left > right
00:01:28 #2931 [Verbose] > then None
00:01:28 #2932 [Verbose] > else
00:01:28 #2933 [Verbose] > inl mid = (left + right) / 2
00:01:28 #2934 [Verbose] > inl item = index arr mid
00:01:28 #2935 [Verbose] > if item = target
00:01:28 #2936 [Verbose] > then Some mid
00:01:28 #2937 [Verbose] > elif item < target
00:01:28 #2938 [Verbose] > then loop (mid + 1) right
00:01:28 #2939 [Verbose] > else loop left (mid - 1)
00:01:28 #2940 [Verbose] > and inl loop left right =
00:01:28 #2941 [Verbose] > if var_is right |> not
00:01:28 #2942 [Verbose] > then body left right
00:01:28 #2943 [Verbose] > else
00:01:28 #2944 [Verbose] > inl left = dyn left
00:01:28 #2945 [Verbose] > join body left right
00:01:28 #2946 [Verbose] > loop left right
00:01:28 #2947 [Verbose] >
00:01:28 #2948 [Verbose] > inl binary_search_semi_open_2 arr target left right =
00:01:28 #2949 [Verbose] > let rec body left right =
00:01:28 #2950 [Verbose] > if left >= right
00:01:28 #2951 [Verbose] > then None
00:01:28 #2952 [Verbose] > else
00:01:28 #2953 [Verbose] > inl mid = (left + right) / 2
00:01:28 #2954 [Verbose] > inl item = index arr mid
00:01:28 #2955 [Verbose] > if item = target
00:01:28 #2956 [Verbose] > then Some mid
00:01:28 #2957 [Verbose] > elif item < target
00:01:28 #2958 [Verbose] > then loop (mid + 1) right
00:01:28 #2959 [Verbose] > else loop left mid
00:01:28 #2960 [Verbose] > and inl loop left right = body left right
00:01:28 #2961 [Verbose] > loop left right
00:01:28 #2962 [Verbose] >
00:01:28 #2963 [Verbose] > inl binary_search_closed_2 arr target left right =
00:01:28 #2964 [Verbose] > let rec body left right =
00:01:28 #2965 [Verbose] > if left > right
00:01:28 #2966 [Verbose] > then None
00:01:28 #2967 [Verbose] > else
00:01:28 #2968 [Verbose] > inl mid = (left + right) / 2
00:01:28 #2969 [Verbose] > inl item = index arr mid
00:01:28 #2970 [Verbose] > if item = target
00:01:28 #2971 [Verbose] > then Some mid
00:01:28 #2972 [Verbose] > elif item < target
00:01:28 #2973 [Verbose] > then loop (mid + 1) right
00:01:28 #2974 [Verbose] > else loop left (mid - 1)
00:01:28 #2975 [Verbose] > and inl loop left right = body left right
00:01:28 #2976 [Verbose] > loop left right
00:01:28 #2977 [Verbose] >
00:01:28 #2978 [Verbose] > inl get_solutions () =
00:01:28 #2979 [Verbose] > [[
00:01:28 #2980 [Verbose] > "semi_open_1",
00:01:28 #2981 [Verbose] > fun (arr, (target, len)) =>
00:01:28 #2982 [Verbose] > binary_search_semi_open_1 arr target 0 len
00:01:28 #2983 [Verbose] >
00:01:28 #2984 [Verbose] > "closed_1",
00:01:28 #2985 [Verbose] > fun (arr, (target, len)) =>
00:01:28 #2986 [Verbose] > binary_search_closed_1 arr target 0 (len - 1)
00:01:28 #2987 [Verbose] >
00:01:28 #2988 [Verbose] > "semi_open_2",
00:01:28 #2989 [Verbose] > fun (arr, (target, len)) =>
00:01:28 #2990 [Verbose] > binary_search_semi_open_2 arr target 0 len
00:01:28 #2991 [Verbose] >
00:01:28 #2992 [Verbose] > "closed_2",
00:01:28 #2993 [Verbose] > fun (arr, (target, len)) =>
00:01:28 #2994 [Verbose] > binary_search_closed_2 arr target 0 (len - 1)
00:01:28 #2995 [Verbose] > ]]
00:01:28 #2996 [Verbose] >
00:01:28 #2997 [Verbose] > inl rec binary_search_tests () =
00:01:28 #2998 [Verbose] > inl arr_with_len target len arr =
00:01:28 #2999 [Verbose] > arr, (target, (len |> optionm'.default_with fun () => length arr))
00:01:28 #3000 [Verbose] >
00:01:28 #3001 [Verbose] > inl test_cases = [[
00:01:28 #3002 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:01:28 #3003 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:01:28 #3004 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:01:28 #3005 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:01:28 #3006 [Verbose] > ((am'.init_series 1i32 100 1) |> arr_with_len 60 None), (Some 59)
00:01:28 #3007 [Verbose] >
00:01:28 #3008 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:01:28 #3009 [Verbose] > 3i32)
00:01:28 #3010 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:01:28 #3011 [Verbose] > 0i32)
00:01:28 #3012 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:01:28 #3013 [Verbose] > 6i32)
00:01:28 #3014 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:01:28 #3015 [Verbose] > ((am'.init_series 1i32 100 1) |> arr_with_len 60 (Some 100)), (Some 59)
00:01:28 #3016 [Verbose] > ]]
00:01:28 #3017 [Verbose] >
00:01:28 #3018 [Verbose] > inl solutions = get_solutions ()
00:01:28 #3019 [Verbose] >
00:01:28 #3020 [Verbose] > // inl is_fast () = true
00:01:28 #3021 [Verbose] >
00:01:28 #3022 [Verbose] > inl count =
00:01:28 #3023 [Verbose] > if is_fast ()
00:01:28 #3024 [Verbose] > then 1000i32
00:01:28 #3025 [Verbose] > else 8000000i32
00:01:28 #3026 [Verbose] >
00:01:28 #3027 [Verbose] > run_all (nameof binary_search_tests) count solutions test_cases
00:01:28 #3028 [Verbose] > |> sort_result_list
00:01:28 #3029 [Verbose] >
00:01:28 #3030 [Verbose] >
00:01:28 #3031 [Verbose] > let main () =
00:01:28 #3032 [Verbose] > binary_search_tests ()
00:02:08 #3033 [Verbose] >
00:02:08 #3034 [Verbose] > ╭─[ 40.64s - stdout ]──────────────────────────────────────────────────────────╮
00:02:08 #3035 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:02:08 #3036 [Verbose] > │ and [<Struct>] US0 = │
00:02:08 #3037 [Verbose] > │ | US0_0 │
00:02:08 #3038 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:02:08 #3039 [Verbose] > │ and UH0 = │
00:02:08 #3040 [Verbose] > │ | UH0_0 of (int32 []) * int32 * int32 * US0 * UH0 │
00:02:08 #3041 [Verbose] > │ | UH0_1 │
00:02:08 #3042 [Verbose] > │ and Mut1 = {mutable l0 : uint64} │
00:02:08 #3043 [Verbose] > │ and UH1 = │
00:02:08 #3044 [Verbose] > │ | UH1_0 of int32 * string * (struct ((int32 []) * int32 * int32) -> US0) │
00:02:08 #3045 [Verbose] > │ * UH1 │
00:02:08 #3046 [Verbose] > │ | UH1_1 │
00:02:08 #3047 [Verbose] > │ and UH2 = │
00:02:08 #3048 [Verbose] > │ | UH2_0 of string * UH2 │
00:02:08 #3049 [Verbose] > │ | UH2_1 │
00:02:08 #3050 [Verbose] > │ and [<Struct>] US1 = │
00:02:08 #3051 [Verbose] > │ | US1_0 │
00:02:08 #3052 [Verbose] > │ | US1_1 of f1_0 : System.ConsoleColor │
00:02:08 #3053 [Verbose] > │ and UH3 = │
00:02:08 #3054 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:02:08 #3055 [Verbose] > │ | UH3_1 │
00:02:08 #3056 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:02:08 #3057 [Verbose] > │ and UH4 = │
00:02:08 #3058 [Verbose] > │ | UH4_0 of UH2 * US1 * UH4 │
00:02:08 #3059 [Verbose] > │ | UH4_1 │
00:02:08 #3060 [Verbose] > │ and [<Struct>] US2 = │
00:02:08 #3061 [Verbose] > │ | US2_0 │
00:02:08 #3062 [Verbose] > │ | US2_1 of f1_0 : int64 │
00:02:08 #3063 [Verbose] > │ and UH5 = │
00:02:08 #3064 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:02:08 #3065 [Verbose] > │ | UH5_1 │
00:02:08 #3066 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:02:08 #3067 [Verbose] > │ and UH6 = │
00:02:08 #3068 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:02:08 #3069 [Verbose] > │ | UH6_1 │
00:02:08 #3070 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:02:08 #3071 [Verbose] > │ v0 │
00:02:08 #3072 [Verbose] > │ and method2 (v0 : Mut0) : bool = │
00:02:08 #3073 [Verbose] > │ let v1 : int32 = v0.l0 │
00:02:08 #3074 [Verbose] > │ let v2 : bool = v1 < 100 │
00:02:08 #3075 [Verbose] > │ v2 │
00:02:08 #3076 [Verbose] > │ and method4 (v0 : UH0, v1 : uint64) : uint64 = │
00:02:08 #3077 [Verbose] > │ match v0 with │
00:02:08 #3078 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6) -> (* Cons *) │
00:02:08 #3079 [Verbose] > │ let v7 : uint64 = v1 + 1UL │
00:02:08 #3080 [Verbose] > │ method4(v6, v7) │
00:02:08 #3081 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:02:08 #3082 [Verbose] > │ v1 │
00:02:08 #3083 [Verbose] > │ and method5 (v0 : (struct ((int32 []) * int32 * int32 * US0) []), v1 : UH0, │
00:02:08 #3084 [Verbose] > │ v2 : uint64) : uint64 = │
00:02:08 #3085 [Verbose] > │ match v1 with │
00:02:08 #3086 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7) -> (* Cons *) │
00:02:08 #3087 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5, v6) │
00:02:08 #3088 [Verbose] > │ let v8 : uint64 = v2 + 1UL │
00:02:08 #3089 [Verbose] > │ method5(v0, v7, v8) │
00:02:08 #3090 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:02:08 #3091 [Verbose] > │ v2 │
00:02:08 #3092 [Verbose] > │ and method3 (v0 : UH0) : (struct ((int32 []) * int32 * int32 * US0) []) = │
00:02:08 #3093 [Verbose] > │ let v1 : uint64 = 0UL │
00:02:08 #3094 [Verbose] > │ let v2 : uint64 = method4(v0, v1) │
00:02:08 #3095 [Verbose] > │ let v3 : (struct ((int32 []) * int32 * int32 * US0) []) = │
00:02:08 #3096 [Verbose] > │ Array.zeroCreate<struct ((int32 []) * int32 * int32 * US0)> │
00:02:08 #3097 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:02:08 #3098 [Verbose] > │ let v4 : uint64 = 0UL │
00:02:08 #3099 [Verbose] > │ let v5 : uint64 = method5(v3, v0, v4) │
00:02:08 #3100 [Verbose] > │ v3 │
00:02:08 #3101 [Verbose] > │ and method6 (v0 : uint64, v1 : Mut1) : bool = │
00:02:08 #3102 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:02:08 #3103 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:08 #3104 [Verbose] > │ v3 │
00:02:08 #3105 [Verbose] > │ and method7 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:02:08 #3106 [Verbose] > │ let v4 : bool = v3 >= v2 │
00:02:08 #3107 [Verbose] > │ if v4 then │
00:02:08 #3108 [Verbose] > │ US0_0 │
00:02:08 #3109 [Verbose] > │ else │
00:02:08 #3110 [Verbose] > │ let v6 : int32 = v3 + v2 │
00:02:08 #3111 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:02:08 #3112 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:02:08 #3113 [Verbose] > │ let v9 : bool = v8 = v1 │
00:02:08 #3114 [Verbose] > │ if v9 then │
00:02:08 #3115 [Verbose] > │ US0_1(v7) │
00:02:08 #3116 [Verbose] > │ else │
00:02:08 #3117 [Verbose] > │ let v11 : bool = v8 < v1 │
00:02:09 #3118 [Verbose] > │ if v11 then │
00:02:09 #3119 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:02:09 #3120 [Verbose] > │ method7(v0, v1, v2, v12) │
00:02:09 #3121 [Verbose] > │ else │
00:02:09 #3122 [Verbose] > │ method7(v0, v1, v7, v3) │
00:02:09 #3123 [Verbose] > │ and closure1 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:02:09 #3124 [Verbose] > │ let v3 : int32 = 0 │
00:02:09 #3125 [Verbose] > │ method7(v0, v1, v2, v3) │
00:02:09 #3126 [Verbose] > │ and method8 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:02:09 #3127 [Verbose] > │ let v4 : bool = v3 > v2 │
00:02:09 #3128 [Verbose] > │ if v4 then │
00:02:09 #3129 [Verbose] > │ US0_0 │
00:02:09 #3130 [Verbose] > │ else │
00:02:09 #3131 [Verbose] > │ let v6 : int32 = v3 + v2 │
00:02:09 #3132 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:02:09 #3133 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:02:09 #3134 [Verbose] > │ let v9 : bool = v8 = v1 │
00:02:09 #3135 [Verbose] > │ if v9 then │
00:02:09 #3136 [Verbose] > │ US0_1(v7) │
00:02:09 #3137 [Verbose] > │ else │
00:02:09 #3138 [Verbose] > │ let v11 : bool = v8 < v1 │
00:02:09 #3139 [Verbose] > │ if v11 then │
00:02:09 #3140 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:02:09 #3141 [Verbose] > │ method8(v0, v1, v2, v12) │
00:02:09 #3142 [Verbose] > │ else │
00:02:09 #3143 [Verbose] > │ let v14 : int32 = v7 - 1 │
00:02:09 #3144 [Verbose] > │ method8(v0, v1, v14, v3) │
00:02:09 #3145 [Verbose] > │ and closure2 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:02:09 #3146 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:02:09 #3147 [Verbose] > │ let v4 : int32 = 0 │
00:02:09 #3148 [Verbose] > │ method8(v0, v1, v3, v4) │
00:02:09 #3149 [Verbose] > │ and method9 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:02:09 #3150 [Verbose] > │ let v4 : bool = v2 >= v3 │
00:02:09 #3151 [Verbose] > │ if v4 then │
00:02:09 #3152 [Verbose] > │ US0_0 │
00:02:09 #3153 [Verbose] > │ else │
00:02:09 #3154 [Verbose] > │ let v6 : int32 = v2 + v3 │
00:02:09 #3155 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:02:09 #3156 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:02:09 #3157 [Verbose] > │ let v9 : bool = v8 = v1 │
00:02:09 #3158 [Verbose] > │ if v9 then │
00:02:09 #3159 [Verbose] > │ US0_1(v7) │
00:02:09 #3160 [Verbose] > │ else │
00:02:09 #3161 [Verbose] > │ let v11 : bool = v8 < v1 │
00:02:09 #3162 [Verbose] > │ if v11 then │
00:02:09 #3163 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:02:09 #3164 [Verbose] > │ method9(v0, v1, v12, v3) │
00:02:09 #3165 [Verbose] > │ else │
00:02:09 #3166 [Verbose] > │ method9(v0, v1, v2, v7) │
00:02:09 #3167 [Verbose] > │ and closure3 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:02:09 #3168 [Verbose] > │ let v3 : int32 = 0 │
00:02:09 #3169 [Verbose] > │ method9(v0, v1, v3, v2) │
00:02:09 #3170 [Verbose] > │ and method10 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:02:09 #3171 [Verbose] > │ let v4 : bool = v2 > v3 │
00:02:09 #3172 [Verbose] > │ if v4 then │
00:02:09 #3173 [Verbose] > │ US0_0 │
00:02:09 #3174 [Verbose] > │ else │
00:02:09 #3175 [Verbose] > │ let v6 : int32 = v2 + v3 │
00:02:09 #3176 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:02:09 #3177 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:02:09 #3178 [Verbose] > │ let v9 : bool = v8 = v1 │
00:02:09 #3179 [Verbose] > │ if v9 then │
00:02:09 #3180 [Verbose] > │ US0_1(v7) │
00:02:09 #3181 [Verbose] > │ else │
00:02:09 #3182 [Verbose] > │ let v11 : bool = v8 < v1 │
00:02:09 #3183 [Verbose] > │ if v11 then │
00:02:09 #3184 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:02:09 #3185 [Verbose] > │ method10(v0, v1, v12, v3) │
00:02:09 #3186 [Verbose] > │ else │
00:02:09 #3187 [Verbose] > │ let v14 : int32 = v7 - 1 │
00:02:09 #3188 [Verbose] > │ method10(v0, v1, v2, v14) │
00:02:09 #3189 [Verbose] > │ and closure4 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:02:09 #3190 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:02:09 #3191 [Verbose] > │ let v4 : int32 = 0 │
00:02:09 #3192 [Verbose] > │ method10(v0, v1, v4, v3) │
00:02:09 #3193 [Verbose] > │ and method12 (v0 : UH1, v1 : uint64) : uint64 = │
00:02:09 #3194 [Verbose] > │ match v0 with │
00:02:09 #3195 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:02:09 #3196 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:02:09 #3197 [Verbose] > │ method12(v5, v6) │
00:02:09 #3198 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:02:09 #3199 [Verbose] > │ v1 │
00:02:09 #3200 [Verbose] > │ and method13 (v0 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:02:09 #3201 [Verbose] > │ int32) -> US0)) []), v1 : UH1, v2 : uint64) : uint64 = │
00:02:09 #3202 [Verbose] > │ match v1 with │
00:02:09 #3203 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:02:09 #3204 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:02:09 #3205 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:02:09 #3206 [Verbose] > │ method13(v0, v6, v7) │
00:02:09 #3207 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:02:09 #3208 [Verbose] > │ v2 │
00:02:09 #3209 [Verbose] > │ and method11 (v0 : UH1) : (struct (int32 * string * (struct ((int32 []) * │
00:02:09 #3210 [Verbose] > │ int32 * int32) -> US0)) []) = │
00:02:09 #3211 [Verbose] > │ let v1 : uint64 = 0UL │
00:02:09 #3212 [Verbose] > │ let v2 : uint64 = method12(v0, v1) │
00:02:09 #3213 [Verbose] > │ let v3 : (struct (int32 * string * (struct ((int32 []) * int32 * int32) │
00:02:09 #3214 [Verbose] > │ -> US0)) []) = Array.zeroCreate<struct (int32 * string * (struct ((int32 []) │
00:02:09 #3215 [Verbose] > │ * int32 * int32) -> US0))> (System.Convert.ToInt32(v2)) │
00:02:09 #3216 [Verbose] > │ let v4 : uint64 = 0UL │
00:02:09 #3217 [Verbose] > │ let v5 : uint64 = method13(v3, v0, v4) │
00:02:09 #3218 [Verbose] > │ v3 │
00:02:09 #3219 [Verbose] > │ and method14 (v0 : Mut0) : bool = │
00:02:09 #3220 [Verbose] > │ let v1 : int32 = v0.l0 │
00:02:09 #3221 [Verbose] > │ let v2 : bool = v1 < 8000001 │
00:02:09 #3222 [Verbose] > │ v2 │
00:02:09 #3223 [Verbose] > │ and closure5 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : (struct ((int32 │
00:02:09 #3224 [Verbose] > │ []) * int32 * int32) -> US0)) (v4 : int32) : US0 = │
00:02:09 #3225 [Verbose] > │ v3 struct (v0, v1, v2) │
00:02:09 #3226 [Verbose] > │ and method15 (v0 : US0, v1 : (US0 []), v2 : uint64) : bool = │
00:02:09 #3227 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:02:09 #3228 [Verbose] > │ let v4 : bool = v2 < v3 │
00:02:09 #3229 [Verbose] > │ if v4 then │
00:02:09 #3230 [Verbose] > │ let v5 : US0 = v1.[int v2] │
00:02:09 #3231 [Verbose] > │ let v9 : bool = │
00:02:09 #3232 [Verbose] > │ match v0, v5 with │
00:02:09 #3233 [Verbose] > │ | US0_0, US0_0 -> (* None *) │
00:02:09 #3234 [Verbose] > │ true │
00:02:09 #3235 [Verbose] > │ | US0_1(v6), US0_1(v7) -> (* Some *) │
00:02:09 #3236 [Verbose] > │ let v8 : bool = v6 = v7 │
00:02:09 #3237 [Verbose] > │ v8 │
00:02:09 #3238 [Verbose] > │ | _ -> │
00:02:09 #3239 [Verbose] > │ false │
00:02:09 #3240 [Verbose] > │ if v9 then │
00:02:09 #3241 [Verbose] > │ let v10 : uint64 = v2 + 1UL │
00:02:09 #3242 [Verbose] > │ method15(v0, v1, v10) │
00:02:09 #3243 [Verbose] > │ else │
00:02:09 #3244 [Verbose] > │ false │
00:02:09 #3245 [Verbose] > │ else │
00:02:09 #3246 [Verbose] > │ true │
00:02:09 #3247 [Verbose] > │ and method16 (v0 : uint64, v1 : Mut2) : bool = │
00:02:09 #3248 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:02:09 #3249 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:09 #3250 [Verbose] > │ v3 │
00:02:09 #3251 [Verbose] > │ and method17 (v0 : UH3, v1 : UH3) : UH3 = │
00:02:09 #3252 [Verbose] > │ match v0 with │
00:02:09 #3253 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3254 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:02:09 #3255 [Verbose] > │ method17(v4, v5) │
00:02:09 #3256 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:02:09 #3257 [Verbose] > │ v1 │
00:02:09 #3258 [Verbose] > │ and method19 (v0 : UH3, v1 : int32) : int32 = │
00:02:09 #3259 [Verbose] > │ match v0 with │
00:02:09 #3260 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3261 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:02:09 #3262 [Verbose] > │ method19(v4, v5) │
00:02:09 #3263 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:02:09 #3264 [Verbose] > │ v1 │
00:02:09 #3265 [Verbose] > │ and method20 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:02:09 #3266 [Verbose] > │ int32 = │
00:02:09 #3267 [Verbose] > │ match v1 with │
00:02:09 #3268 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:02:09 #3269 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:02:09 #3270 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:02:09 #3271 [Verbose] > │ method20(v0, v5, v6) │
00:02:09 #3272 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:02:09 #3273 [Verbose] > │ v2 │
00:02:09 #3274 [Verbose] > │ and method18 (v0 : UH3) : (struct (int64 * int64) []) = │
00:02:09 #3275 [Verbose] > │ let v1 : int32 = 0 │
00:02:09 #3276 [Verbose] > │ let v2 : int32 = method19(v0, v1) │
00:02:09 #3277 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:02:09 #3278 [Verbose] > │ int64)> (v2) │
00:02:09 #3279 [Verbose] > │ let v4 : int32 = 0 │
00:02:09 #3280 [Verbose] > │ let v5 : int32 = method20(v3, v0, v4) │
00:02:09 #3281 [Verbose] > │ v3 │
00:02:09 #3282 [Verbose] > │ and method21 (v0 : int32, v1 : Mut0) : bool = │
00:02:09 #3283 [Verbose] > │ let v2 : int32 = v1.l0 │
00:02:09 #3284 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:09 #3285 [Verbose] > │ v3 │
00:02:09 #3286 [Verbose] > │ and closure6 () struct (v0 : int64, v1 : int64) : int64 = │
00:02:09 #3287 [Verbose] > │ v1 │
00:02:09 #3288 [Verbose] > │ and method23 (v0 : UH4, v1 : uint64) : uint64 = │
00:02:09 #3289 [Verbose] > │ match v0 with │
00:02:09 #3290 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3291 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:02:09 #3292 [Verbose] > │ method23(v4, v5) │
00:02:09 #3293 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:02:09 #3294 [Verbose] > │ v1 │
00:02:09 #3295 [Verbose] > │ and method24 (v0 : (struct (UH2 * US1) []), v1 : UH4, v2 : uint64) : uint64 │
00:02:09 #3296 [Verbose] > │ = │
00:02:09 #3297 [Verbose] > │ match v1 with │
00:02:09 #3298 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:02:09 #3299 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:02:09 #3300 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:02:09 #3301 [Verbose] > │ method24(v0, v5, v6) │
00:02:09 #3302 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:02:09 #3303 [Verbose] > │ v2 │
00:02:09 #3304 [Verbose] > │ and method22 (v0 : UH4) : (struct (UH2 * US1) []) = │
00:02:09 #3305 [Verbose] > │ let v1 : uint64 = 0UL │
00:02:09 #3306 [Verbose] > │ let v2 : uint64 = method23(v0, v1) │
00:02:09 #3307 [Verbose] > │ let v3 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * US1)> │
00:02:09 #3308 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:02:09 #3309 [Verbose] > │ let v4 : uint64 = 0UL │
00:02:09 #3310 [Verbose] > │ let v5 : uint64 = method24(v3, v0, v4) │
00:02:09 #3311 [Verbose] > │ v3 │
00:02:09 #3312 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 = │
00:02:09 #3313 [Verbose] > │ match v0 with │
00:02:09 #3314 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:02:09 #3315 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:02:09 #3316 [Verbose] > │ method26(v3, v4) │
00:02:09 #3317 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:02:09 #3318 [Verbose] > │ v1 │
00:02:09 #3319 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:02:09 #3320 [Verbose] > │ match v1 with │
00:02:09 #3321 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:02:09 #3322 [Verbose] > │ v0.[int v2] <- v3 │
00:02:09 #3323 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:02:09 #3324 [Verbose] > │ method27(v0, v4, v5) │
00:02:09 #3325 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:02:09 #3326 [Verbose] > │ v2 │
00:02:09 #3327 [Verbose] > │ and method25 (v0 : UH2) : (string []) = │
00:02:09 #3328 [Verbose] > │ let v1 : uint64 = 0UL │
00:02:09 #3329 [Verbose] > │ let v2 : uint64 = method26(v0, v1) │
00:02:09 #3330 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:02:09 #3331 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:02:09 #3332 [Verbose] > │ let v4 : uint64 = 0UL │
00:02:09 #3333 [Verbose] > │ let v5 : uint64 = method27(v3, v0, v4) │
00:02:09 #3334 [Verbose] > │ v3 │
00:02:09 #3335 [Verbose] > │ and closure7 () (v0 : int64) : US2 = │
00:02:09 #3336 [Verbose] > │ US2_1(v0) │
00:02:09 #3337 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool = │
00:02:09 #3338 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:02:09 #3339 [Verbose] > │ let v3 : bool = v2 < v0 │
00:02:09 #3340 [Verbose] > │ v3 │
00:02:09 #3341 [Verbose] > │ and method29 (v0 : UH5, v1 : UH5) : UH5 = │
00:02:09 #3342 [Verbose] > │ match v0 with │
00:02:09 #3343 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3344 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:02:09 #3345 [Verbose] > │ method29(v4, v5) │
00:02:09 #3346 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:02:09 #3347 [Verbose] > │ v1 │
00:02:09 #3348 [Verbose] > │ and method31 (v0 : UH5, v1 : int32) : int32 = │
00:02:09 #3349 [Verbose] > │ match v0 with │
00:02:09 #3350 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3351 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:02:09 #3352 [Verbose] > │ method31(v4, v5) │
00:02:09 #3353 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:02:09 #3354 [Verbose] > │ v1 │
00:02:09 #3355 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:02:09 #3356 [Verbose] > │ int32 = │
00:02:09 #3357 [Verbose] > │ match v1 with │
00:02:09 #3358 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:02:09 #3359 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:02:09 #3360 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:02:09 #3361 [Verbose] > │ method32(v0, v5, v6) │
00:02:09 #3362 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:02:09 #3363 [Verbose] > │ v2 │
00:02:09 #3364 [Verbose] > │ and method30 (v0 : UH5) : (struct (int32 * int64) []) = │
00:02:09 #3365 [Verbose] > │ let v1 : int32 = 0 │
00:02:09 #3366 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:02:09 #3367 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:02:09 #3368 [Verbose] > │ int64)> (v2) │
00:02:09 #3369 [Verbose] > │ let v4 : int32 = 0 │
00:02:09 #3370 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:02:09 #3371 [Verbose] > │ v3 │
00:02:09 #3372 [Verbose] > │ and method33 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:02:09 #3373 [Verbose] > │ match v0 with │
00:02:09 #3374 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:02:09 #3375 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:02:09 #3376 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:02:09 #3377 [Verbose] > │ method33(v4, v6, v5) │
00:02:09 #3378 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:02:09 #3379 [Verbose] > │ struct (v1, v2) │
00:02:09 #3380 [Verbose] > │ and method34 (v0 : UH6, v1 : UH6) : UH6 = │
00:02:09 #3381 [Verbose] > │ match v0 with │
00:02:09 #3382 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3383 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:02:09 #3384 [Verbose] > │ method34(v4, v5) │
00:02:09 #3385 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:02:09 #3386 [Verbose] > │ v1 │
00:02:09 #3387 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:02:09 #3388 [Verbose] > │ match v1 with │
00:02:09 #3389 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:02:09 #3390 [Verbose] > │ let v6 : UH2 = method35(v0, v5, v2) │
00:02:09 #3391 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:02:09 #3392 [Verbose] > │ let v8 : int32 = int32 v7 │
00:02:09 #3393 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:02:09 #3394 [Verbose] > │ UH2_0(v9, v6) │
00:02:09 #3395 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:02:09 #3396 [Verbose] > │ v2 │
00:02:09 #3397 [Verbose] > │ and method37 (v0 : UH2, v1 : int32) : int32 = │
00:02:09 #3398 [Verbose] > │ match v0 with │
00:02:09 #3399 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:02:09 #3400 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:02:09 #3401 [Verbose] > │ method37(v3, v4) │
00:02:09 #3402 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:02:09 #3403 [Verbose] > │ v1 │
00:02:09 #3404 [Verbose] > │ and method38 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:02:09 #3405 [Verbose] > │ match v1 with │
00:02:09 #3406 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:02:09 #3407 [Verbose] > │ v0.[int v2] <- v3 │
00:02:09 #3408 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:02:09 #3409 [Verbose] > │ method38(v0, v4, v5) │
00:02:09 #3410 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:02:09 #3411 [Verbose] > │ v2 │
00:02:09 #3412 [Verbose] > │ and method36 (v0 : UH2) : (string []) = │
00:02:09 #3413 [Verbose] > │ let v1 : int32 = 0 │
00:02:09 #3414 [Verbose] > │ let v2 : int32 = method37(v0, v1) │
00:02:09 #3415 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:02:09 #3416 [Verbose] > │ let v4 : int32 = 0 │
00:02:09 #3417 [Verbose] > │ let v5 : int32 = method38(v3, v0, v4) │
00:02:09 #3418 [Verbose] > │ v3 │
00:02:09 #3419 [Verbose] > │ and method40 (v0 : UH5, v1 : uint64) : uint64 = │
00:02:09 #3420 [Verbose] > │ match v0 with │
00:02:09 #3421 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:02:09 #3422 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:02:09 #3423 [Verbose] > │ method40(v4, v5) │
00:02:09 #3424 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:02:09 #3425 [Verbose] > │ v1 │
00:02:09 #3426 [Verbose] > │ and method41 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:02:09 #3427 [Verbose] > │ uint64 = │
00:02:09 #3428 [Verbose] > │ match v1 with │
00:02:09 #3429 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:02:09 #3430 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:02:09 #3431 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:02:09 #3432 [Verbose] > │ method41(v0, v5, v6) │
00:02:09 #3433 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:02:09 #3434 [Verbose] > │ v2 │
00:02:09 #3435 [Verbose] > │ and method39 (v0 : UH5) : (struct (int32 * int64) []) = │
00:02:09 #3436 [Verbose] > │ let v1 : uint64 = 0UL │
00:02:09 #3437 [Verbose] > │ let v2 : uint64 = method40(v0, v1) │
00:02:09 #3438 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:02:09 #3439 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:02:09 #3440 [Verbose] > │ let v4 : uint64 = 0UL │
00:02:09 #3441 [Verbose] > │ let v5 : uint64 = method41(v3, v0, v4) │
00:02:09 #3442 [Verbose] > │ v3 │
00:02:09 #3443 [Verbose] > │ and closure8 () struct (v0 : int32, v1 : int64) : int64 = │
00:02:09 #3444 [Verbose] > │ v1 │
00:02:09 #3445 [Verbose] > │ and closure0 () () : unit = │
00:02:09 #3446 [Verbose] > │ let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3447 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:02:09 #3448 [Verbose] > │ let v2 : int32 = v1.Length │
00:02:09 #3449 [Verbose] > │ let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3450 [Verbose] > │ let v4 : (int32 []) = method1(v3) │
00:02:09 #3451 [Verbose] > │ let v5 : int32 = v4.Length │
00:02:09 #3452 [Verbose] > │ let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3453 [Verbose] > │ let v7 : (int32 []) = method1(v6) │
00:02:09 #3454 [Verbose] > │ let v8 : int32 = v7.Length │
00:02:09 #3455 [Verbose] > │ let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3456 [Verbose] > │ let v10 : (int32 []) = method1(v9) │
00:02:09 #3457 [Verbose] > │ let v11 : int32 = v10.Length │
00:02:09 #3458 [Verbose] > │ let v12 : (int32 []) = Array.zeroCreate<int32> (100) │
00:02:09 #3459 [Verbose] > │ let v13 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #3460 [Verbose] > │ while method2(v13) do │
00:02:09 #3461 [Verbose] > │ let v15 : int32 = v13.l0 │
00:02:09 #3462 [Verbose] > │ let v16 : int32 = 1 + v15 │
00:02:09 #3463 [Verbose] > │ v12.[int v15] <- v16 │
00:02:09 #3464 [Verbose] > │ let v17 : int32 = v15 + 1 │
00:02:09 #3465 [Verbose] > │ v13.l0 <- v17 │
00:02:09 #3466 [Verbose] > │ () │
00:02:09 #3467 [Verbose] > │ let v18 : int32 = v12.Length │
00:02:09 #3468 [Verbose] > │ let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3469 [Verbose] > │ let v20 : (int32 []) = method1(v19) │
00:02:09 #3470 [Verbose] > │ let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3471 [Verbose] > │ let v22 : (int32 []) = method1(v21) │
00:02:09 #3472 [Verbose] > │ let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3473 [Verbose] > │ let v24 : (int32 []) = method1(v23) │
00:02:09 #3474 [Verbose] > │ let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #3475 [Verbose] > │ let v26 : (int32 []) = method1(v25) │
00:02:09 #3476 [Verbose] > │ let v27 : (int32 []) = Array.zeroCreate<int32> (100) │
00:02:09 #3477 [Verbose] > │ let v28 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #3478 [Verbose] > │ while method2(v28) do │
00:02:09 #3479 [Verbose] > │ let v30 : int32 = v28.l0 │
00:02:09 #3480 [Verbose] > │ let v31 : int32 = 1 + v30 │
00:02:09 #3481 [Verbose] > │ v27.[int v30] <- v31 │
00:02:09 #3482 [Verbose] > │ let v32 : int32 = v30 + 1 │
00:02:09 #3483 [Verbose] > │ v28.l0 <- v32 │
00:02:09 #3484 [Verbose] > │ () │
00:02:09 #3485 [Verbose] > │ let v33 : (unit -> unit) = closure0() │
00:02:09 #3486 [Verbose] > │ let v34 : string = nameof v33 │
00:02:09 #3487 [Verbose] > │ let v35 : string = "" │
00:02:09 #3488 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #3489 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #3490 [Verbose] > │ let v36 : string = $"Test: {v34}" │
00:02:09 #3491 [Verbose] > │ System.Console.WriteLine v36 │
00:02:09 #3492 [Verbose] > │ let v37 : int32 = 6 │
00:02:09 #3493 [Verbose] > │ let v38 : int32 = 3 │
00:02:09 #3494 [Verbose] > │ let v39 : US0 = US0_1(v38) │
00:02:09 #3495 [Verbose] > │ let v40 : int32 = 1 │
00:02:09 #3496 [Verbose] > │ let v41 : int32 = 0 │
00:02:09 #3497 [Verbose] > │ let v42 : US0 = US0_1(v41) │
00:02:09 #3498 [Verbose] > │ let v43 : int32 = 11 │
00:02:09 #3499 [Verbose] > │ let v44 : int32 = 6 │
00:02:09 #3500 [Verbose] > │ let v45 : US0 = US0_1(v44) │
00:02:09 #3501 [Verbose] > │ let v46 : int32 = 12 │
00:02:09 #3502 [Verbose] > │ let v47 : US0 = US0_0 │
00:02:09 #3503 [Verbose] > │ let v48 : int32 = 60 │
00:02:09 #3504 [Verbose] > │ let v49 : int32 = 59 │
00:02:09 #3505 [Verbose] > │ let v50 : US0 = US0_1(v49) │
00:02:09 #3506 [Verbose] > │ let v51 : int32 = 6 │
00:02:09 #3507 [Verbose] > │ let v52 : int32 = 7 │
00:02:09 #3508 [Verbose] > │ let v53 : int32 = 3 │
00:02:09 #3509 [Verbose] > │ let v54 : US0 = US0_1(v53) │
00:02:09 #3510 [Verbose] > │ let v55 : int32 = 1 │
00:02:09 #3511 [Verbose] > │ let v56 : int32 = 7 │
00:02:09 #3512 [Verbose] > │ let v57 : int32 = 0 │
00:02:09 #3513 [Verbose] > │ let v58 : US0 = US0_1(v57) │
00:02:09 #3514 [Verbose] > │ let v59 : int32 = 11 │
00:02:09 #3515 [Verbose] > │ let v60 : int32 = 7 │
00:02:09 #3516 [Verbose] > │ let v61 : int32 = 6 │
00:02:09 #3517 [Verbose] > │ let v62 : US0 = US0_1(v61) │
00:02:09 #3518 [Verbose] > │ let v63 : int32 = 12 │
00:02:09 #3519 [Verbose] > │ let v64 : int32 = 7 │
00:02:09 #3520 [Verbose] > │ let v65 : US0 = US0_0 │
00:02:09 #3521 [Verbose] > │ let v66 : int32 = 60 │
00:02:09 #3522 [Verbose] > │ let v67 : int32 = 100 │
00:02:09 #3523 [Verbose] > │ let v68 : int32 = 59 │
00:02:09 #3524 [Verbose] > │ let v69 : US0 = US0_1(v68) │
00:02:09 #3525 [Verbose] > │ let v70 : UH0 = UH0_1 │
00:02:09 #3526 [Verbose] > │ let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70) │
00:02:09 #3527 [Verbose] > │ let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71) │
00:02:09 #3528 [Verbose] > │ let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72) │
00:02:09 #3529 [Verbose] > │ let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73) │
00:02:09 #3530 [Verbose] > │ let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74) │
00:02:09 #3531 [Verbose] > │ let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75) │
00:02:09 #3532 [Verbose] > │ let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76) │
00:02:09 #3533 [Verbose] > │ let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77) │
00:02:09 #3534 [Verbose] > │ let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78) │
00:02:09 #3535 [Verbose] > │ let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79) │
00:02:09 #3536 [Verbose] > │ let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80) │
00:02:09 #3537 [Verbose] > │ let v82 : uint64 = System.Convert.ToUInt64 v81.Length │
00:02:09 #3538 [Verbose] > │ let v83 : (struct (string * string * string * (int64 [])) []) = │
00:02:09 #3539 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:02:09 #3540 [Verbose] > │ (System.Convert.ToInt32(v82)) │
00:02:09 #3541 [Verbose] > │ let v84 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3542 [Verbose] > │ while method6(v82, v84) do │
00:02:09 #3543 [Verbose] > │ let v86 : uint64 = v84.l0 │
00:02:09 #3544 [Verbose] > │ let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │
00:02:09 #3545 [Verbose] > │ v81.[int v86] │
00:02:09 #3546 [Verbose] > │ let v91 : string = $"%A{struct (v87, v88, v89)}" │
00:02:09 #3547 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #3548 [Verbose] > │ let v92 : string = $"Solution: {v91} " │
00:02:09 #3549 [Verbose] > │ System.Console.WriteLine v92 │
00:02:09 #3550 [Verbose] > │ let v93 : int32 = 0 │
00:02:09 #3551 [Verbose] > │ let v94 : string = "semi_open_1" │
00:02:09 #3552 [Verbose] > │ let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1() │
00:02:09 #3553 [Verbose] > │ let v96 : int32 = 1 │
00:02:09 #3554 [Verbose] > │ let v97 : string = "closed_1" │
00:02:09 #3555 [Verbose] > │ let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2() │
00:02:09 #3556 [Verbose] > │ let v99 : int32 = 2 │
00:02:09 #3557 [Verbose] > │ let v100 : string = "semi_open_2" │
00:02:09 #3558 [Verbose] > │ let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │
00:02:09 #3559 [Verbose] > │ let v102 : int32 = 3 │
00:02:09 #3560 [Verbose] > │ let v103 : string = "closed_2" │
00:02:09 #3561 [Verbose] > │ let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │
00:02:09 #3562 [Verbose] > │ let v105 : UH1 = UH1_1 │
00:02:09 #3563 [Verbose] > │ let v106 : UH1 = UH1_0(v102, v103, v104, v105) │
00:02:09 #3564 [Verbose] > │ let v107 : UH1 = UH1_0(v99, v100, v101, v106) │
00:02:09 #3565 [Verbose] > │ let v108 : UH1 = UH1_0(v96, v97, v98, v107) │
00:02:09 #3566 [Verbose] > │ let v109 : UH1 = UH1_0(v93, v94, v95, v108) │
00:02:09 #3567 [Verbose] > │ let v110 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:02:09 #3568 [Verbose] > │ int32) -> US0)) []) = method11(v109) │
00:02:09 #3569 [Verbose] > │ let v111 : uint64 = System.Convert.ToUInt64 v110.Length │
00:02:09 #3570 [Verbose] > │ let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0 │
00:02:09 #3571 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111)) │
00:02:09 #3572 [Verbose] > │ let v113 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3573 [Verbose] > │ while method6(v111, v113) do │
00:02:09 #3574 [Verbose] > │ let v115 : uint64 = v113.l0 │
00:02:09 #3575 [Verbose] > │ let struct (v116 : int32, v117 : string, v118 : (struct ((int32 │
00:02:09 #3576 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115] │
00:02:09 #3577 [Verbose] > │ let mutable result = None │
00:02:09 #3578 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #3579 [Verbose] > │ () │
00:02:09 #3580 [Verbose] > │ #endif │
00:02:09 #3581 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #3582 [Verbose] > │ () │
00:02:09 #3583 [Verbose] > │ #endif │
00:02:09 #3584 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3585 [Verbose] > │ System.GC.Collect () │
00:02:09 #3586 [Verbose] > │ () │
00:02:09 #3587 [Verbose] > │ #endif │
00:02:09 #3588 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3589 [Verbose] > │ System.GC.Collect () │
00:02:09 #3590 [Verbose] > │ () │
00:02:09 #3591 [Verbose] > │ #endif │
00:02:09 #3592 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #3593 [Verbose] > │ System.GC.Collect () │
00:02:09 #3594 [Verbose] > │ () │
00:02:09 #3595 [Verbose] > │ #endif │
00:02:09 #3596 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #3597 [Verbose] > │ result |> Option.get │
00:02:09 #3598 [Verbose] > │ let v119 : (unit -> System.Diagnostics.Stopwatch) = │
00:02:09 #3599 [Verbose] > │ System.Diagnostics.Stopwatch │
00:02:09 #3600 [Verbose] > │ let v120 : System.Diagnostics.Stopwatch = v119 () │
00:02:09 #3601 [Verbose] > │ v120.Start () │
00:02:09 #3602 [Verbose] > │ let v121 : int64 = v120.ElapsedMilliseconds │
00:02:09 #3603 [Verbose] > │ let v122 : (int32 []) = Array.zeroCreate<int32> (8000001) │
00:02:09 #3604 [Verbose] > │ let v123 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #3605 [Verbose] > │ while method14(v123) do │
00:02:09 #3606 [Verbose] > │ let v125 : int32 = v123.l0 │
00:02:09 #3607 [Verbose] > │ v122.[int v125] <- v125 │
00:02:09 #3608 [Verbose] > │ let v126 : int32 = v125 + 1 │
00:02:09 #3609 [Verbose] > │ v123.l0 <- v126 │
00:02:09 #3610 [Verbose] > │ () │
00:02:09 #3611 [Verbose] > │ let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118) │
00:02:09 #3612 [Verbose] > │ let v128 : (US0 []) = v122 |> Array.Parallel.map v127 │
00:02:09 #3613 [Verbose] > │ let v129 : int32 = v128.Length │
00:02:09 #3614 [Verbose] > │ let v130 : int32 = v129 - 1 │
00:02:09 #3615 [Verbose] > │ let v131 : US0 = v128.[int v130] │
00:02:09 #3616 [Verbose] > │ let v132 : int64 = v120.ElapsedMilliseconds │
00:02:09 #3617 [Verbose] > │ let v133 : int64 = v132 - v121 │
00:02:09 #3618 [Verbose] > │ let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │
00:02:09 #3619 [Verbose] > │ " │
00:02:09 #3620 [Verbose] > │ System.Console.WriteLine v134 │
00:02:09 #3621 [Verbose] > │ v112.[int v115] <- struct (v131, v133) │
00:02:09 #3622 [Verbose] > │ let v135 : uint64 = v115 + 1UL │
00:02:09 #3623 [Verbose] > │ v113.l0 <- v135 │
00:02:09 #3624 [Verbose] > │ () │
00:02:09 #3625 [Verbose] > │ let v136 : uint64 = System.Convert.ToUInt64 v112.Length │
00:02:09 #3626 [Verbose] > │ let v137 : (US0 []) = Array.zeroCreate<US0> │
00:02:09 #3627 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:02:09 #3628 [Verbose] > │ let v138 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3629 [Verbose] > │ while method6(v136, v138) do │
00:02:09 #3630 [Verbose] > │ let v140 : uint64 = v138.l0 │
00:02:09 #3631 [Verbose] > │ let struct (v141 : US0, v142 : int64) = v112.[int v140] │
00:02:09 #3632 [Verbose] > │ v137.[int v140] <- v141 │
00:02:09 #3633 [Verbose] > │ let v143 : uint64 = v140 + 1UL │
00:02:09 #3634 [Verbose] > │ v138.l0 <- v143 │
00:02:09 #3635 [Verbose] > │ () │
00:02:09 #3636 [Verbose] > │ let v144 : uint64 = System.Convert.ToUInt64 v137.Length │
00:02:09 #3637 [Verbose] > │ let v145 : bool = v144 <= 1UL │
00:02:09 #3638 [Verbose] > │ if v145 then │
00:02:09 #3639 [Verbose] > │ () │
00:02:09 #3640 [Verbose] > │ else │
00:02:09 #3641 [Verbose] > │ let v146 : US0 = v137.[int 0UL] │
00:02:09 #3642 [Verbose] > │ let v147 : uint64 = 0UL │
00:02:09 #3643 [Verbose] > │ let v148 : bool = method15(v146, v137, v147) │
00:02:09 #3644 [Verbose] > │ if v148 then │
00:02:09 #3645 [Verbose] > │ () │
00:02:09 #3646 [Verbose] > │ else │
00:02:09 #3647 [Verbose] > │ let v149 : string = $"Challenge error: {v137}" │
00:02:09 #3648 [Verbose] > │ failwith<unit> v149 │
00:02:09 #3649 [Verbose] > │ let v150 : string = $"%A{v90}" │
00:02:09 #3650 [Verbose] > │ let v151 : (US0 []) = Array.zeroCreate<US0> │
00:02:09 #3651 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:02:09 #3652 [Verbose] > │ let v152 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3653 [Verbose] > │ while method6(v136, v152) do │
00:02:09 #3654 [Verbose] > │ let v154 : uint64 = v152.l0 │
00:02:09 #3655 [Verbose] > │ let struct (v155 : US0, v156 : int64) = v112.[int v154] │
00:02:09 #3656 [Verbose] > │ v151.[int v154] <- v155 │
00:02:09 #3657 [Verbose] > │ let v157 : uint64 = v154 + 1UL │
00:02:09 #3658 [Verbose] > │ v152.l0 <- v157 │
00:02:09 #3659 [Verbose] > │ () │
00:02:09 #3660 [Verbose] > │ let v158 : US0 = v151.[int 0UL] │
00:02:09 #3661 [Verbose] > │ let v159 : string = $"%A{v158}" │
00:02:09 #3662 [Verbose] > │ let v160 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #3663 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:02:09 #3664 [Verbose] > │ let v161 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3665 [Verbose] > │ while method6(v136, v161) do │
00:02:09 #3666 [Verbose] > │ let v163 : uint64 = v161.l0 │
00:02:09 #3667 [Verbose] > │ let struct (v164 : US0, v165 : int64) = v112.[int v163] │
00:02:09 #3668 [Verbose] > │ v160.[int v163] <- v165 │
00:02:09 #3669 [Verbose] > │ let v166 : uint64 = v163 + 1UL │
00:02:09 #3670 [Verbose] > │ v161.l0 <- v166 │
00:02:09 #3671 [Verbose] > │ () │
00:02:09 #3672 [Verbose] > │ v83.[int v86] <- struct (v150, v91, v159, v160) │
00:02:09 #3673 [Verbose] > │ let v167 : uint64 = v86 + 1UL │
00:02:09 #3674 [Verbose] > │ v84.l0 <- v167 │
00:02:09 #3675 [Verbose] > │ () │
00:02:09 #3676 [Verbose] > │ let v168 : uint64 = System.Convert.ToUInt64 v83.Length │
00:02:09 #3677 [Verbose] > │ let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:02:09 #3678 [Verbose] > │ US1)> (System.Convert.ToInt32(v168)) │
00:02:09 #3679 [Verbose] > │ let v170 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3680 [Verbose] > │ while method6(v168, v170) do │
00:02:09 #3681 [Verbose] > │ let v172 : uint64 = v170.l0 │
00:02:09 #3682 [Verbose] > │ let struct (v173 : string, v174 : string, v175 : string, v176 : │
00:02:09 #3683 [Verbose] > │ (int64 [])) = v83.[int v172] │
00:02:09 #3684 [Verbose] > │ let v177 : uint64 = System.Convert.ToUInt64 v176.Length │
00:02:09 #3685 [Verbose] > │ let v178 : UH3 = UH3_1 │
00:02:09 #3686 [Verbose] > │ let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2 │
00:02:09 #3687 [Verbose] > │ while method16(v177, v179) do │
00:02:09 #3688 [Verbose] > │ let v181 : uint64 = v179.l0 │
00:02:09 #3689 [Verbose] > │ let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2 │
00:02:09 #3690 [Verbose] > │ let v184 : int64 = v176.[int v181] │
00:02:09 #3691 [Verbose] > │ let v185 : int64 = v183 + 1L │
00:02:09 #3692 [Verbose] > │ let v186 : uint64 = v181 + 1UL │
00:02:09 #3693 [Verbose] > │ let v187 : UH3 = UH3_0(v183, v184, v182) │
00:02:09 #3694 [Verbose] > │ v179.l0 <- v186 │
00:02:09 #3695 [Verbose] > │ v179.l1 <- v187 │
00:02:09 #3696 [Verbose] > │ v179.l2 <- v185 │
00:02:09 #3697 [Verbose] > │ () │
00:02:09 #3698 [Verbose] > │ let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2 │
00:02:09 #3699 [Verbose] > │ let v190 : UH3 = UH3_1 │
00:02:09 #3700 [Verbose] > │ let v191 : UH3 = method17(v188, v190) │
00:02:09 #3701 [Verbose] > │ let v192 : (struct (int64 * int64) []) = method18(v191) │
00:02:09 #3702 [Verbose] > │ let v193 : int32 = v192.Length │
00:02:09 #3703 [Verbose] > │ let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:02:09 #3704 [Verbose] > │ (int64 * int64)> (v193) │
00:02:09 #3705 [Verbose] > │ let v195 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #3706 [Verbose] > │ while method21(v193, v195) do │
00:02:09 #3707 [Verbose] > │ let v197 : int32 = v195.l0 │
00:02:09 #3708 [Verbose] > │ let struct (v198 : int64, v199 : int64) = v192.[int v197] │
00:02:09 #3709 [Verbose] > │ let v200 : int64 = v198 + 1L │
00:02:09 #3710 [Verbose] > │ v194.[int v197] <- struct (v200, v199) │
00:02:09 #3711 [Verbose] > │ let v201 : int32 = v197 + 1 │
00:02:09 #3712 [Verbose] > │ v195.l0 <- v201 │
00:02:09 #3713 [Verbose] > │ () │
00:02:09 #3714 [Verbose] > │ let v202 : (struct (int64 * int64) -> int64) = closure6() │
00:02:09 #3715 [Verbose] > │ let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202 │
00:02:09 #3716 [Verbose] > │ let struct (v204 : int64, v205 : int64) = v203.[int 0] │
00:02:09 #3717 [Verbose] > │ let v206 : string = $"%A{struct (v204, v205)}" │
00:02:09 #3718 [Verbose] > │ let v207 : bool = v173 = v175 │
00:02:09 #3719 [Verbose] > │ let v212 : US1 = │
00:02:09 #3720 [Verbose] > │ if v207 then │
00:02:09 #3721 [Verbose] > │ let v208 : System.ConsoleColor = │
00:02:09 #3722 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:02:09 #3723 [Verbose] > │ US1_1(v208) │
00:02:09 #3724 [Verbose] > │ else │
00:02:09 #3725 [Verbose] > │ let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:02:09 #3726 [Verbose] > │ US1_1(v210) │
00:02:09 #3727 [Verbose] > │ let v213 : UH2 = UH2_1 │
00:02:09 #3728 [Verbose] > │ let v214 : UH2 = UH2_0(v206, v213) │
00:02:09 #3729 [Verbose] > │ let v215 : UH2 = UH2_0(v175, v214) │
00:02:09 #3730 [Verbose] > │ let v216 : UH2 = UH2_0(v173, v215) │
00:02:09 #3731 [Verbose] > │ let v217 : UH2 = UH2_0(v174, v216) │
00:02:09 #3732 [Verbose] > │ v169.[int v172] <- struct (v217, v212) │
00:02:09 #3733 [Verbose] > │ let v218 : uint64 = v172 + 1UL │
00:02:09 #3734 [Verbose] > │ v170.l0 <- v218 │
00:02:09 #3735 [Verbose] > │ () │
00:02:09 #3736 [Verbose] > │ let v219 : string = "Input" │
00:02:09 #3737 [Verbose] > │ let v220 : string = "Expected" │
00:02:09 #3738 [Verbose] > │ let v221 : string = "Result" │
00:02:09 #3739 [Verbose] > │ let v222 : string = "Best" │
00:02:09 #3740 [Verbose] > │ let v223 : UH2 = UH2_1 │
00:02:09 #3741 [Verbose] > │ let v224 : UH2 = UH2_0(v222, v223) │
00:02:09 #3742 [Verbose] > │ let v225 : UH2 = UH2_0(v221, v224) │
00:02:09 #3743 [Verbose] > │ let v226 : UH2 = UH2_0(v220, v225) │
00:02:09 #3744 [Verbose] > │ let v227 : UH2 = UH2_0(v219, v226) │
00:02:09 #3745 [Verbose] > │ let v228 : US1 = US1_0 │
00:02:09 #3746 [Verbose] > │ let v229 : string = "---" │
00:02:09 #3747 [Verbose] > │ let v230 : UH2 = UH2_1 │
00:02:09 #3748 [Verbose] > │ let v231 : UH2 = UH2_0(v229, v230) │
00:02:09 #3749 [Verbose] > │ let v232 : UH2 = UH2_0(v229, v231) │
00:02:09 #3750 [Verbose] > │ let v233 : UH2 = UH2_0(v229, v232) │
00:02:09 #3751 [Verbose] > │ let v234 : UH2 = UH2_0(v229, v233) │
00:02:09 #3752 [Verbose] > │ let v235 : US1 = US1_0 │
00:02:09 #3753 [Verbose] > │ let v236 : UH4 = UH4_1 │
00:02:09 #3754 [Verbose] > │ let v237 : UH4 = UH4_0(v234, v235, v236) │
00:02:09 #3755 [Verbose] > │ let v238 : UH4 = UH4_0(v227, v228, v237) │
00:02:09 #3756 [Verbose] > │ let v239 : (struct (UH2 * US1) []) = method22(v238) │
00:02:09 #3757 [Verbose] > │ let v240 : uint64 = System.Convert.ToUInt64 v239.Length │
00:02:09 #3758 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v169.Length │
00:02:09 #3759 [Verbose] > │ let v242 : uint64 = v240 + v241 │
00:02:09 #3760 [Verbose] > │ let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:02:09 #3761 [Verbose] > │ US1)> (System.Convert.ToInt32(v242)) │
00:02:09 #3762 [Verbose] > │ let v244 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3763 [Verbose] > │ while method6(v242, v244) do │
00:02:09 #3764 [Verbose] > │ let v246 : uint64 = v244.l0 │
00:02:09 #3765 [Verbose] > │ let v247 : bool = v246 < v240 │
00:02:09 #3766 [Verbose] > │ let struct (v253 : UH2, v254 : US1) = │
00:02:09 #3767 [Verbose] > │ if v247 then │
00:02:09 #3768 [Verbose] > │ let struct (v248 : UH2, v249 : US1) = v239.[int v246] │
00:02:09 #3769 [Verbose] > │ struct (v248, v249) │
00:02:09 #3770 [Verbose] > │ else │
00:02:09 #3771 [Verbose] > │ let v250 : uint64 = v246 - v240 │
00:02:09 #3772 [Verbose] > │ let struct (v251 : UH2, v252 : US1) = v169.[int v250] │
00:02:09 #3773 [Verbose] > │ struct (v251, v252) │
00:02:09 #3774 [Verbose] > │ v243.[int v246] <- struct (v253, v254) │
00:02:09 #3775 [Verbose] > │ let v255 : uint64 = v246 + 1UL │
00:02:09 #3776 [Verbose] > │ v244.l0 <- v255 │
00:02:09 #3777 [Verbose] > │ () │
00:02:09 #3778 [Verbose] > │ let v256 : uint64 = System.Convert.ToUInt64 v243.Length │
00:02:09 #3779 [Verbose] > │ let v257 : ((string []) []) = Array.zeroCreate<(string [])> │
00:02:09 #3780 [Verbose] > │ (System.Convert.ToInt32(v256)) │
00:02:09 #3781 [Verbose] > │ let v258 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3782 [Verbose] > │ while method6(v256, v258) do │
00:02:09 #3783 [Verbose] > │ let v260 : uint64 = v258.l0 │
00:02:09 #3784 [Verbose] > │ let struct (v261 : UH2, v262 : US1) = v243.[int v260] │
00:02:09 #3785 [Verbose] > │ let v263 : (string []) = method25(v261) │
00:02:09 #3786 [Verbose] > │ v257.[int v260] <- v263 │
00:02:09 #3787 [Verbose] > │ let v264 : uint64 = v260 + 1UL │
00:02:09 #3788 [Verbose] > │ v258.l0 <- v264 │
00:02:09 #3789 [Verbose] > │ () │
00:02:09 #3790 [Verbose] > │ let v265 : ((string []) []) = v257 |> Array.transpose │
00:02:09 #3791 [Verbose] > │ let v266 : uint64 = System.Convert.ToUInt64 v265.Length │
00:02:09 #3792 [Verbose] > │ let v267 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #3793 [Verbose] > │ (System.Convert.ToInt32(v266)) │
00:02:09 #3794 [Verbose] > │ let v268 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3795 [Verbose] > │ while method6(v266, v268) do │
00:02:09 #3796 [Verbose] > │ let v270 : uint64 = v268.l0 │
00:02:09 #3797 [Verbose] > │ let v271 : (string []) = v265.[int v270] │
00:02:09 #3798 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v271.Length │
00:02:09 #3799 [Verbose] > │ let v273 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #3800 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:02:09 #3801 [Verbose] > │ let v274 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3802 [Verbose] > │ while method6(v272, v274) do │
00:02:09 #3803 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:02:09 #3804 [Verbose] > │ let v277 : string = v271.[int v276] │
00:02:09 #3805 [Verbose] > │ let v278 : int64 = System.Convert.ToInt64 v277.Length │
00:02:09 #3806 [Verbose] > │ v273.[int v276] <- v278 │
00:02:09 #3807 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:02:09 #3808 [Verbose] > │ v274.l0 <- v279 │
00:02:09 #3809 [Verbose] > │ () │
00:02:09 #3810 [Verbose] > │ let v280 : (int64 []) = v273 |> Array.sortDescending │
00:02:09 #3811 [Verbose] > │ let v281 : int64 option = v280 |> Array.tryItem 0 │
00:02:09 #3812 [Verbose] > │ let v282 : (int64 -> US2) = closure7() │
00:02:09 #3813 [Verbose] > │ let v283 : US2 = US2_0 │
00:02:09 #3814 [Verbose] > │ let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │
00:02:09 #3815 [Verbose] > │ let v287 : int64 = │
00:02:09 #3816 [Verbose] > │ match v284 with │
00:02:09 #3817 [Verbose] > │ | US2_0 -> (* None *) │
00:02:09 #3818 [Verbose] > │ 0L │
00:02:09 #3819 [Verbose] > │ | US2_1(v285) -> (* Some *) │
00:02:09 #3820 [Verbose] > │ v285 │
00:02:09 #3821 [Verbose] > │ v267.[int v270] <- v287 │
00:02:09 #3822 [Verbose] > │ let v288 : uint64 = v270 + 1UL │
00:02:09 #3823 [Verbose] > │ v268.l0 <- v288 │
00:02:09 #3824 [Verbose] > │ () │
00:02:09 #3825 [Verbose] > │ let v289 : uint64 = System.Convert.ToUInt64 v267.Length │
00:02:09 #3826 [Verbose] > │ let v290 : UH5 = UH5_1 │
00:02:09 #3827 [Verbose] > │ let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3 │
00:02:09 #3828 [Verbose] > │ while method28(v289, v291) do │
00:02:09 #3829 [Verbose] > │ let v293 : uint64 = v291.l0 │
00:02:09 #3830 [Verbose] > │ let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2 │
00:02:09 #3831 [Verbose] > │ let v296 : int64 = v267.[int v293] │
00:02:09 #3832 [Verbose] > │ let v297 : int32 = v295 + 1 │
00:02:09 #3833 [Verbose] > │ let v298 : uint64 = v293 + 1UL │
00:02:09 #3834 [Verbose] > │ let v299 : UH5 = UH5_0(v295, v296, v294) │
00:02:09 #3835 [Verbose] > │ v291.l0 <- v298 │
00:02:09 #3836 [Verbose] > │ v291.l1 <- v299 │
00:02:09 #3837 [Verbose] > │ v291.l2 <- v297 │
00:02:09 #3838 [Verbose] > │ () │
00:02:09 #3839 [Verbose] > │ let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2 │
00:02:09 #3840 [Verbose] > │ let v302 : UH5 = UH5_1 │
00:02:09 #3841 [Verbose] > │ let v303 : UH5 = method29(v300, v302) │
00:02:09 #3842 [Verbose] > │ let v304 : (struct (int32 * int64) []) = method30(v303) │
00:02:09 #3843 [Verbose] > │ let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │
00:02:09 #3844 [Verbose] > │ a, b) |> Map.ofArray │
00:02:09 #3845 [Verbose] > │ let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct │
00:02:09 #3846 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256)) │
00:02:09 #3847 [Verbose] > │ let v307 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3848 [Verbose] > │ while method6(v256, v307) do │
00:02:09 #3849 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:02:09 #3850 [Verbose] > │ let struct (v310 : UH2, v311 : US1) = v243.[int v309] │
00:02:09 #3851 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:02:09 #3852 [Verbose] > │ let v313 : int32 = 0 │
00:02:09 #3853 [Verbose] > │ let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313) │
00:02:09 #3854 [Verbose] > │ let v316 : UH6 = UH6_1 │
00:02:09 #3855 [Verbose] > │ let v317 : UH6 = method34(v314, v316) │
00:02:09 #3856 [Verbose] > │ let v318 : UH2 = UH2_1 │
00:02:09 #3857 [Verbose] > │ let v319 : UH2 = method35(v305, v317, v318) │
00:02:09 #3858 [Verbose] > │ let v320 : (string []) = method36(v319) │
00:02:09 #3859 [Verbose] > │ v306.[int v309] <- struct (v320, v311) │
00:02:09 #3860 [Verbose] > │ let v321 : uint64 = v309 + 1UL │
00:02:09 #3861 [Verbose] > │ v307.l0 <- v321 │
00:02:09 #3862 [Verbose] > │ () │
00:02:09 #3863 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #3864 [Verbose] > │ let v322 : uint64 = System.Convert.ToUInt64 v306.Length │
00:02:09 #3865 [Verbose] > │ let v323 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3866 [Verbose] > │ while method6(v322, v323) do │
00:02:09 #3867 [Verbose] > │ let v325 : uint64 = v323.l0 │
00:02:09 #3868 [Verbose] > │ let struct (v326 : (string []), v327 : US1) = v306.[int v325] │
00:02:09 #3869 [Verbose] > │ match v327 with │
00:02:09 #3870 [Verbose] > │ | US1_0 -> (* None *) │
00:02:09 #3871 [Verbose] > │ let mutable result = None │
00:02:09 #3872 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #3873 [Verbose] > │ () │
00:02:09 #3874 [Verbose] > │ #endif │
00:02:09 #3875 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #3876 [Verbose] > │ () │
00:02:09 #3877 [Verbose] > │ #endif │
00:02:09 #3878 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3879 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #3880 [Verbose] > │ () │
00:02:09 #3881 [Verbose] > │ #endif │
00:02:09 #3882 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3883 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #3884 [Verbose] > │ () │
00:02:09 #3885 [Verbose] > │ #endif │
00:02:09 #3886 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #3887 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #3888 [Verbose] > │ () │
00:02:09 #3889 [Verbose] > │ #endif │
00:02:09 #3890 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #3891 [Verbose] > │ result |> Option.get │
00:02:09 #3892 [Verbose] > │ () │
00:02:09 #3893 [Verbose] > │ | US1_1(v328) -> (* Some *) │
00:02:09 #3894 [Verbose] > │ let mutable result = None │
00:02:09 #3895 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #3896 [Verbose] > │ () │
00:02:09 #3897 [Verbose] > │ #endif │
00:02:09 #3898 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #3899 [Verbose] > │ () │
00:02:09 #3900 [Verbose] > │ #endif │
00:02:09 #3901 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3902 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:02:09 #3903 [Verbose] > │ () │
00:02:09 #3904 [Verbose] > │ #endif │
00:02:09 #3905 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3906 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:02:09 #3907 [Verbose] > │ () │
00:02:09 #3908 [Verbose] > │ #endif │
00:02:09 #3909 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #3910 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:02:09 #3911 [Verbose] > │ () │
00:02:09 #3912 [Verbose] > │ #endif │
00:02:09 #3913 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #3914 [Verbose] > │ result |> Option.get │
00:02:09 #3915 [Verbose] > │ () │
00:02:09 #3916 [Verbose] > │ let v329 : string = "\t| " │
00:02:09 #3917 [Verbose] > │ let v330 : string = System.String.Join (v329, v326) │
00:02:09 #3918 [Verbose] > │ System.Console.WriteLine v330 │
00:02:09 #3919 [Verbose] > │ let mutable result = None │
00:02:09 #3920 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #3921 [Verbose] > │ () │
00:02:09 #3922 [Verbose] > │ #endif │
00:02:09 #3923 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #3924 [Verbose] > │ () │
00:02:09 #3925 [Verbose] > │ #endif │
00:02:09 #3926 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3927 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #3928 [Verbose] > │ () │
00:02:09 #3929 [Verbose] > │ #endif │
00:02:09 #3930 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #3931 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #3932 [Verbose] > │ () │
00:02:09 #3933 [Verbose] > │ #endif │
00:02:09 #3934 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #3935 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #3936 [Verbose] > │ () │
00:02:09 #3937 [Verbose] > │ #endif │
00:02:09 #3938 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #3939 [Verbose] > │ result |> Option.get │
00:02:09 #3940 [Verbose] > │ let v331 : uint64 = v325 + 1UL │
00:02:09 #3941 [Verbose] > │ v323.l0 <- v331 │
00:02:09 #3942 [Verbose] > │ () │
00:02:09 #3943 [Verbose] > │ let v332 : ((float []) []) = Array.zeroCreate<(float [])> │
00:02:09 #3944 [Verbose] > │ (System.Convert.ToInt32(v168)) │
00:02:09 #3945 [Verbose] > │ let v333 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3946 [Verbose] > │ while method6(v168, v333) do │
00:02:09 #3947 [Verbose] > │ let v335 : uint64 = v333.l0 │
00:02:09 #3948 [Verbose] > │ let struct (v336 : string, v337 : string, v338 : string, v339 : │
00:02:09 #3949 [Verbose] > │ (int64 [])) = v83.[int v335] │
00:02:09 #3950 [Verbose] > │ let v340 : (int64 -> float) = float │
00:02:09 #3951 [Verbose] > │ let v341 : uint64 = System.Convert.ToUInt64 v339.Length │
00:02:09 #3952 [Verbose] > │ let v342 : (float []) = Array.zeroCreate<float> │
00:02:09 #3953 [Verbose] > │ (System.Convert.ToInt32(v341)) │
00:02:09 #3954 [Verbose] > │ let v343 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3955 [Verbose] > │ while method6(v341, v343) do │
00:02:09 #3956 [Verbose] > │ let v345 : uint64 = v343.l0 │
00:02:09 #3957 [Verbose] > │ let v346 : int64 = v339.[int v345] │
00:02:09 #3958 [Verbose] > │ let v347 : float = v340 v346 │
00:02:09 #3959 [Verbose] > │ v342.[int v345] <- v347 │
00:02:09 #3960 [Verbose] > │ let v348 : uint64 = v345 + 1UL │
00:02:09 #3961 [Verbose] > │ v343.l0 <- v348 │
00:02:09 #3962 [Verbose] > │ () │
00:02:09 #3963 [Verbose] > │ v332.[int v335] <- v342 │
00:02:09 #3964 [Verbose] > │ let v349 : uint64 = v335 + 1UL │
00:02:09 #3965 [Verbose] > │ v333.l0 <- v349 │
00:02:09 #3966 [Verbose] > │ () │
00:02:09 #3967 [Verbose] > │ let v350 : ((float []) []) = v332 |> Array.transpose │
00:02:09 #3968 [Verbose] > │ let v351 : uint64 = System.Convert.ToUInt64 v350.Length │
00:02:09 #3969 [Verbose] > │ let v352 : (float []) = Array.zeroCreate<float> │
00:02:09 #3970 [Verbose] > │ (System.Convert.ToInt32(v351)) │
00:02:09 #3971 [Verbose] > │ let v353 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3972 [Verbose] > │ while method6(v351, v353) do │
00:02:09 #3973 [Verbose] > │ let v355 : uint64 = v353.l0 │
00:02:09 #3974 [Verbose] > │ let v356 : (float []) = v350.[int v355] │
00:02:09 #3975 [Verbose] > │ let v357 : float = v356 |> Array.average │
00:02:09 #3976 [Verbose] > │ v352.[int v355] <- v357 │
00:02:09 #3977 [Verbose] > │ let v358 : uint64 = v355 + 1UL │
00:02:09 #3978 [Verbose] > │ v353.l0 <- v358 │
00:02:09 #3979 [Verbose] > │ () │
00:02:09 #3980 [Verbose] > │ let v359 : (float -> int64) = int64 │
00:02:09 #3981 [Verbose] > │ let v360 : uint64 = System.Convert.ToUInt64 v352.Length │
00:02:09 #3982 [Verbose] > │ let v361 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #3983 [Verbose] > │ (System.Convert.ToInt32(v360)) │
00:02:09 #3984 [Verbose] > │ let v362 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #3985 [Verbose] > │ while method6(v360, v362) do │
00:02:09 #3986 [Verbose] > │ let v364 : uint64 = v362.l0 │
00:02:09 #3987 [Verbose] > │ let v365 : float = v352.[int v364] │
00:02:09 #3988 [Verbose] > │ let v366 : int64 = v359 v365 │
00:02:09 #3989 [Verbose] > │ v361.[int v364] <- v366 │
00:02:09 #3990 [Verbose] > │ let v367 : uint64 = v364 + 1UL │
00:02:09 #3991 [Verbose] > │ v362.l0 <- v367 │
00:02:09 #3992 [Verbose] > │ () │
00:02:09 #3993 [Verbose] > │ let v368 : uint64 = System.Convert.ToUInt64 v361.Length │
00:02:09 #3994 [Verbose] > │ let v369 : UH5 = UH5_1 │
00:02:09 #3995 [Verbose] > │ let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3 │
00:02:09 #3996 [Verbose] > │ while method28(v368, v370) do │
00:02:09 #3997 [Verbose] > │ let v372 : uint64 = v370.l0 │
00:02:09 #3998 [Verbose] > │ let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2 │
00:02:09 #3999 [Verbose] > │ let v375 : int64 = v361.[int v372] │
00:02:09 #4000 [Verbose] > │ let v376 : int32 = v374 + 1 │
00:02:09 #4001 [Verbose] > │ let v377 : uint64 = v372 + 1UL │
00:02:09 #4002 [Verbose] > │ let v378 : UH5 = UH5_0(v374, v375, v373) │
00:02:09 #4003 [Verbose] > │ v370.l0 <- v377 │
00:02:09 #4004 [Verbose] > │ v370.l1 <- v378 │
00:02:09 #4005 [Verbose] > │ v370.l2 <- v376 │
00:02:09 #4006 [Verbose] > │ () │
00:02:09 #4007 [Verbose] > │ let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2 │
00:02:09 #4008 [Verbose] > │ let v381 : UH5 = UH5_1 │
00:02:09 #4009 [Verbose] > │ let v382 : UH5 = method29(v379, v381) │
00:02:09 #4010 [Verbose] > │ let v383 : (struct (int32 * int64) []) = method39(v382) │
00:02:09 #4011 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #4012 [Verbose] > │ let v384 : string = "Average Ranking " │
00:02:09 #4013 [Verbose] > │ System.Console.WriteLine v384 │
00:02:09 #4014 [Verbose] > │ let v385 : (struct (int32 * int64) -> int64) = closure8() │
00:02:09 #4015 [Verbose] > │ let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385 │
00:02:09 #4016 [Verbose] > │ let v387 : uint64 = System.Convert.ToUInt64 v386.Length │
00:02:09 #4017 [Verbose] > │ let v388 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4018 [Verbose] > │ while method6(v387, v388) do │
00:02:09 #4019 [Verbose] > │ let v390 : uint64 = v388.l0 │
00:02:09 #4020 [Verbose] > │ let struct (v391 : int32, v392 : int64) = v386.[int v390] │
00:02:09 #4021 [Verbose] > │ let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │
00:02:09 #4022 [Verbose] > │ " │
00:02:09 #4023 [Verbose] > │ System.Console.WriteLine v393 │
00:02:09 #4024 [Verbose] > │ let v394 : uint64 = v390 + 1UL │
00:02:09 #4025 [Verbose] > │ v388.l0 <- v394 │
00:02:09 #4026 [Verbose] > │ () │
00:02:09 #4027 [Verbose] > │ () │
00:02:09 #4028 [Verbose] > │ and method0 () : unit = │
00:02:09 #4029 [Verbose] > │ let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4030 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:02:09 #4031 [Verbose] > │ let v2 : int32 = v1.Length │
00:02:09 #4032 [Verbose] > │ let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4033 [Verbose] > │ let v4 : (int32 []) = method1(v3) │
00:02:09 #4034 [Verbose] > │ let v5 : int32 = v4.Length │
00:02:09 #4035 [Verbose] > │ let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4036 [Verbose] > │ let v7 : (int32 []) = method1(v6) │
00:02:09 #4037 [Verbose] > │ let v8 : int32 = v7.Length │
00:02:09 #4038 [Verbose] > │ let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4039 [Verbose] > │ let v10 : (int32 []) = method1(v9) │
00:02:09 #4040 [Verbose] > │ let v11 : int32 = v10.Length │
00:02:09 #4041 [Verbose] > │ let v12 : (int32 []) = Array.zeroCreate<int32> (100) │
00:02:09 #4042 [Verbose] > │ let v13 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #4043 [Verbose] > │ while method2(v13) do │
00:02:09 #4044 [Verbose] > │ let v15 : int32 = v13.l0 │
00:02:09 #4045 [Verbose] > │ let v16 : int32 = 1 + v15 │
00:02:09 #4046 [Verbose] > │ v12.[int v15] <- v16 │
00:02:09 #4047 [Verbose] > │ let v17 : int32 = v15 + 1 │
00:02:09 #4048 [Verbose] > │ v13.l0 <- v17 │
00:02:09 #4049 [Verbose] > │ () │
00:02:09 #4050 [Verbose] > │ let v18 : int32 = v12.Length │
00:02:09 #4051 [Verbose] > │ let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4052 [Verbose] > │ let v20 : (int32 []) = method1(v19) │
00:02:09 #4053 [Verbose] > │ let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4054 [Verbose] > │ let v22 : (int32 []) = method1(v21) │
00:02:09 #4055 [Verbose] > │ let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4056 [Verbose] > │ let v24 : (int32 []) = method1(v23) │
00:02:09 #4057 [Verbose] > │ let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:02:09 #4058 [Verbose] > │ let v26 : (int32 []) = method1(v25) │
00:02:09 #4059 [Verbose] > │ let v27 : (int32 []) = Array.zeroCreate<int32> (100) │
00:02:09 #4060 [Verbose] > │ let v28 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #4061 [Verbose] > │ while method2(v28) do │
00:02:09 #4062 [Verbose] > │ let v30 : int32 = v28.l0 │
00:02:09 #4063 [Verbose] > │ let v31 : int32 = 1 + v30 │
00:02:09 #4064 [Verbose] > │ v27.[int v30] <- v31 │
00:02:09 #4065 [Verbose] > │ let v32 : int32 = v30 + 1 │
00:02:09 #4066 [Verbose] > │ v28.l0 <- v32 │
00:02:09 #4067 [Verbose] > │ () │
00:02:09 #4068 [Verbose] > │ let v33 : (unit -> unit) = closure0() │
00:02:09 #4069 [Verbose] > │ let v34 : string = nameof v33 │
00:02:09 #4070 [Verbose] > │ let v35 : string = "" │
00:02:09 #4071 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #4072 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #4073 [Verbose] > │ let v36 : string = $"Test: {v34}" │
00:02:09 #4074 [Verbose] > │ System.Console.WriteLine v36 │
00:02:09 #4075 [Verbose] > │ let v37 : int32 = 6 │
00:02:09 #4076 [Verbose] > │ let v38 : int32 = 3 │
00:02:09 #4077 [Verbose] > │ let v39 : US0 = US0_1(v38) │
00:02:09 #4078 [Verbose] > │ let v40 : int32 = 1 │
00:02:09 #4079 [Verbose] > │ let v41 : int32 = 0 │
00:02:09 #4080 [Verbose] > │ let v42 : US0 = US0_1(v41) │
00:02:09 #4081 [Verbose] > │ let v43 : int32 = 11 │
00:02:09 #4082 [Verbose] > │ let v44 : int32 = 6 │
00:02:09 #4083 [Verbose] > │ let v45 : US0 = US0_1(v44) │
00:02:09 #4084 [Verbose] > │ let v46 : int32 = 12 │
00:02:09 #4085 [Verbose] > │ let v47 : US0 = US0_0 │
00:02:09 #4086 [Verbose] > │ let v48 : int32 = 60 │
00:02:09 #4087 [Verbose] > │ let v49 : int32 = 59 │
00:02:09 #4088 [Verbose] > │ let v50 : US0 = US0_1(v49) │
00:02:09 #4089 [Verbose] > │ let v51 : int32 = 6 │
00:02:09 #4090 [Verbose] > │ let v52 : int32 = 7 │
00:02:09 #4091 [Verbose] > │ let v53 : int32 = 3 │
00:02:09 #4092 [Verbose] > │ let v54 : US0 = US0_1(v53) │
00:02:09 #4093 [Verbose] > │ let v55 : int32 = 1 │
00:02:09 #4094 [Verbose] > │ let v56 : int32 = 7 │
00:02:09 #4095 [Verbose] > │ let v57 : int32 = 0 │
00:02:09 #4096 [Verbose] > │ let v58 : US0 = US0_1(v57) │
00:02:09 #4097 [Verbose] > │ let v59 : int32 = 11 │
00:02:09 #4098 [Verbose] > │ let v60 : int32 = 7 │
00:02:09 #4099 [Verbose] > │ let v61 : int32 = 6 │
00:02:09 #4100 [Verbose] > │ let v62 : US0 = US0_1(v61) │
00:02:09 #4101 [Verbose] > │ let v63 : int32 = 12 │
00:02:09 #4102 [Verbose] > │ let v64 : int32 = 7 │
00:02:09 #4103 [Verbose] > │ let v65 : US0 = US0_0 │
00:02:09 #4104 [Verbose] > │ let v66 : int32 = 60 │
00:02:09 #4105 [Verbose] > │ let v67 : int32 = 100 │
00:02:09 #4106 [Verbose] > │ let v68 : int32 = 59 │
00:02:09 #4107 [Verbose] > │ let v69 : US0 = US0_1(v68) │
00:02:09 #4108 [Verbose] > │ let v70 : UH0 = UH0_1 │
00:02:09 #4109 [Verbose] > │ let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70) │
00:02:09 #4110 [Verbose] > │ let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71) │
00:02:09 #4111 [Verbose] > │ let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72) │
00:02:09 #4112 [Verbose] > │ let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73) │
00:02:09 #4113 [Verbose] > │ let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74) │
00:02:09 #4114 [Verbose] > │ let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75) │
00:02:09 #4115 [Verbose] > │ let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76) │
00:02:09 #4116 [Verbose] > │ let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77) │
00:02:09 #4117 [Verbose] > │ let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78) │
00:02:09 #4118 [Verbose] > │ let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79) │
00:02:09 #4119 [Verbose] > │ let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80) │
00:02:09 #4120 [Verbose] > │ let v82 : uint64 = System.Convert.ToUInt64 v81.Length │
00:02:09 #4121 [Verbose] > │ let v83 : (struct (string * string * string * (int64 [])) []) = │
00:02:09 #4122 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:02:09 #4123 [Verbose] > │ (System.Convert.ToInt32(v82)) │
00:02:09 #4124 [Verbose] > │ let v84 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4125 [Verbose] > │ while method6(v82, v84) do │
00:02:09 #4126 [Verbose] > │ let v86 : uint64 = v84.l0 │
00:02:09 #4127 [Verbose] > │ let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │
00:02:09 #4128 [Verbose] > │ v81.[int v86] │
00:02:09 #4129 [Verbose] > │ let v91 : string = $"%A{struct (v87, v88, v89)}" │
00:02:09 #4130 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #4131 [Verbose] > │ let v92 : string = $"Solution: {v91} " │
00:02:09 #4132 [Verbose] > │ System.Console.WriteLine v92 │
00:02:09 #4133 [Verbose] > │ let v93 : int32 = 0 │
00:02:09 #4134 [Verbose] > │ let v94 : string = "semi_open_1" │
00:02:09 #4135 [Verbose] > │ let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1() │
00:02:09 #4136 [Verbose] > │ let v96 : int32 = 1 │
00:02:09 #4137 [Verbose] > │ let v97 : string = "closed_1" │
00:02:09 #4138 [Verbose] > │ let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2() │
00:02:09 #4139 [Verbose] > │ let v99 : int32 = 2 │
00:02:09 #4140 [Verbose] > │ let v100 : string = "semi_open_2" │
00:02:09 #4141 [Verbose] > │ let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │
00:02:09 #4142 [Verbose] > │ let v102 : int32 = 3 │
00:02:09 #4143 [Verbose] > │ let v103 : string = "closed_2" │
00:02:09 #4144 [Verbose] > │ let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │
00:02:09 #4145 [Verbose] > │ let v105 : UH1 = UH1_1 │
00:02:09 #4146 [Verbose] > │ let v106 : UH1 = UH1_0(v102, v103, v104, v105) │
00:02:09 #4147 [Verbose] > │ let v107 : UH1 = UH1_0(v99, v100, v101, v106) │
00:02:09 #4148 [Verbose] > │ let v108 : UH1 = UH1_0(v96, v97, v98, v107) │
00:02:09 #4149 [Verbose] > │ let v109 : UH1 = UH1_0(v93, v94, v95, v108) │
00:02:09 #4150 [Verbose] > │ let v110 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:02:09 #4151 [Verbose] > │ int32) -> US0)) []) = method11(v109) │
00:02:09 #4152 [Verbose] > │ let v111 : uint64 = System.Convert.ToUInt64 v110.Length │
00:02:09 #4153 [Verbose] > │ let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0 │
00:02:09 #4154 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111)) │
00:02:09 #4155 [Verbose] > │ let v113 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4156 [Verbose] > │ while method6(v111, v113) do │
00:02:09 #4157 [Verbose] > │ let v115 : uint64 = v113.l0 │
00:02:09 #4158 [Verbose] > │ let struct (v116 : int32, v117 : string, v118 : (struct ((int32 │
00:02:09 #4159 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115] │
00:02:09 #4160 [Verbose] > │ let mutable result = None │
00:02:09 #4161 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #4162 [Verbose] > │ () │
00:02:09 #4163 [Verbose] > │ #endif │
00:02:09 #4164 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #4165 [Verbose] > │ () │
00:02:09 #4166 [Verbose] > │ #endif │
00:02:09 #4167 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4168 [Verbose] > │ System.GC.Collect () │
00:02:09 #4169 [Verbose] > │ () │
00:02:09 #4170 [Verbose] > │ #endif │
00:02:09 #4171 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4172 [Verbose] > │ System.GC.Collect () │
00:02:09 #4173 [Verbose] > │ () │
00:02:09 #4174 [Verbose] > │ #endif │
00:02:09 #4175 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #4176 [Verbose] > │ System.GC.Collect () │
00:02:09 #4177 [Verbose] > │ () │
00:02:09 #4178 [Verbose] > │ #endif │
00:02:09 #4179 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #4180 [Verbose] > │ result |> Option.get │
00:02:09 #4181 [Verbose] > │ let v119 : (unit -> System.Diagnostics.Stopwatch) = │
00:02:09 #4182 [Verbose] > │ System.Diagnostics.Stopwatch │
00:02:09 #4183 [Verbose] > │ let v120 : System.Diagnostics.Stopwatch = v119 () │
00:02:09 #4184 [Verbose] > │ v120.Start () │
00:02:09 #4185 [Verbose] > │ let v121 : int64 = v120.ElapsedMilliseconds │
00:02:09 #4186 [Verbose] > │ let v122 : (int32 []) = Array.zeroCreate<int32> (8000001) │
00:02:09 #4187 [Verbose] > │ let v123 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #4188 [Verbose] > │ while method14(v123) do │
00:02:09 #4189 [Verbose] > │ let v125 : int32 = v123.l0 │
00:02:09 #4190 [Verbose] > │ v122.[int v125] <- v125 │
00:02:09 #4191 [Verbose] > │ let v126 : int32 = v125 + 1 │
00:02:09 #4192 [Verbose] > │ v123.l0 <- v126 │
00:02:09 #4193 [Verbose] > │ () │
00:02:09 #4194 [Verbose] > │ let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118) │
00:02:09 #4195 [Verbose] > │ let v128 : (US0 []) = v122 |> Array.Parallel.map v127 │
00:02:09 #4196 [Verbose] > │ let v129 : int32 = v128.Length │
00:02:09 #4197 [Verbose] > │ let v130 : int32 = v129 - 1 │
00:02:09 #4198 [Verbose] > │ let v131 : US0 = v128.[int v130] │
00:02:09 #4199 [Verbose] > │ let v132 : int64 = v120.ElapsedMilliseconds │
00:02:09 #4200 [Verbose] > │ let v133 : int64 = v132 - v121 │
00:02:09 #4201 [Verbose] > │ let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │
00:02:09 #4202 [Verbose] > │ " │
00:02:09 #4203 [Verbose] > │ System.Console.WriteLine v134 │
00:02:09 #4204 [Verbose] > │ v112.[int v115] <- struct (v131, v133) │
00:02:09 #4205 [Verbose] > │ let v135 : uint64 = v115 + 1UL │
00:02:09 #4206 [Verbose] > │ v113.l0 <- v135 │
00:02:09 #4207 [Verbose] > │ () │
00:02:09 #4208 [Verbose] > │ let v136 : uint64 = System.Convert.ToUInt64 v112.Length │
00:02:09 #4209 [Verbose] > │ let v137 : (US0 []) = Array.zeroCreate<US0> │
00:02:09 #4210 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:02:09 #4211 [Verbose] > │ let v138 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4212 [Verbose] > │ while method6(v136, v138) do │
00:02:09 #4213 [Verbose] > │ let v140 : uint64 = v138.l0 │
00:02:09 #4214 [Verbose] > │ let struct (v141 : US0, v142 : int64) = v112.[int v140] │
00:02:09 #4215 [Verbose] > │ v137.[int v140] <- v141 │
00:02:09 #4216 [Verbose] > │ let v143 : uint64 = v140 + 1UL │
00:02:09 #4217 [Verbose] > │ v138.l0 <- v143 │
00:02:09 #4218 [Verbose] > │ () │
00:02:09 #4219 [Verbose] > │ let v144 : uint64 = System.Convert.ToUInt64 v137.Length │
00:02:09 #4220 [Verbose] > │ let v145 : bool = v144 <= 1UL │
00:02:09 #4221 [Verbose] > │ if v145 then │
00:02:09 #4222 [Verbose] > │ () │
00:02:09 #4223 [Verbose] > │ else │
00:02:09 #4224 [Verbose] > │ let v146 : US0 = v137.[int 0UL] │
00:02:09 #4225 [Verbose] > │ let v147 : uint64 = 0UL │
00:02:09 #4226 [Verbose] > │ let v148 : bool = method15(v146, v137, v147) │
00:02:09 #4227 [Verbose] > │ if v148 then │
00:02:09 #4228 [Verbose] > │ () │
00:02:09 #4229 [Verbose] > │ else │
00:02:09 #4230 [Verbose] > │ let v149 : string = $"Challenge error: {v137}" │
00:02:09 #4231 [Verbose] > │ failwith<unit> v149 │
00:02:09 #4232 [Verbose] > │ let v150 : string = $"%A{v90}" │
00:02:09 #4233 [Verbose] > │ let v151 : (US0 []) = Array.zeroCreate<US0> │
00:02:09 #4234 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:02:09 #4235 [Verbose] > │ let v152 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4236 [Verbose] > │ while method6(v136, v152) do │
00:02:09 #4237 [Verbose] > │ let v154 : uint64 = v152.l0 │
00:02:09 #4238 [Verbose] > │ let struct (v155 : US0, v156 : int64) = v112.[int v154] │
00:02:09 #4239 [Verbose] > │ v151.[int v154] <- v155 │
00:02:09 #4240 [Verbose] > │ let v157 : uint64 = v154 + 1UL │
00:02:09 #4241 [Verbose] > │ v152.l0 <- v157 │
00:02:09 #4242 [Verbose] > │ () │
00:02:09 #4243 [Verbose] > │ let v158 : US0 = v151.[int 0UL] │
00:02:09 #4244 [Verbose] > │ let v159 : string = $"%A{v158}" │
00:02:09 #4245 [Verbose] > │ let v160 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #4246 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:02:09 #4247 [Verbose] > │ let v161 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4248 [Verbose] > │ while method6(v136, v161) do │
00:02:09 #4249 [Verbose] > │ let v163 : uint64 = v161.l0 │
00:02:09 #4250 [Verbose] > │ let struct (v164 : US0, v165 : int64) = v112.[int v163] │
00:02:09 #4251 [Verbose] > │ v160.[int v163] <- v165 │
00:02:09 #4252 [Verbose] > │ let v166 : uint64 = v163 + 1UL │
00:02:09 #4253 [Verbose] > │ v161.l0 <- v166 │
00:02:09 #4254 [Verbose] > │ () │
00:02:09 #4255 [Verbose] > │ v83.[int v86] <- struct (v150, v91, v159, v160) │
00:02:09 #4256 [Verbose] > │ let v167 : uint64 = v86 + 1UL │
00:02:09 #4257 [Verbose] > │ v84.l0 <- v167 │
00:02:09 #4258 [Verbose] > │ () │
00:02:09 #4259 [Verbose] > │ let v168 : uint64 = System.Convert.ToUInt64 v83.Length │
00:02:09 #4260 [Verbose] > │ let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:02:09 #4261 [Verbose] > │ US1)> (System.Convert.ToInt32(v168)) │
00:02:09 #4262 [Verbose] > │ let v170 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4263 [Verbose] > │ while method6(v168, v170) do │
00:02:09 #4264 [Verbose] > │ let v172 : uint64 = v170.l0 │
00:02:09 #4265 [Verbose] > │ let struct (v173 : string, v174 : string, v175 : string, v176 : │
00:02:09 #4266 [Verbose] > │ (int64 [])) = v83.[int v172] │
00:02:09 #4267 [Verbose] > │ let v177 : uint64 = System.Convert.ToUInt64 v176.Length │
00:02:09 #4268 [Verbose] > │ let v178 : UH3 = UH3_1 │
00:02:09 #4269 [Verbose] > │ let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2 │
00:02:09 #4270 [Verbose] > │ while method16(v177, v179) do │
00:02:09 #4271 [Verbose] > │ let v181 : uint64 = v179.l0 │
00:02:09 #4272 [Verbose] > │ let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2 │
00:02:09 #4273 [Verbose] > │ let v184 : int64 = v176.[int v181] │
00:02:09 #4274 [Verbose] > │ let v185 : int64 = v183 + 1L │
00:02:09 #4275 [Verbose] > │ let v186 : uint64 = v181 + 1UL │
00:02:09 #4276 [Verbose] > │ let v187 : UH3 = UH3_0(v183, v184, v182) │
00:02:09 #4277 [Verbose] > │ v179.l0 <- v186 │
00:02:09 #4278 [Verbose] > │ v179.l1 <- v187 │
00:02:09 #4279 [Verbose] > │ v179.l2 <- v185 │
00:02:09 #4280 [Verbose] > │ () │
00:02:09 #4281 [Verbose] > │ let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2 │
00:02:09 #4282 [Verbose] > │ let v190 : UH3 = UH3_1 │
00:02:09 #4283 [Verbose] > │ let v191 : UH3 = method17(v188, v190) │
00:02:09 #4284 [Verbose] > │ let v192 : (struct (int64 * int64) []) = method18(v191) │
00:02:09 #4285 [Verbose] > │ let v193 : int32 = v192.Length │
00:02:09 #4286 [Verbose] > │ let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:02:09 #4287 [Verbose] > │ (int64 * int64)> (v193) │
00:02:09 #4288 [Verbose] > │ let v195 : Mut0 = {l0 = 0} : Mut0 │
00:02:09 #4289 [Verbose] > │ while method21(v193, v195) do │
00:02:09 #4290 [Verbose] > │ let v197 : int32 = v195.l0 │
00:02:09 #4291 [Verbose] > │ let struct (v198 : int64, v199 : int64) = v192.[int v197] │
00:02:09 #4292 [Verbose] > │ let v200 : int64 = v198 + 1L │
00:02:09 #4293 [Verbose] > │ v194.[int v197] <- struct (v200, v199) │
00:02:09 #4294 [Verbose] > │ let v201 : int32 = v197 + 1 │
00:02:09 #4295 [Verbose] > │ v195.l0 <- v201 │
00:02:09 #4296 [Verbose] > │ () │
00:02:09 #4297 [Verbose] > │ let v202 : (struct (int64 * int64) -> int64) = closure6() │
00:02:09 #4298 [Verbose] > │ let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202 │
00:02:09 #4299 [Verbose] > │ let struct (v204 : int64, v205 : int64) = v203.[int 0] │
00:02:09 #4300 [Verbose] > │ let v206 : string = $"%A{struct (v204, v205)}" │
00:02:09 #4301 [Verbose] > │ let v207 : bool = v173 = v175 │
00:02:09 #4302 [Verbose] > │ let v212 : US1 = │
00:02:09 #4303 [Verbose] > │ if v207 then │
00:02:09 #4304 [Verbose] > │ let v208 : System.ConsoleColor = │
00:02:09 #4305 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:02:09 #4306 [Verbose] > │ US1_1(v208) │
00:02:09 #4307 [Verbose] > │ else │
00:02:09 #4308 [Verbose] > │ let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:02:09 #4309 [Verbose] > │ US1_1(v210) │
00:02:09 #4310 [Verbose] > │ let v213 : UH2 = UH2_1 │
00:02:09 #4311 [Verbose] > │ let v214 : UH2 = UH2_0(v206, v213) │
00:02:09 #4312 [Verbose] > │ let v215 : UH2 = UH2_0(v175, v214) │
00:02:09 #4313 [Verbose] > │ let v216 : UH2 = UH2_0(v173, v215) │
00:02:09 #4314 [Verbose] > │ let v217 : UH2 = UH2_0(v174, v216) │
00:02:09 #4315 [Verbose] > │ v169.[int v172] <- struct (v217, v212) │
00:02:09 #4316 [Verbose] > │ let v218 : uint64 = v172 + 1UL │
00:02:09 #4317 [Verbose] > │ v170.l0 <- v218 │
00:02:09 #4318 [Verbose] > │ () │
00:02:09 #4319 [Verbose] > │ let v219 : string = "Input" │
00:02:09 #4320 [Verbose] > │ let v220 : string = "Expected" │
00:02:09 #4321 [Verbose] > │ let v221 : string = "Result" │
00:02:09 #4322 [Verbose] > │ let v222 : string = "Best" │
00:02:09 #4323 [Verbose] > │ let v223 : UH2 = UH2_1 │
00:02:09 #4324 [Verbose] > │ let v224 : UH2 = UH2_0(v222, v223) │
00:02:09 #4325 [Verbose] > │ let v225 : UH2 = UH2_0(v221, v224) │
00:02:09 #4326 [Verbose] > │ let v226 : UH2 = UH2_0(v220, v225) │
00:02:09 #4327 [Verbose] > │ let v227 : UH2 = UH2_0(v219, v226) │
00:02:09 #4328 [Verbose] > │ let v228 : US1 = US1_0 │
00:02:09 #4329 [Verbose] > │ let v229 : string = "---" │
00:02:09 #4330 [Verbose] > │ let v230 : UH2 = UH2_1 │
00:02:09 #4331 [Verbose] > │ let v231 : UH2 = UH2_0(v229, v230) │
00:02:09 #4332 [Verbose] > │ let v232 : UH2 = UH2_0(v229, v231) │
00:02:09 #4333 [Verbose] > │ let v233 : UH2 = UH2_0(v229, v232) │
00:02:09 #4334 [Verbose] > │ let v234 : UH2 = UH2_0(v229, v233) │
00:02:09 #4335 [Verbose] > │ let v235 : US1 = US1_0 │
00:02:09 #4336 [Verbose] > │ let v236 : UH4 = UH4_1 │
00:02:09 #4337 [Verbose] > │ let v237 : UH4 = UH4_0(v234, v235, v236) │
00:02:09 #4338 [Verbose] > │ let v238 : UH4 = UH4_0(v227, v228, v237) │
00:02:09 #4339 [Verbose] > │ let v239 : (struct (UH2 * US1) []) = method22(v238) │
00:02:09 #4340 [Verbose] > │ let v240 : uint64 = System.Convert.ToUInt64 v239.Length │
00:02:09 #4341 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v169.Length │
00:02:09 #4342 [Verbose] > │ let v242 : uint64 = v240 + v241 │
00:02:09 #4343 [Verbose] > │ let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:02:09 #4344 [Verbose] > │ US1)> (System.Convert.ToInt32(v242)) │
00:02:09 #4345 [Verbose] > │ let v244 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4346 [Verbose] > │ while method6(v242, v244) do │
00:02:09 #4347 [Verbose] > │ let v246 : uint64 = v244.l0 │
00:02:09 #4348 [Verbose] > │ let v247 : bool = v246 < v240 │
00:02:09 #4349 [Verbose] > │ let struct (v253 : UH2, v254 : US1) = │
00:02:09 #4350 [Verbose] > │ if v247 then │
00:02:09 #4351 [Verbose] > │ let struct (v248 : UH2, v249 : US1) = v239.[int v246] │
00:02:09 #4352 [Verbose] > │ struct (v248, v249) │
00:02:09 #4353 [Verbose] > │ else │
00:02:09 #4354 [Verbose] > │ let v250 : uint64 = v246 - v240 │
00:02:09 #4355 [Verbose] > │ let struct (v251 : UH2, v252 : US1) = v169.[int v250] │
00:02:09 #4356 [Verbose] > │ struct (v251, v252) │
00:02:09 #4357 [Verbose] > │ v243.[int v246] <- struct (v253, v254) │
00:02:09 #4358 [Verbose] > │ let v255 : uint64 = v246 + 1UL │
00:02:09 #4359 [Verbose] > │ v244.l0 <- v255 │
00:02:09 #4360 [Verbose] > │ () │
00:02:09 #4361 [Verbose] > │ let v256 : uint64 = System.Convert.ToUInt64 v243.Length │
00:02:09 #4362 [Verbose] > │ let v257 : ((string []) []) = Array.zeroCreate<(string [])> │
00:02:09 #4363 [Verbose] > │ (System.Convert.ToInt32(v256)) │
00:02:09 #4364 [Verbose] > │ let v258 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4365 [Verbose] > │ while method6(v256, v258) do │
00:02:09 #4366 [Verbose] > │ let v260 : uint64 = v258.l0 │
00:02:09 #4367 [Verbose] > │ let struct (v261 : UH2, v262 : US1) = v243.[int v260] │
00:02:09 #4368 [Verbose] > │ let v263 : (string []) = method25(v261) │
00:02:09 #4369 [Verbose] > │ v257.[int v260] <- v263 │
00:02:09 #4370 [Verbose] > │ let v264 : uint64 = v260 + 1UL │
00:02:09 #4371 [Verbose] > │ v258.l0 <- v264 │
00:02:09 #4372 [Verbose] > │ () │
00:02:09 #4373 [Verbose] > │ let v265 : ((string []) []) = v257 |> Array.transpose │
00:02:09 #4374 [Verbose] > │ let v266 : uint64 = System.Convert.ToUInt64 v265.Length │
00:02:09 #4375 [Verbose] > │ let v267 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #4376 [Verbose] > │ (System.Convert.ToInt32(v266)) │
00:02:09 #4377 [Verbose] > │ let v268 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4378 [Verbose] > │ while method6(v266, v268) do │
00:02:09 #4379 [Verbose] > │ let v270 : uint64 = v268.l0 │
00:02:09 #4380 [Verbose] > │ let v271 : (string []) = v265.[int v270] │
00:02:09 #4381 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v271.Length │
00:02:09 #4382 [Verbose] > │ let v273 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #4383 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:02:09 #4384 [Verbose] > │ let v274 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4385 [Verbose] > │ while method6(v272, v274) do │
00:02:09 #4386 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:02:09 #4387 [Verbose] > │ let v277 : string = v271.[int v276] │
00:02:09 #4388 [Verbose] > │ let v278 : int64 = System.Convert.ToInt64 v277.Length │
00:02:09 #4389 [Verbose] > │ v273.[int v276] <- v278 │
00:02:09 #4390 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:02:09 #4391 [Verbose] > │ v274.l0 <- v279 │
00:02:09 #4392 [Verbose] > │ () │
00:02:09 #4393 [Verbose] > │ let v280 : (int64 []) = v273 |> Array.sortDescending │
00:02:09 #4394 [Verbose] > │ let v281 : int64 option = v280 |> Array.tryItem 0 │
00:02:09 #4395 [Verbose] > │ let v282 : (int64 -> US2) = closure7() │
00:02:09 #4396 [Verbose] > │ let v283 : US2 = US2_0 │
00:02:09 #4397 [Verbose] > │ let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │
00:02:09 #4398 [Verbose] > │ let v287 : int64 = │
00:02:09 #4399 [Verbose] > │ match v284 with │
00:02:09 #4400 [Verbose] > │ | US2_0 -> (* None *) │
00:02:09 #4401 [Verbose] > │ 0L │
00:02:09 #4402 [Verbose] > │ | US2_1(v285) -> (* Some *) │
00:02:09 #4403 [Verbose] > │ v285 │
00:02:09 #4404 [Verbose] > │ v267.[int v270] <- v287 │
00:02:09 #4405 [Verbose] > │ let v288 : uint64 = v270 + 1UL │
00:02:09 #4406 [Verbose] > │ v268.l0 <- v288 │
00:02:09 #4407 [Verbose] > │ () │
00:02:09 #4408 [Verbose] > │ let v289 : uint64 = System.Convert.ToUInt64 v267.Length │
00:02:09 #4409 [Verbose] > │ let v290 : UH5 = UH5_1 │
00:02:09 #4410 [Verbose] > │ let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3 │
00:02:09 #4411 [Verbose] > │ while method28(v289, v291) do │
00:02:09 #4412 [Verbose] > │ let v293 : uint64 = v291.l0 │
00:02:09 #4413 [Verbose] > │ let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2 │
00:02:09 #4414 [Verbose] > │ let v296 : int64 = v267.[int v293] │
00:02:09 #4415 [Verbose] > │ let v297 : int32 = v295 + 1 │
00:02:09 #4416 [Verbose] > │ let v298 : uint64 = v293 + 1UL │
00:02:09 #4417 [Verbose] > │ let v299 : UH5 = UH5_0(v295, v296, v294) │
00:02:09 #4418 [Verbose] > │ v291.l0 <- v298 │
00:02:09 #4419 [Verbose] > │ v291.l1 <- v299 │
00:02:09 #4420 [Verbose] > │ v291.l2 <- v297 │
00:02:09 #4421 [Verbose] > │ () │
00:02:09 #4422 [Verbose] > │ let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2 │
00:02:09 #4423 [Verbose] > │ let v302 : UH5 = UH5_1 │
00:02:09 #4424 [Verbose] > │ let v303 : UH5 = method29(v300, v302) │
00:02:09 #4425 [Verbose] > │ let v304 : (struct (int32 * int64) []) = method30(v303) │
00:02:09 #4426 [Verbose] > │ let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │
00:02:09 #4427 [Verbose] > │ a, b) |> Map.ofArray │
00:02:09 #4428 [Verbose] > │ let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct │
00:02:09 #4429 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256)) │
00:02:09 #4430 [Verbose] > │ let v307 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4431 [Verbose] > │ while method6(v256, v307) do │
00:02:09 #4432 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:02:09 #4433 [Verbose] > │ let struct (v310 : UH2, v311 : US1) = v243.[int v309] │
00:02:09 #4434 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:02:09 #4435 [Verbose] > │ let v313 : int32 = 0 │
00:02:09 #4436 [Verbose] > │ let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313) │
00:02:09 #4437 [Verbose] > │ let v316 : UH6 = UH6_1 │
00:02:09 #4438 [Verbose] > │ let v317 : UH6 = method34(v314, v316) │
00:02:09 #4439 [Verbose] > │ let v318 : UH2 = UH2_1 │
00:02:09 #4440 [Verbose] > │ let v319 : UH2 = method35(v305, v317, v318) │
00:02:09 #4441 [Verbose] > │ let v320 : (string []) = method36(v319) │
00:02:09 #4442 [Verbose] > │ v306.[int v309] <- struct (v320, v311) │
00:02:09 #4443 [Verbose] > │ let v321 : uint64 = v309 + 1UL │
00:02:09 #4444 [Verbose] > │ v307.l0 <- v321 │
00:02:09 #4445 [Verbose] > │ () │
00:02:09 #4446 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #4447 [Verbose] > │ let v322 : uint64 = System.Convert.ToUInt64 v306.Length │
00:02:09 #4448 [Verbose] > │ let v323 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4449 [Verbose] > │ while method6(v322, v323) do │
00:02:09 #4450 [Verbose] > │ let v325 : uint64 = v323.l0 │
00:02:09 #4451 [Verbose] > │ let struct (v326 : (string []), v327 : US1) = v306.[int v325] │
00:02:09 #4452 [Verbose] > │ match v327 with │
00:02:09 #4453 [Verbose] > │ | US1_0 -> (* None *) │
00:02:09 #4454 [Verbose] > │ let mutable result = None │
00:02:09 #4455 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #4456 [Verbose] > │ () │
00:02:09 #4457 [Verbose] > │ #endif │
00:02:09 #4458 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #4459 [Verbose] > │ () │
00:02:09 #4460 [Verbose] > │ #endif │
00:02:09 #4461 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4462 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #4463 [Verbose] > │ () │
00:02:09 #4464 [Verbose] > │ #endif │
00:02:09 #4465 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4466 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #4467 [Verbose] > │ () │
00:02:09 #4468 [Verbose] > │ #endif │
00:02:09 #4469 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #4470 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #4471 [Verbose] > │ () │
00:02:09 #4472 [Verbose] > │ #endif │
00:02:09 #4473 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #4474 [Verbose] > │ result |> Option.get │
00:02:09 #4475 [Verbose] > │ () │
00:02:09 #4476 [Verbose] > │ | US1_1(v328) -> (* Some *) │
00:02:09 #4477 [Verbose] > │ let mutable result = None │
00:02:09 #4478 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #4479 [Verbose] > │ () │
00:02:09 #4480 [Verbose] > │ #endif │
00:02:09 #4481 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #4482 [Verbose] > │ () │
00:02:09 #4483 [Verbose] > │ #endif │
00:02:09 #4484 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4485 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:02:09 #4486 [Verbose] > │ () │
00:02:09 #4487 [Verbose] > │ #endif │
00:02:09 #4488 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4489 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:02:09 #4490 [Verbose] > │ () │
00:02:09 #4491 [Verbose] > │ #endif │
00:02:09 #4492 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #4493 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:02:09 #4494 [Verbose] > │ () │
00:02:09 #4495 [Verbose] > │ #endif │
00:02:09 #4496 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #4497 [Verbose] > │ result |> Option.get │
00:02:09 #4498 [Verbose] > │ () │
00:02:09 #4499 [Verbose] > │ let v329 : string = "\t| " │
00:02:09 #4500 [Verbose] > │ let v330 : string = System.String.Join (v329, v326) │
00:02:09 #4501 [Verbose] > │ System.Console.WriteLine v330 │
00:02:09 #4502 [Verbose] > │ let mutable result = None │
00:02:09 #4503 [Verbose] > │ #if FABLE_COMPILER_RUST && !WASM │
00:02:09 #4504 [Verbose] > │ () │
00:02:09 #4505 [Verbose] > │ #endif │
00:02:09 #4506 [Verbose] > │ #if FABLE_COMPILER_RUST && WASM │
00:02:09 #4507 [Verbose] > │ () │
00:02:09 #4508 [Verbose] > │ #endif │
00:02:09 #4509 [Verbose] > │ #if !FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4510 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #4511 [Verbose] > │ () │
00:02:09 #4512 [Verbose] > │ #endif │
00:02:09 #4513 [Verbose] > │ #if FABLE_COMPILER && !FABLE_COMPILER_RUST && !WASM │
00:02:09 #4514 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #4515 [Verbose] > │ () │
00:02:09 #4516 [Verbose] > │ #endif │
00:02:09 #4517 [Verbose] > │ #if !FABLE_COMPILER_RUST && WASM │
00:02:09 #4518 [Verbose] > │ System.Console.ResetColor () │
00:02:09 #4519 [Verbose] > │ () │
00:02:09 #4520 [Verbose] > │ #endif │
00:02:09 #4521 [Verbose] > │ |> fun x -> result <- Some x │
00:02:09 #4522 [Verbose] > │ result |> Option.get │
00:02:09 #4523 [Verbose] > │ let v331 : uint64 = v325 + 1UL │
00:02:09 #4524 [Verbose] > │ v323.l0 <- v331 │
00:02:09 #4525 [Verbose] > │ () │
00:02:09 #4526 [Verbose] > │ let v332 : ((float []) []) = Array.zeroCreate<(float [])> │
00:02:09 #4527 [Verbose] > │ (System.Convert.ToInt32(v168)) │
00:02:09 #4528 [Verbose] > │ let v333 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4529 [Verbose] > │ while method6(v168, v333) do │
00:02:09 #4530 [Verbose] > │ let v335 : uint64 = v333.l0 │
00:02:09 #4531 [Verbose] > │ let struct (v336 : string, v337 : string, v338 : string, v339 : │
00:02:09 #4532 [Verbose] > │ (int64 [])) = v83.[int v335] │
00:02:09 #4533 [Verbose] > │ let v340 : (int64 -> float) = float │
00:02:09 #4534 [Verbose] > │ let v341 : uint64 = System.Convert.ToUInt64 v339.Length │
00:02:09 #4535 [Verbose] > │ let v342 : (float []) = Array.zeroCreate<float> │
00:02:09 #4536 [Verbose] > │ (System.Convert.ToInt32(v341)) │
00:02:09 #4537 [Verbose] > │ let v343 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4538 [Verbose] > │ while method6(v341, v343) do │
00:02:09 #4539 [Verbose] > │ let v345 : uint64 = v343.l0 │
00:02:09 #4540 [Verbose] > │ let v346 : int64 = v339.[int v345] │
00:02:09 #4541 [Verbose] > │ let v347 : float = v340 v346 │
00:02:09 #4542 [Verbose] > │ v342.[int v345] <- v347 │
00:02:09 #4543 [Verbose] > │ let v348 : uint64 = v345 + 1UL │
00:02:09 #4544 [Verbose] > │ v343.l0 <- v348 │
00:02:09 #4545 [Verbose] > │ () │
00:02:09 #4546 [Verbose] > │ v332.[int v335] <- v342 │
00:02:09 #4547 [Verbose] > │ let v349 : uint64 = v335 + 1UL │
00:02:09 #4548 [Verbose] > │ v333.l0 <- v349 │
00:02:09 #4549 [Verbose] > │ () │
00:02:09 #4550 [Verbose] > │ let v350 : ((float []) []) = v332 |> Array.transpose │
00:02:09 #4551 [Verbose] > │ let v351 : uint64 = System.Convert.ToUInt64 v350.Length │
00:02:09 #4552 [Verbose] > │ let v352 : (float []) = Array.zeroCreate<float> │
00:02:09 #4553 [Verbose] > │ (System.Convert.ToInt32(v351)) │
00:02:09 #4554 [Verbose] > │ let v353 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4555 [Verbose] > │ while method6(v351, v353) do │
00:02:09 #4556 [Verbose] > │ let v355 : uint64 = v353.l0 │
00:02:09 #4557 [Verbose] > │ let v356 : (float []) = v350.[int v355] │
00:02:09 #4558 [Verbose] > │ let v357 : float = v356 |> Array.average │
00:02:09 #4559 [Verbose] > │ v352.[int v355] <- v357 │
00:02:09 #4560 [Verbose] > │ let v358 : uint64 = v355 + 1UL │
00:02:09 #4561 [Verbose] > │ v353.l0 <- v358 │
00:02:09 #4562 [Verbose] > │ () │
00:02:09 #4563 [Verbose] > │ let v359 : (float -> int64) = int64 │
00:02:09 #4564 [Verbose] > │ let v360 : uint64 = System.Convert.ToUInt64 v352.Length │
00:02:09 #4565 [Verbose] > │ let v361 : (int64 []) = Array.zeroCreate<int64> │
00:02:09 #4566 [Verbose] > │ (System.Convert.ToInt32(v360)) │
00:02:09 #4567 [Verbose] > │ let v362 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4568 [Verbose] > │ while method6(v360, v362) do │
00:02:09 #4569 [Verbose] > │ let v364 : uint64 = v362.l0 │
00:02:09 #4570 [Verbose] > │ let v365 : float = v352.[int v364] │
00:02:09 #4571 [Verbose] > │ let v366 : int64 = v359 v365 │
00:02:09 #4572 [Verbose] > │ v361.[int v364] <- v366 │
00:02:09 #4573 [Verbose] > │ let v367 : uint64 = v364 + 1UL │
00:02:09 #4574 [Verbose] > │ v362.l0 <- v367 │
00:02:09 #4575 [Verbose] > │ () │
00:02:09 #4576 [Verbose] > │ let v368 : uint64 = System.Convert.ToUInt64 v361.Length │
00:02:09 #4577 [Verbose] > │ let v369 : UH5 = UH5_1 │
00:02:09 #4578 [Verbose] > │ let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3 │
00:02:09 #4579 [Verbose] > │ while method28(v368, v370) do │
00:02:09 #4580 [Verbose] > │ let v372 : uint64 = v370.l0 │
00:02:09 #4581 [Verbose] > │ let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2 │
00:02:09 #4582 [Verbose] > │ let v375 : int64 = v361.[int v372] │
00:02:09 #4583 [Verbose] > │ let v376 : int32 = v374 + 1 │
00:02:09 #4584 [Verbose] > │ let v377 : uint64 = v372 + 1UL │
00:02:09 #4585 [Verbose] > │ let v378 : UH5 = UH5_0(v374, v375, v373) │
00:02:09 #4586 [Verbose] > │ v370.l0 <- v377 │
00:02:09 #4587 [Verbose] > │ v370.l1 <- v378 │
00:02:09 #4588 [Verbose] > │ v370.l2 <- v376 │
00:02:09 #4589 [Verbose] > │ () │
00:02:09 #4590 [Verbose] > │ let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2 │
00:02:09 #4591 [Verbose] > │ let v381 : UH5 = UH5_1 │
00:02:09 #4592 [Verbose] > │ let v382 : UH5 = method29(v379, v381) │
00:02:09 #4593 [Verbose] > │ let v383 : (struct (int32 * int64) []) = method39(v382) │
00:02:09 #4594 [Verbose] > │ System.Console.WriteLine v35 │
00:02:09 #4595 [Verbose] > │ let v384 : string = "Average Ranking " │
00:02:09 #4596 [Verbose] > │ System.Console.WriteLine v384 │
00:02:09 #4597 [Verbose] > │ let v385 : (struct (int32 * int64) -> int64) = closure8() │
00:02:09 #4598 [Verbose] > │ let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385 │
00:02:09 #4599 [Verbose] > │ let v387 : uint64 = System.Convert.ToUInt64 v386.Length │
00:02:09 #4600 [Verbose] > │ let v388 : Mut1 = {l0 = 0UL} : Mut1 │
00:02:09 #4601 [Verbose] > │ while method6(v387, v388) do │
00:02:09 #4602 [Verbose] > │ let v390 : uint64 = v388.l0 │
00:02:09 #4603 [Verbose] > │ let struct (v391 : int32, v392 : int64) = v386.[int v390] │
00:02:09 #4604 [Verbose] > │ let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │
00:02:09 #4605 [Verbose] > │ " │
00:02:09 #4606 [Verbose] > │ System.Console.WriteLine v393 │
00:02:09 #4607 [Verbose] > │ let v394 : uint64 = v390 + 1UL │
00:02:09 #4608 [Verbose] > │ v388.l0 <- v394 │
00:02:09 #4609 [Verbose] > │ () │
00:02:09 #4610 [Verbose] > │ () │
00:02:09 #4611 [Verbose] > │ method0() │
00:02:09 #4612 [Verbose] > │ │
00:02:09 #4613 [Verbose] > │ │
00:02:09 #4614 [Verbose] > │ │
00:02:09 #4615 [Verbose] > │ Test: v33 │
00:02:09 #4616 [Verbose] > │ │
00:02:09 #4617 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:02:09 #4618 [Verbose] > │ Test case 1. semi_open_1. Time: 708 │
00:02:09 #4619 [Verbose] > │ Test case 2. closed_1. Time: 638 │
00:02:09 #4620 [Verbose] > │ Test case 3. semi_open_2. Time: 615 │
00:02:09 #4621 [Verbose] > │ Test case 4. closed_2. Time: 610 │
00:02:09 #4622 [Verbose] > │ │
00:02:09 #4623 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:02:09 #4624 [Verbose] > │ Test case 1. semi_open_1. Time: 643 │
00:02:09 #4625 [Verbose] > │ Test case 2. closed_1. Time: 624 │
00:02:09 #4626 [Verbose] > │ Test case 3. semi_open_2. Time: 607 │
00:02:09 #4627 [Verbose] > │ Test case 4. closed_2. Time: 613 │
00:02:09 #4628 [Verbose] > │ │
00:02:09 #4629 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:02:09 #4630 [Verbose] > │ Test case 1. semi_open_1. Time: 544 │
00:02:09 #4631 [Verbose] > │ Test case 2. closed_1. Time: 582 │
00:02:09 #4632 [Verbose] > │ Test case 3. semi_open_2. Time: 592 │
00:02:09 #4633 [Verbose] > │ Test case 4. closed_2. Time: 560 │
00:02:09 #4634 [Verbose] > │ │
00:02:09 #4635 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:02:09 #4636 [Verbose] > │ Test case 1. semi_open_1. Time: 538 │
00:02:09 #4637 [Verbose] > │ Test case 2. closed_1. Time: 558 │
00:02:09 #4638 [Verbose] > │ Test case 3. semi_open_2. Time: 576 │
00:02:09 #4639 [Verbose] > │ Test case 4. closed_2. Time: 573 │
00:02:09 #4640 [Verbose] > │ │
00:02:09 #4641 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; │
00:02:09 #4642 [Verbose] > │ 17; 18; 19; 20; │
00:02:09 #4643 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:02:09 #4644 [Verbose] > │ 37; 38; │
00:02:09 #4645 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:02:09 #4646 [Verbose] > │ 55; 56; │
00:02:09 #4647 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:02:09 #4648 [Verbose] > │ 73; 74; │
00:02:09 #4649 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:02:09 #4650 [Verbose] > │ 91; 92; │
00:02:09 #4651 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) │
00:02:09 #4652 [Verbose] > │ Test case 1. semi_open_1. Time: 589 │
00:02:09 #4653 [Verbose] > │ Test case 2. closed_1. Time: 621 │
00:02:09 #4654 [Verbose] > │ Test case 3. semi_open_2. Time: 606 │
00:02:09 #4655 [Verbose] > │ Test case 4. closed_2. Time: 630 │
00:02:09 #4656 [Verbose] > │ │
00:02:09 #4657 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:02:09 #4658 [Verbose] > │ Test case 1. semi_open_1. Time: 570 │
00:02:09 #4659 [Verbose] > │ Test case 2. closed_1. Time: 556 │
00:02:09 #4660 [Verbose] > │ Test case 3. semi_open_2. Time: 591 │
00:02:09 #4661 [Verbose] > │ Test case 4. closed_2. Time: 578 │
00:02:09 #4662 [Verbose] > │ │
00:02:09 #4663 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:02:09 #4664 [Verbose] > │ Test case 1. semi_open_1. Time: 562 │
00:02:09 #4665 [Verbose] > │ Test case 2. closed_1. Time: 560 │
00:02:09 #4666 [Verbose] > │ Test case 3. semi_open_2. Time: 559 │
00:02:09 #4667 [Verbose] > │ Test case 4. closed_2. Time: 586 │
00:02:09 #4668 [Verbose] > │ │
00:02:09 #4669 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:02:09 #4670 [Verbose] > │ Test case 1. semi_open_1. Time: 554 │
00:02:09 #4671 [Verbose] > │ Test case 2. closed_1. Time: 581 │
00:02:09 #4672 [Verbose] > │ Test case 3. semi_open_2. Time: 625 │
00:02:09 #4673 [Verbose] > │ Test case 4. closed_2. Time: 595 │
00:02:09 #4674 [Verbose] > │ │
00:02:09 #4675 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:02:09 #4676 [Verbose] > │ Test case 1. semi_open_1. Time: 584 │
00:02:09 #4677 [Verbose] > │ Test case 2. closed_1. Time: 582 │
00:02:09 #4678 [Verbose] > │ Test case 3. semi_open_2. Time: 597 │
00:02:09 #4679 [Verbose] > │ Test case 4. closed_2. Time: 626 │
00:02:09 #4680 [Verbose] > │ │
00:02:09 #4681 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; │
00:02:09 #4682 [Verbose] > │ 17; 18; 19; 20; │
00:02:09 #4683 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:02:09 #4684 [Verbose] > │ 37; 38; │
00:02:09 #4685 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:02:09 #4686 [Verbose] > │ 55; 56; │
00:02:09 #4687 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:02:09 #4688 [Verbose] > │ 73; 74; │
00:02:09 #4689 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:02:09 #4690 [Verbose] > │ 91; 92; │
00:02:09 #4691 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) │
00:02:09 #4692 [Verbose] > │ Test case 1. semi_open_1. Time: 893 │
00:02:09 #4693 [Verbose] > │ Test case 2. closed_1. Time: 732 │
00:02:09 #4694 [Verbose] > │ Test case 3. semi_open_2. Time: 754 │
00:02:09 #4695 [Verbose] > │ Test case 4. closed_2. Time: 731 │
00:02:09 #4696 [Verbose] > │ │
00:02:09 #4697 [Verbose] > │ Input │
00:02:09 #4698 [Verbose] > │ │
00:02:09 #4699 [Verbose] > │ │
00:02:09 #4700 [Verbose] > │ │
00:02:09 #4701 [Verbose] > │ | Expected | Result | Best │
00:02:09 #4702 [Verbose] > │ --- │
00:02:09 #4703 [Verbose] > │ │
00:02:09 #4704 [Verbose] > │ │
00:02:09 #4705 [Verbose] > │ │
00:02:09 #4706 [Verbose] > │ | --- | --- | --- │
00:02:09 #4707 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:02:09 #4708 [Verbose] > │ │
00:02:09 #4709 [Verbose] > │ │
00:02:09 #4710 [Verbose] > │ │
00:02:09 #4711 [Verbose] > │ | US0_1 3 | US0_1 3 | struct (4L, 610L) │
00:02:09 #4712 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:02:09 #4713 [Verbose] > │ │
00:02:09 #4714 [Verbose] > │ │
00:02:09 #4715 [Verbose] > │ │
00:02:09 #4716 [Verbose] > │ | US0_1 0 | US0_1 0 | struct (3L, 607L) │
00:02:09 #4717 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:02:09 #4718 [Verbose] > │ │
00:02:09 #4719 [Verbose] > │ │
00:02:09 #4720 [Verbose] > │ │
00:02:09 #4721 [Verbose] > │ | US0_1 6 | US0_1 6 | struct (1L, 544L) │
00:02:09 #4722 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:02:09 #4723 [Verbose] > │ │
00:02:09 #4724 [Verbose] > │ │
00:02:09 #4725 [Verbose] > │ │
00:02:09 #4726 [Verbose] > │ | US0_0 | US0_0 | struct (1L, 538L) │
00:02:09 #4727 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │
00:02:09 #4728 [Verbose] > │ 20; │
00:02:09 #4729 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:02:09 #4730 [Verbose] > │ 37; 38; │
00:02:09 #4731 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:02:09 #4732 [Verbose] > │ 55; 56; │
00:02:09 #4733 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:02:09 #4734 [Verbose] > │ 73; 74; │
00:02:09 #4735 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:02:09 #4736 [Verbose] > │ 91; 92; │
00:02:09 #4737 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) | US0_1 59 | US0_1 59 | │
00:02:09 #4738 [Verbose] > │ struct (1L, 589L) │
00:02:09 #4739 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:02:09 #4740 [Verbose] > │ │
00:02:09 #4741 [Verbose] > │ │
00:02:09 #4742 [Verbose] > │ │
00:02:09 #4743 [Verbose] > │ | US0_1 3 | US0_1 3 | struct (2L, 556L) │
00:02:09 #4744 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:02:09 #4745 [Verbose] > │ │
00:02:09 #4746 [Verbose] > │ │
00:02:09 #4747 [Verbose] > │ │
00:02:09 #4748 [Verbose] > │ | US0_1 0 | US0_1 0 | struct (3L, 559L) │
00:02:09 #4749 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:02:09 #4750 [Verbose] > │ │
00:02:09 #4751 [Verbose] > │ │
00:02:09 #4752 [Verbose] > │ │
00:02:09 #4753 [Verbose] > │ | US0_1 6 | US0_1 6 | struct (1L, 554L) │
00:02:09 #4754 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:02:09 #4755 [Verbose] > │ │
00:02:09 #4756 [Verbose] > │ │
00:02:09 #4757 [Verbose] > │ │
00:02:09 #4758 [Verbose] > │ | US0_0 | US0_0 | struct (2L, 582L) │
00:02:09 #4759 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │
00:02:09 #4760 [Verbose] > │ 20; │
00:02:09 #4761 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:02:09 #4762 [Verbose] > │ 37; 38; │
00:02:09 #4763 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:02:09 #4764 [Verbose] > │ 55; 56; │
00:02:09 #4765 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:02:09 #4766 [Verbose] > │ 73; 74; │
00:02:09 #4767 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:02:09 #4768 [Verbose] > │ 91; 92; │
00:02:09 #4769 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) | US0_1 59 | US0_1 59 | │
00:02:09 #4770 [Verbose] > │ struct (4L, 731L) │
00:02:09 #4771 [Verbose] > │ │
00:02:09 #4772 [Verbose] > │ Average Ranking │
00:02:09 #4773 [Verbose] > │ Test case 2. Average Time: 603L │
00:02:09 #4774 [Verbose] > │ Test case 4. Average Time: 610L │
00:02:09 #4775 [Verbose] > │ Test case 3. Average Time: 612L │
00:02:09 #4776 [Verbose] > │ Test case 1. Average Time: 618L │
00:02:09 #4777 [Verbose] > │ │
00:02:09 #4778 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 #4779 [Verbose] >
00:02:09 #4780 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:09 #4781 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:09 #4782 [Verbose] > │ ## returnLettersWithOddCountTests │
00:02:09 #4783 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 #4784 [Verbose] >
00:02:09 #4785 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 #4786 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 #4787 [Verbose] > │ Test: ReturnLettersWithOddCount │
00:02:10 #4788 [Verbose] > │ │
00:02:10 #4789 [Verbose] > │ Solution: 1 │
00:02:10 #4790 [Verbose] > │ Test case 1. A. Time: 645L │
00:02:10 #4791 [Verbose] > │ │
00:02:10 #4792 [Verbose] > │ Solution: 2 │
00:02:10 #4793 [Verbose] > │ Test case 1. A. Time: 663L │
00:02:10 #4794 [Verbose] > │ │
00:02:10 #4795 [Verbose] > │ Solution: 3 │
00:02:10 #4796 [Verbose] > │ Test case 1. A. Time: 680L │
00:02:10 #4797 [Verbose] > │ │
00:02:10 #4798 [Verbose] > │ Solution: 9 │
00:02:10 #4799 [Verbose] > │ Test case 1. A. Time: 730L │
00:02:10 #4800 [Verbose] > │ │
00:02:10 #4801 [Verbose] > │ Solution: 10 │
00:02:10 #4802 [Verbose] > │ Test case 1. A. Time: 815L │
00:02:10 #4803 [Verbose] > │ │
00:02:10 #4804 [Verbose] > │ Input | Expected | Result | Best │
00:02:10 #4805 [Verbose] > │ --- | --- | --- | --- │
00:02:10 #4806 [Verbose] > │ 1 | a | a | (1, 645) │
00:02:10 #4807 [Verbose] > │ 2 | ba | ba | (1, 663) │
00:02:10 #4808 [Verbose] > │ 3 | aaa | aaa | (1, 680) │
00:02:10 #4809 [Verbose] > │ 9 | aaaaaaaaa | aaaaaaaaa | (1, 730) │
00:02:10 #4810 [Verbose] > │ 10 | baaaaaaaaa | baaaaaaaaa | (1, 815) │
00:02:10 #4811 [Verbose] > │ │
00:02:10 #4812 [Verbose] > │ Averages │
00:02:10 #4813 [Verbose] > │ Test case 1. Average Time: 706L │
00:02:10 #4814 [Verbose] > │ │
00:02:10 #4815 [Verbose] > │ Ranking │
00:02:10 #4816 [Verbose] > │ Test case 1. Average Time: 706L │
00:02:10 #4817 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 #4818 [Verbose] >
00:02:10 #4819 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:10 #4820 [Verbose] > //// test
00:02:10 #4821 [Verbose] >
00:02:10 #4822 [Verbose] > let solutions = [[
00:02:10 #4823 [Verbose] > "A",
00:02:10 #4824 [Verbose] > fun n ->
00:02:10 #4825 [Verbose] > let mutable _builder = StringBuilder (new string('a', n))
00:02:10 #4826 [Verbose] > if n % 2 = 0 then
00:02:10 #4827 [Verbose] > _builder.[[0]] <- 'b'
00:02:10 #4828 [Verbose] >
00:02:10 #4829 [Verbose] > _builder.ToString ()
00:02:10 #4830 [Verbose] > ]]
00:02:10 #4831 [Verbose] > let testCases = seq {
00:02:10 #4832 [Verbose] > 1, "a"
00:02:10 #4833 [Verbose] > 2, "ba"
00:02:10 #4834 [Verbose] > 3, "aaa"
00:02:10 #4835 [Verbose] > 9, "aaaaaaaaa"
00:02:10 #4836 [Verbose] > 10, "baaaaaaaaa"
00:02:10 #4837 [Verbose] > }
00:02:10 #4838 [Verbose] > let rec returnLettersWithOddCountTests =
00:02:10 #4839 [Verbose] > runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:02:10 #4840 [Verbose] > returnLettersWithOddCountTests
00:02:10 #4841 [Verbose] > |> sortResultList
00:02:11 #4842 [Verbose] >
00:02:11 #4843 [Verbose] > ╭─[ 1.27s - stdout ]───────────────────────────────────────────────────────────╮
00:02:11 #4844 [Verbose] > │ │
00:02:11 #4845 [Verbose] > │ │
00:02:11 #4846 [Verbose] > │ Test: returnLettersWithOddCountTests │
00:02:11 #4847 [Verbose] > │ │
00:02:11 #4848 [Verbose] > │ Solution: 1 │
00:02:11 #4849 [Verbose] > │ Test case 1. A. Time: 1L │
00:02:11 #4850 [Verbose] > │ │
00:02:11 #4851 [Verbose] > │ Solution: 2 │
00:02:11 #4852 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:11 #4853 [Verbose] > │ │
00:02:11 #4854 [Verbose] > │ Solution: 3 │
00:02:11 #4855 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:11 #4856 [Verbose] > │ │
00:02:11 #4857 [Verbose] > │ Solution: 9 │
00:02:11 #4858 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:11 #4859 [Verbose] > │ │
00:02:11 #4860 [Verbose] > │ Solution: 10 │
00:02:11 #4861 [Verbose] > │ Test case 1. A. Time: 2L │
00:02:11 #4862 [Verbose] > │ │
00:02:11 #4863 [Verbose] > │ Input | Expected | Result | Best │
00:02:11 #4864 [Verbose] > │ --- | --- | --- | --- │
00:02:11 #4865 [Verbose] > │ 1 | a | a | (1, 1) │
00:02:11 #4866 [Verbose] > │ 2 | ba | ba | (1, 0) │
00:02:11 #4867 [Verbose] > │ 3 | aaa | aaa | (1, 0) │
00:02:11 #4868 [Verbose] > │ 9 | aaaaaaaaa | aaaaaaaaa | (1, 0) │
00:02:11 #4869 [Verbose] > │ 10 | baaaaaaaaa | baaaaaaaaa | (1, 2) │
00:02:11 #4870 [Verbose] > │ │
00:02:11 #4871 [Verbose] > │ Average Ranking │
00:02:11 #4872 [Verbose] > │ Test case 1. Average Time: 0L │
00:02:11 #4873 [Verbose] > │ │
00:02:11 #4874 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 #4875 [Verbose] >
00:02:11 #4876 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 #4877 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 #4878 [Verbose] > │ ## hasAnyPairCloseToEachotherTests │
00:02:11 #4879 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 #4880 [Verbose] >
00:02:11 #4881 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 #4882 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 #4883 [Verbose] > │ Test: HasAnyPairCloseToEachother │
00:02:11 #4884 [Verbose] > │ │
00:02:11 #4885 [Verbose] > │ Solution: 0 │
00:02:11 #4886 [Verbose] > │ Test case 1. A. Time: 137L │
00:02:11 #4887 [Verbose] > │ │
00:02:11 #4888 [Verbose] > │ Solution: 1,2 │
00:02:11 #4889 [Verbose] > │ Test case 1. A. Time: 186L │
00:02:11 #4890 [Verbose] > │ │
00:02:11 #4891 [Verbose] > │ Solution: 3,5 │
00:02:11 #4892 [Verbose] > │ Test case 1. A. Time: 206L │
00:02:11 #4893 [Verbose] > │ │
00:02:11 #4894 [Verbose] > │ Solution: 3,4,6 │
00:02:11 #4895 [Verbose] > │ Test case 1. A. Time: 149L │
00:02:11 #4896 [Verbose] > │ │
00:02:11 #4897 [Verbose] > │ Solution: 2,4,6 │
00:02:11 #4898 [Verbose] > │ Test case 1. A. Time: 150L │
00:02:11 #4899 [Verbose] > │ │
00:02:11 #4900 [Verbose] > │ Input | Expected | Result | Best │
00:02:11 #4901 [Verbose] > │ --- | --- | --- | --- │
00:02:11 #4902 [Verbose] > │ 0 | False | False | (1, 137) │
00:02:11 #4903 [Verbose] > │ 1,2 | True | True | (1, 186) │
00:02:11 #4904 [Verbose] > │ 3,5 | False | False | (1, 206) │
00:02:11 #4905 [Verbose] > │ 3,4,6 | True | True | (1, 149) │
00:02:11 #4906 [Verbose] > │ 2,4,6 | False | False | (1, 150) │
00:02:11 #4907 [Verbose] > │ │
00:02:11 #4908 [Verbose] > │ Averages │
00:02:11 #4909 [Verbose] > │ Test case 1. Average Time: 165L │
00:02:11 #4910 [Verbose] > │ │
00:02:11 #4911 [Verbose] > │ Ranking │
00:02:11 #4912 [Verbose] > │ Test case 1. Average Time: 165L │
00:02:11 #4913 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 #4914 [Verbose] >
00:02:11 #4915 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:11 #4916 [Verbose] > //// test
00:02:11 #4917 [Verbose] >
00:02:11 #4918 [Verbose] > let solutions = [[
00:02:11 #4919 [Verbose] > "A",
00:02:11 #4920 [Verbose] > fun (a: int[[]]) ->
00:02:11 #4921 [Verbose] > let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:02:11 #4922 [Verbose] > System.Linq.Enumerable.ToArray
00:02:11 #4923 [Verbose] > System.Array.Sort (a, indices)
00:02:11 #4924 [Verbose] >
00:02:11 #4925 [Verbose] > indices
00:02:11 #4926 [Verbose] > |> Array.take (a.Length - 1)
00:02:11 #4927 [Verbose] > |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:02:11 #4928 [Verbose] > ]]
00:02:11 #4929 [Verbose] > let testCases = seq {
00:02:11 #4930 [Verbose] > [[| 0 |]], false
00:02:11 #4931 [Verbose] > [[| 1; 2 |]], true
00:02:11 #4932 [Verbose] > [[| 3; 5 |]], false
00:02:11 #4933 [Verbose] > [[| 3; 4; 6 |]], true
00:02:11 #4934 [Verbose] > [[| 2; 4; 6 |]], false
00:02:11 #4935 [Verbose] > }
00:02:11 #4936 [Verbose] > let rec hasAnyPairCloseToEachotherTests =
00:02:11 #4937 [Verbose] > runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:02:11 #4938 [Verbose] > hasAnyPairCloseToEachotherTests
00:02:11 #4939 [Verbose] > |> sortResultList
00:02:12 #4940 [Verbose] >
00:02:12 #4941 [Verbose] > ╭─[ 1.19s - stdout ]───────────────────────────────────────────────────────────╮
00:02:12 #4942 [Verbose] > │ │
00:02:12 #4943 [Verbose] > │ │
00:02:12 #4944 [Verbose] > │ Test: hasAnyPairCloseToEachotherTests │
00:02:12 #4945 [Verbose] > │ │
00:02:12 #4946 [Verbose] > │ Solution: 0 │
00:02:12 #4947 [Verbose] > │ Test case 1. A. Time: 4L │
00:02:12 #4948 [Verbose] > │ │
00:02:12 #4949 [Verbose] > │ Solution: 1,2 │
00:02:12 #4950 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:12 #4951 [Verbose] > │ │
00:02:12 #4952 [Verbose] > │ Solution: 3,5 │
00:02:12 #4953 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:12 #4954 [Verbose] > │ │
00:02:12 #4955 [Verbose] > │ Solution: 3,4,6 │
00:02:12 #4956 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:12 #4957 [Verbose] > │ │
00:02:12 #4958 [Verbose] > │ Solution: 2,4,6 │
00:02:12 #4959 [Verbose] > │ Test case 1. A. Time: 0L │
00:02:12 #4960 [Verbose] > │ │
00:02:12 #4961 [Verbose] > │ Input | Expected | Result | Best │
00:02:12 #4962 [Verbose] > │ --- | --- | --- | --- │
00:02:12 #4963 [Verbose] > │ 0 | False | False | (1, 4) │
00:02:12 #4964 [Verbose] > │ 1,2 | True | True | (1, 0) │
00:02:12 #4965 [Verbose] > │ 3,5 | False | False | (1, 0) │
00:02:12 #4966 [Verbose] > │ 3,4,6 | True | True | (1, 0) │
00:02:12 #4967 [Verbose] > │ 2,4,6 | False | False | (1, 0) │
00:02:12 #4968 [Verbose] > │ │
00:02:12 #4969 [Verbose] > │ Average Ranking │
00:02:12 #4970 [Verbose] > │ Test case 1. Average Time: 0L │
00:02:12 #4971 [Verbose] > │ │
00:02:12 #4972 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 #4973 [Verbose] >
00:02:12 #4974 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 #4975 [Verbose] > // // test
00:02:12 #4976 [Verbose] >
00:02:12 #4977 [Verbose] > ()
00:02:12 #4978 [Verbose] >
00:02:12 #4979 [Verbose] > ╭─[ 318.19ms - stdout ]────────────────────────────────────────────────────────╮
00:02:12 #4980 [Verbose] > │ let rec method0 () : unit = │
00:02:12 #4981 [Verbose] > │ () │
00:02:12 #4982 [Verbose] > │ method0() │
00:02:12 #4983 [Verbose] > │ │
00:02:12 #4984 [Verbose] > │ │
00:02:12 #4985 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 #4986 [Verbose] > [NbConvertApp] Converting notebook Perf.dib.ipynb to html
00:02:16 #4987 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:16 #4988 [Verbose] > validate(nb)
00:02:17 #4989 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:02:17 #4990 [Verbose] > return _pygments_highlight(
00:02:19 #4991 [Verbose] > [NbConvertApp] Writing 562108 bytes to Perf.dib.html
00:02:20 #4992 [Debug] executeAsync / exitCode: 0 / output.Length: 354770
00:02:20 #4993 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Perf.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ . "$ScriptDir/../apps/dir-tree-html/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DirTreeHtml (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/falco.markup/1.0.2/lib/netstandard2.0/Fal
co.Markup.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/spiral/common.fsx
#!import ../../lib/spiral/date_time.fsx
#!import ../../lib/spiral/file_system.fsx
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
type [[<Struct>]] US0 =
| US0_0
| US0_1
and [[<Struct>]] US1 =
| US1_0
| US1_1 of f1_0 : US0
let rec method0 (v0 : (unit -> unit)) : (unit -> unit) =
v0
and closure0 () (v0 : (unit -> unit)) : System.IDisposable =
let mutable result = None
#if FABLE_COMPILER_RUST && !WASM
let v1 : (unit -> unit) = method0(v0)
let v2 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v1()" }
v2
#endif
#if FABLE_COMPILER_RUST && WASM
let v3 : (unit -> unit) = method0(v0)
let v4 : System.IDisposable = { new System.IDisposable with member _.Dispose
() = Fable.Core.RustInterop.emitRustExpr () "v3()" }
v4
#endif
#if !FABLE_COMPILER && !F...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure1 (v0 : System.Guid) (v1 : System.DateTime) : System.Guid =
let v2 : string = v0.ToString ()
let v3 : string = v1.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v4 : System.Guid = System.Guid $"{v3}{v2.[[v3.Length..]]}"
v4
and closure0 () (v0 : System.Guid) : (System.DateTime -> System.Guid) =
closure1(v0)
and closure5 (v0 : string, v1 : string) (v2 : string) : string =
let v3 : string = v2.Replace (v0, v1)
v3
and closure4 (v0 : string) (v1 : string) : (string -> string) =
closure5(v0, v1)
and closure3 () (v0 : string) : (string -> (string -> string)) =
closure4(v0)
and method0 () : (string -> (string -> (string -> string))) =
closure3()
and closure2 () (v0 : System.Guid) : System.DateTime =
...
── fsharp - import ─────────────────────────────────────────────────────────────
let rec closure0 () () : string =
let v0 : string =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let v1 : (unit -> string) = System.IO.Path.GetTempPath
let v2 : string = v1 ()
let v3 : string = $"{v0}"
let v4 : string = System.IO.Path.Combine (v2, v3)
let v5 : System.DateTime = System.DateTime.Now
let v6 : System.Guid = System.Guid.NewGuid ()
let v7 : string = v6.ToString ()
let v8 : string = v5.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
let v9 : System.Guid = System.Guid $"{v8}{v7.[[v8.Length..]]}"
let v10 : string = v9.ToString ()
let v11 : string = System.IO.Path.Combine (v4, v10)
v11
let v0 : (unit -> string) = closure0()
let create_temp_directory_name x = v0 x
()
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
#if !WASM && !FABLE_COMPILER
let Date_time = {|
new_guid_from_date_time =
#if !INTERACTIVE
Date_time.new_guid_from_date_time
#else
new_guid_from_date_time
#endif
|}
#endif
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldVa...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
formatException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
let File_system = {|
create_temp_directory_name =
#if !INTERACTIVE
File_system.create_temp_directory_name
#else
create_temp_directory_name
#endif
|}
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = File_system.create_temp_directory_name ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
...
── fsharp ──────────────────────────────────────────────────────────────────────
open FileSystem.Operators
open Falco.Markup
── fsharp ──────────────────────────────────────────────────────────────────────
type FileSystemNode =
| File of string * string * int64
| Folder of string * string * FileSystemNode list
| Root of FileSystemNode list
let rec scanDirectory isRoot (basePath : string) (path : string) =
let relativePath = path.Replace(basePath, "").Replace("\\",
"/").Replace("//", "/").TrimStart '/'
let directories =
path
|> System.IO.Directory.GetDirectories
|> Array.toList
|> List.sort
|> List.map (scanDirectory false basePath)
let files =
path
|> System.IO.Directory.GetFiles
|> Array.toList
|> List.sort
|> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath,
System.IO.FileInfo(f).Length))
let children = directories @ files
if isRoot
then Root children
else Folder (path |> System.IO.Path.GetFileName, relativePath, children)
let rec generateHtml fsNode =
let sizeLabel size =
match float size with
| size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"
| size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"
| size -> $"%.2f{size} B"
match fsNode with
| File (fileName, relativePath, size) ->
Elem.div [[]] [[
Text.raw "📄 "
Elem.a [[
Attr.href $"""{relativePath}{if relativePath = "" then "" else
"/"}{fileName}"""
]] [[
Text.raw fileName
]]
Elem.span [[]] [[
Text.raw $" ({size |> sizeLabel})"
]]
]]
| Folder (folderName, relativePath, children) ->
let size =
let rec loop children =
children
|> List.sumBy (function
| File (_, _, size) -> size
| Folder (_, _, children)
| Root children -> loop children
)
loop children
Elem.details [[
Attr.open' "true"
]] [[
Elem.summary [[]] [[
Text.raw "📂 "
Elem.a [[
Attr.href relativePath
]] [[
Text.raw folderName
]]
Elem.span [[]] [[
Text.raw $" ({size |> sizeLabel})"
]]
]]
Elem.div [[]] [[
yield! children |> List.map generateHtml
]]
]]
| Root children ->
Elem.div [[]] [[
yield! children |> List.map generateHtml
]]
let generateHtmlForFileSystem root =
$"""<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {{
background-color: #222;
color: #ccc;
}}
a {{
color: #777;
font-size: 15px;
}}
span {{
font-size: 11px;
}}
div > div {{
padding-left: 10px;
}}
details > div {{
padding-left: 19px;
}}
</style>
</head>
<body>
{root |> generateHtml |> renderNode}
</body>
</html>
"""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = FileSystem.createTempDirectory ()
let rec loop d n = async {
if n >= 0 then
tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore
do!
n
|> string
|> String.replicate (n + 1)
|> FileSystem.writeAllTextAsync (tempFolder </> d </> $"file.txt")
do! loop $"{d}/{n}" (n - 1)
}
loop "_.root" 3
|> Async.RunSynchronously
let html =
scanDirectory true tempFolder tempFolder
|> generateHtmlForFileSystem
html
|> _assertEqual """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #222;
color: #ccc;
}
a {
color: #777;
font-size: 15px;
}
span {
font-size: 11px;
}
div > div {
padding-left: 10px;
}
details > div {
padding-left: 19px;
}
</style>
</head>
<body>
<div><details open="true"><summary>📂 <a href="_.root">_.root</a><span>
(10.00 B)</span></summary><div><details open="true"><summary>📂 <a
href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details
open="true"><summary>📂 <a href="_.root/3/2">2</a><span> (3.00
B)</span></summary><div><details open="true"><summary>📂 <a
href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>📄 <a
href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00
B)</span></div></div></details><div>📄 <a
href="_.root/3/2/file.txt">file.txt</a><span> (2.00
B)</span></div></div></details><div>📄 <a
href="_.root/3/file.txt">file.txt</a><span> (3.00
B)</span></div></div></details><div>📄 <a
href="_.root/file.txt">file.txt</a><span> (4.00
B)</span></div></div></details></div>
</body>
</html>
"""
html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent
╭─[ 206.36ms - return value ]──────────────────────────────────────────────────╮
│ <!DOCTYPE html> │
│ <html lang="en"> │
│ <head> │
│ <meta charset="UTF-8"> │
│ <style> │
│ body { │
│ background-color: #222; │
│ color: #ccc; │
│ } │
│ a { │
│ color: #777; │
│ font-size: 15px; │
│ } │
│ span { │
│ font-size: 11px; │
│ } │
│ div > div { │
│ padding-left: 10px; │
│ } │
│ details > div { │
│ padding-left: 19px; │
│ } │
│ </style> │
│ </head> │
│ <body> │
│ <div><details open="true"><summary>📂 <a │
│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 │
│ B)</span></summary><div><details open="true"><summary>📂 <a │
│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 │
│ B)</span></summary><div><div>📄 <a href="_.root... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 223.72ms - stdout ]────────────────────────────────────────────────────────╮
│ <!DOCTYPE html> │
│ <html lang="en"> │
│ <head> │
│ <meta charset="UTF-8"> │
│ <style> │
│ body { │
│ background-color: #222; │
│ color: #ccc; │
│ } │
│ a { │
│ color: #777; │
│ font-size: 15px; │
│ } │
│ span { │
│ font-size: 11px; │
│ } │
│ div > div { │
│ padding-left: 10px; │
│ } │
│ details > div { │
│ padding-left: 19px; │
│ } │
│ </style> │
│ </head> │
│ <body> │
│ <div><details open="true"><summary>📂 <a │
│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 │
│ B)</span></summary><div><details open="true"><summary>📂 <a │
│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 │
│ B)</span></summary><div><div>📄 <a │
│ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00 │
│ B)</span></div></div></details><div>📄 <a │
│ href="_.root/3/2/file.txt">file.txt</a><span> (2.00 │
│ B)</span></div></div></details><div>📄 <a │
│ href="_.root/3/file.txt">file.txt</a><span> (3.00 │
│ B)</span></div></div></details><div>📄 <a │
│ href="_.root/file.txt">file.txt</a><span> (4.00 │
│ B)</span></div></div></details></div> │
│ </body> │
│ </html> │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string
| [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Dir _ -> nameof Dir
| Html _ -> nameof Html
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 125.12ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] --dir <string> --html <string> │
│ │
│ OPTIONS: │
│ │
│ --dir <string> Dir │
│ --html <string> Html │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let dir =
match argsMap.[[nameof Arguments.Dir]] with
| [[ Arguments.Dir dir ]] -> Some dir
| _ -> None
|> Option.get
let htmlPath =
match argsMap.[[nameof Arguments.Html]] with
| [[ Arguments.Html html ]] -> Some html
| _ -> None
|> Option.get
let fileSystem = scanDirectory true dir dir
let html = generateHtmlForFileSystem fileSystem
html |> FileSystem.writeAllTextAsync htmlPath
|> Async.runWithTimeout 30000
|> function
| Some () -> 0
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 74.66ms - return value ]───────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook DirTreeHtml.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 308878 bytes to DirTreeHtml.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DirTreeHtml.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DirTreeHtml.dib
00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/date_time.fsx; lib/spiral/file_system.fsx; ... ] / name: DirTreeHtml / code.Length: 4478
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:39 #6 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj (in 37.19 sec).
00:00:39 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:47 #8 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll
00:00:49 #9 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:49 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 733
00:00:49 #11 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml"
CancellationToken = None
OnLine = None }
00:00:49 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:50 #13 [Verbose] > Determining projects to restore...
00:00:51 #14 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj (in 387 ms).
00:00:51 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:58 #16 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll
00:01:07 #17 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:01:07 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 728
In [ ]:
{ . "$ScriptDir/../apps/ipfs/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped Already up to date Done in 2.7s
In [ ]:
{ . "$ScriptDir/outdated.ps1" } | Invoke-Block
Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d
Resolving dependency graph...
Possible Performance degradation, V3 was not working: One or more errors occurred. (could not get registration data from https://api.nuget.org/v3/registration5-gz-semver2/fsharp.core/index.json)
Possible Performance degradation, ignore '1_https://nuget.org/api/v2/Packages(Id='fsharp.core',Version='8.0.300-beta.24154.4')'
Outdated packages found:
Group: Main
* Argu 6.2.2 -> 6.2.3
* Expecto.FsCheck 10.2.1-fscheck3 -> 10.2.1
* Falco.Markup 1.0.2 -> 1.1.1
* FsCheck 3.0.0-rc3 -> 2.16.6
* FSharp.Core 8.0.300-beta.24080.5 -> 8.0.300-beta.24154.4
* Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Features 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.Extensions.Logging 8.0 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Options 8.0.2 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Primitives 8.0 -> 9.0.0-preview.2.24128.5
* System.IO.Pipelines 8.0 -> 9.0.0-preview.2.24128.5
* System.Threading.Channels 8.0 -> 9.0.0-preview.2.24128.5
Total time taken: 5 minutes, 20 seconds
CheckToml / toml: C:\home\git\polyglot\Cargo.toml
chat_contract_tests
================
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
ahash 0.7.8 0.8.11 --- Normal ---
ahash 0.8.11 --- 0.7.8 Normal ---
allocator-api2 0.2.16 --- Removed Normal ---
autocfg 1.1.0 Removed --- Build ---
bumpalo 3.15.4 Removed --- Normal ---
cfg-if 1.0.0 --- Removed Normal ---
cfg-if 1.0.0 Removed --- Normal ---
equivalent 1.0.1 --- Removed Normal ---
getrandom 0.2.12 Removed --- Normal cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
hashbrown 0.12.3 0.14.3 --- Normal ---
hashbrown 0.14.3 --- 0.12.3 Normal ---
indexmap 1.9.3 2.2.5 --- Normal ---
indexmap 2.2.5 --- 1.9.3 Normal ---
js-sys 0.3.69 Removed --- Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
libc 0.2.153 Removed --- Normal cfg(unix)
log 0.4.21 Removed --- Normal ---
once_cell 1.19.0 Removed --- Normal ---
proc-macro2 1.0.79 --- Removed Normal ---
proc-macro2 1.0.79 Removed --- Normal ---
quote 1.0.35 --- Removed Normal ---
quote 1.0.35 Removed --- Normal ---
syn 2.0.53 --- Removed Normal ---
syn 2.0.53 Removed --- Normal ---
unicode-ident 1.0.12 --- Removed Normal ---
unicode-ident 1.0.12 Removed --- Normal ---
wasi 0.11.0+wasi-snapshot-preview1 Removed --- Normal cfg(target_os = "wasi")
wasm-bindgen 0.2.92 Removed --- Normal ---
wasm-bindgen 0.2.92 Removed --- Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
wasm-bindgen-backend 0.2.92 Removed --- Normal ---
wasm-bindgen-macro 0.2.92 Removed --- Normal ---
wasm-bindgen-macro-support 0.2.92 Removed --- Normal ---
wasm-bindgen-shared 0.2.92 Removed --- Normal ---
zerocopy 0.7.32 --- Removed Normal ---
zerocopy-derive 0.7.32 --- Removed Normal ---
CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
borsh 1.3.1 --- 1.4.0 Normal ---
borsh->borsh-derive 1.3.1 --- 1.4.0 Normal ---
borsh-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_core->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-account-id->borsh 1.3.1 --- 1.4.0 Normal ---
near-gas->borsh 1.3.1 --- 1.4.0 Normal ---
near-sdk 5.0.0 --- 5.1.0 Normal ---
near-sdk->borsh 1.3.1 --- 1.4.0 Normal ---
near-sdk->near-sdk-macros 5.0.0 --- 5.1.0 Normal ---
near-sdk->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-sdk-macros->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-sdk-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-token->borsh 1.3.1 --- 1.4.0 Normal ---
schemars->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
serde_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_json->itoa 1.0.10 1.0.11 1.0.11 Normal ---
strum_macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
syn_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
toml_edit->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
winnow->memchr 2.7.1 2.7.2 2.7.2 Normal ---
zerocopy-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
actix->bytes 1.5.0 1.6.0 1.6.0 Normal ---
actix->tokio 1.36.0 1.37.0 1.37.0 Normal ---
actix-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
actix-rt->tokio 1.36.0 1.37.0 1.37.0 Normal ---
actix_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
ahash->cfg-if 1.0.0 Removed --- Normal ---
ahash->getrandom 0.2.12 --- Removed Normal cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
ahash->zerocopy 0.7.32 Removed --- Normal ---
aho-corasick->memchr 2.7.1 2.7.2 2.7.2 Normal ---
async-stream-impl->syn 2.0.53 2.0.55 2.0.55 Normal ---
async-trait->syn 2.0.53 2.0.55 2.0.55 Normal ---
borsh->borsh-derive 1.3.1 --- 1.4.0 Normal ---
borsh-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
cargo-near->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
cargo_metadata->cargo-platform 0.1.7 0.1.8 0.1.8 Normal ---
cargo_metadata->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
clap->clap_derive 4.5.3 4.5.4 4.5.4 Normal ---
clap_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
curve25519-dalek->platforms 3.3.0 3.4.0 3.4.0 Build ---
curve25519-dalek-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_core->syn 2.0.53 2.0.55 2.0.55 Normal ---
darling_macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
derive_arbitrary->syn 2.0.53 2.0.55 2.0.55 Normal ---
enum-map-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
env_logger->regex 1.10.3 1.10.4 1.10.4 Normal ---
futures-macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
futures-util->memchr 2.7.1 2.7.2 2.7.2 Normal ---
getrandom->cfg-if 1.0.0 --- Removed Normal ---
getrandom->js-sys 0.3.69 --- Removed Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
getrandom->libc 0.2.153 --- Removed Normal cfg(unix)
getrandom->wasi 0.11.0+wasi-snapshot-preview1 --- Removed Normal cfg(target_os = "wasi")
getrandom->wasm-bindgen 0.2.92 --- Removed Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
h2->bytes 1.5.0 1.6.0 1.6.0 Normal ---
h2->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
h2->tokio 1.36.0 1.37.0 1.37.0 Normal ---
hashbrown->ahash 0.7.8 --- 0.8.11 Normal ---
hashbrown->ahash 0.8.11 0.7.8 --- Normal ---
hashbrown->allocator-api2 0.2.16 Removed --- Normal ---
http->bytes 1.5.0 1.6.0 1.6.0 Normal ---
http->itoa 1.0.10 1.0.11 1.0.11 Normal ---
http-body->bytes 1.5.0 1.6.0 1.6.0 Normal ---
hyper->bytes 1.5.0 1.6.0 1.6.0 Normal ---
hyper->itoa 1.0.10 1.0.11 1.0.11 Normal ---
hyper->tokio 1.36.0 1.37.0 1.37.0 Normal ---
hyper-timeout->tokio 1.36.0 1.37.0 1.37.0 Normal ---
hyper-tls->bytes 1.5.0 1.6.0 1.6.0 Normal ---
hyper-tls->tokio 1.36.0 1.37.0 1.37.0 Normal ---
indexmap->autocfg 1.1.0 1.2.0 1.2.0 Build ---
indexmap->autocfg 1.1.0 1.2.0 Removed Build ---
indexmap->equivalent 1.0.1 Removed --- Normal ---
indexmap->hashbrown 0.12.3 --- 0.14.3 Normal ---
indexmap->hashbrown 0.14.3 0.12.3 --- Normal ---
js-sys->wasm-bindgen 0.2.92 --- Removed Normal ---
json-patch->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
lock_api->autocfg 1.1.0 1.2.0 1.2.0 Build ---
memoffset->autocfg 1.1.0 1.2.0 1.2.0 Build ---
native-tls->openssl-sys 0.9.101 0.9.102 0.9.102 Normal cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios")))
near-account-id->borsh 1.3.1 --- 1.4.0 Normal ---
near-chain-configs->chrono 0.4.35 0.4.37 0.4.37 Normal ---
near-chain-configs->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-crypto->borsh 1.3.1 --- 1.4.0 Normal ---
near-crypto->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-gas->borsh 1.3.1 --- 1.4.0 Normal ---
near-jsonrpc-client->borsh 1.3.1 --- 1.4.0 Normal ---
near-jsonrpc-client->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-jsonrpc-primitives->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-o11y->clap 4.5.3 4.5.4 4.5.4 Normal ---
near-o11y->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-o11y->tokio 1.36.0 1.37.0 1.37.0 Normal ---
near-parameters->borsh 1.3.1 --- 1.4.0 Normal ---
near-parameters->serde_yaml 0.9.33 0.9.34+deprecated 0.9.34+deprecated Normal ---
near-primitives->borsh 1.3.1 --- 1.4.0 Normal ---
near-primitives->chrono 0.4.35 0.4.37 0.4.37 Normal ---
near-primitives->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-primitives->serde_yaml 0.9.33 0.9.34+deprecated 0.9.34+deprecated Normal ---
near-primitives-core->borsh 1.3.1 --- 1.4.0 Normal ---
near-rpc-error-core->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-rpc-error-macro->syn 2.0.53 2.0.55 2.0.55 Normal ---
near-sandbox-utils->chrono 0.4.35 0.4.37 0.4.37 Normal ---
near-sandbox-utils->tokio 1.36.0 1.37.0 1.37.0 Normal ---
near-token->borsh 1.3.1 --- 1.4.0 Normal ---
near-vm-runner->borsh 1.3.1 --- 1.4.0 Normal ---
near-workspaces->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
near-workspaces->chrono 0.4.35 0.4.37 0.4.37 Normal ---
near-workspaces->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
near-workspaces->tokio 1.36.0 1.37.0 1.37.0 Normal ---
nom->memchr 2.7.1 2.7.2 2.7.2 Normal ---
nom-supreme->memchr 2.7.1 2.7.2 2.7.2 Normal ---
num-bigint->autocfg 1.1.0 1.2.0 1.2.0 Build ---
num-rational->autocfg 1.1.0 1.2.0 1.2.0 Build ---
num-traits->autocfg 1.1.0 1.2.0 1.2.0 Build ---
object->memchr 2.7.1 2.7.2 2.7.2 Normal ---
openssl->openssl-sys 0.9.101 0.9.102 0.9.102 Normal ---
openssl-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
opentelemetry->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
opentelemetry->tokio 1.36.0 1.37.0 1.37.0 Normal ---
opentelemetry-otlp->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
opentelemetry-otlp->tokio 1.36.0 1.37.0 1.37.0 Normal ---
petgraph->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
pin-project-internal->syn 2.0.53 2.0.55 2.0.55 Normal ---
proc-macro2->unicode-ident 1.0.12 --- Removed Normal ---
proc-macro2->unicode-ident 1.0.12 Removed --- Normal ---
prometheus->memchr 2.7.1 2.7.2 2.7.2 Normal ---
prost->bytes 1.5.0 1.6.0 1.6.0 Normal ---
prost-build->bytes 1.5.0 1.6.0 1.6.0 Normal ---
prost-build->regex 1.10.3 1.10.4 1.10.4 Normal ---
prost-types->bytes 1.5.0 1.6.0 1.6.0 Normal ---
quote->proc-macro2 1.0.79 --- Removed Normal ---
quote->proc-macro2 1.0.79 Removed --- Normal ---
regex->memchr 2.7.1 2.7.2 2.7.2 Normal ---
regex->regex-syntax 0.8.2 0.8.3 0.8.3 Normal ---
regex-automata->memchr 2.7.1 2.7.2 2.7.2 Normal ---
regex-automata->regex-syntax 0.8.2 0.8.3 0.8.3 Normal ---
reqwest->bytes 1.5.0 1.6.0 1.6.0 Normal ---
reqwest->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
reqwest->tokio 1.36.0 1.37.0 1.37.0 Normal cfg(not(target_arch = "wasm32"))
rustls->rustls-pki-types 1.3.1 1.4.1 1.4.1 Normal ---
rustls-webpki->rustls-pki-types 1.3.1 1.4.1 1.4.1 Normal ---
schemars->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
scroll_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_json 1.0.114 1.0.115 1.0.115 Normal ---
serde_json->itoa 1.0.10 1.0.11 1.0.11 Normal ---
serde_repr->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_urlencoded->itoa 1.0.10 1.0.11 1.0.11 Normal ---
serde_with->chrono 0.4.35 0.4.37 0.4.37 Normal ---
serde_with->indexmap 1.9.3 --- 2.2.6 Normal ---
serde_with->indexmap 2.2.5 1.9.3 2.2.6 Normal ---
serde_with->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
serde_with_macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_yaml->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
serde_yaml->itoa 1.0.10 1.0.11 1.0.11 Normal ---
slab->autocfg 1.1.0 1.2.0 1.2.0 Build ---
symbolic-debuginfo->regex 1.10.3 1.10.4 1.10.4 Normal ---
symbolic-debuginfo->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
syn->proc-macro2 1.0.79 --- Removed Normal ---
syn->proc-macro2 1.0.79 Removed --- Normal ---
syn->quote 1.0.35 --- Removed Normal ---
syn->quote 1.0.35 Removed --- Normal ---
syn->unicode-ident 1.0.12 --- Removed Normal ---
syn->unicode-ident 1.0.12 Removed --- Normal ---
syn_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
tempfile->fastrand 2.0.1 2.0.2 2.0.2 Normal ---
thiserror-impl->syn 2.0.53 2.0.55 2.0.55 Normal ---
time->itoa 1.0.10 1.0.11 1.0.11 Normal ---
tokio 1.36.0 1.37.0 1.37.0 Normal ---
tokio->backtrace 0.3.69 0.3.71 0.3.71 Normal cfg(tokio_taskdump)
tokio->bytes 1.5.0 1.6.0 1.6.0 Normal ---
tokio-io-timeout->tokio 1.36.0 1.37.0 1.37.0 Normal ---
tokio-macros->syn 2.0.53 2.0.55 2.0.55 Normal ---
tokio-native-tls->tokio 1.36.0 1.37.0 1.37.0 Normal ---
tokio-retry->tokio 1.36.0 1.37.0 1.37.0 Normal ---
tokio-stream->tokio 1.36.0 1.37.0 1.37.0 Normal ---
tokio-util->bytes 1.5.0 1.6.0 1.6.0 Normal ---
tokio-util->tokio 1.36.0 1.37.0 1.37.0 Normal ---
toml_edit->indexmap 2.2.5 2.2.6 2.2.6 Normal ---
tonic->async-trait 0.1.78 0.1.79 0.1.79 Normal ---
tonic->bytes 1.5.0 1.6.0 1.6.0 Normal ---
tonic->tokio 1.36.0 1.37.0 1.37.0 Normal ---
tower->tokio 1.36.0 1.37.0 1.37.0 Normal ---
tracing-attributes->syn 2.0.53 2.0.55 2.0.55 Normal ---
tracing-subscriber->regex 1.10.3 1.10.4 1.10.4 Normal ---
treediff->serde_json 1.0.114 1.0.115 1.0.115 Normal ---
ureq->rustls 0.22.2 0.22.3 0.22.3 Normal ---
ureq->rustls-pki-types 1.3.1 1.4.1 1.4.1 Normal ---
wasm-bindgen->cfg-if 1.0.0 --- Removed Normal ---
wasm-bindgen->wasm-bindgen-macro 0.2.92 --- Removed Normal ---
wasm-bindgen-backend->bumpalo 3.15.4 --- Removed Normal ---
wasm-bindgen-backend->log 0.4.21 --- Removed Normal ---
wasm-bindgen-backend->once_cell 1.19.0 --- Removed Normal ---
wasm-bindgen-backend->proc-macro2 1.0.79 --- Removed Normal ---
wasm-bindgen-backend->quote 1.0.35 --- Removed Normal ---
wasm-bindgen-backend->syn 2.0.53 2.0.55 2.0.55 Normal ---
wasm-bindgen-backend->syn 2.0.53 2.0.55 Removed Normal ---
wasm-bindgen-backend->wasm-bindgen-shared 0.2.92 --- Removed Normal ---
wasm-bindgen-macro->quote 1.0.35 --- Removed Normal ---
wasm-bindgen-macro->wasm-bindgen-macro-support 0.2.92 --- Removed Normal ---
wasm-bindgen-macro-support->proc-macro2 1.0.79 --- Removed Normal ---
wasm-bindgen-macro-support->quote 1.0.35 --- Removed Normal ---
wasm-bindgen-macro-support->syn 2.0.53 2.0.55 2.0.55 Normal ---
wasm-bindgen-macro-support->syn 2.0.53 2.0.55 Removed Normal ---
wasm-bindgen-macro-support->wasm-bindgen-backend 0.2.92 --- Removed Normal ---
wasm-bindgen-macro-support->wasm-bindgen-shared 0.2.92 --- Removed Normal ---
webpki-roots->rustls-pki-types 1.3.1 1.4.1 1.4.1 Normal ---
winnow->memchr 2.7.1 2.7.2 2.7.2 Normal ---
zerocopy->zerocopy-derive 0.7.32 Removed --- Normal ---
zerocopy-derive->proc-macro2 1.0.79 Removed --- Normal ---
zerocopy-derive->quote 1.0.35 Removed --- Normal ---
zerocopy-derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
zerocopy-derive->syn 2.0.53 Removed 2.0.55 Normal ---
zstd-safe->zstd-sys 2.0.9+zstd.1.5.5 2.0.10+zstd.1.5.6 2.0.10+zstd.1.5.6 Normal ---
CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
num-traits->autocfg 1.1.0 1.2.0 1.2.0 Build ---
serde_derive->syn 2.0.53 2.0.55 2.0.55 Normal ---
serde_json 1.0.114 1.0.115 1.0.115 Normal ---
serde_json->itoa 1.0.10 1.0.11 1.0.11 Normal ---
wasm-bindgen-backend->syn 2.0.53 2.0.55 2.0.55 Normal ---
wasm-bindgen-macro-support->syn 2.0.53 2.0.55 2.0.55 Normal ---
C:\home\git\polyglot
> polyglot@ outdated-pre C:\home\git\polyglot
> npm-check-updates --target greatest
Using pnpm
Checking C:\home\git\polyglot\package.json
npm-check-updates ~16.14 → ~17.0-5
Run ncu --target greatest -u to upgrade package.json
C:\home\git\polyglot\apps\ipfs
> ipfs@ outdated-pre C:\home\git\polyglot\apps\ipfs
> npm-check-updates --target greatest
Using pnpm
Checking C:\home\git\polyglot\apps\ipfs\package.json
npm-check-updates ~16.14 → ~17.0-5
Run ncu --target greatest -u to upgrade package.json
C:\home\git\polyglot\apps\spiral\temp\extension
> polyglot@ outdated-pre C:\home\git\polyglot\apps\spiral\temp\extension
> npm-check-updates --target greatest
Using pnpm
Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json
@playwright/test 1.42.1 → 1.44.0-alpha-2024-03-29
npm-check-updates ~16.14 → ~17.0-5
Run ncu --target greatest -u to upgrade package.json